Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
Prerequisites
- Managed Deep Agents private beta access.
- A LangSmith API key for a workspace with private beta access.
- The
deepagents-clipackage. For install commands and version requirements, see Install the CLI. - An MCP server URL, plus any static headers or OAuth credentials the server requires.
Quickstart
From a project directory created bydeepagents init, connect a static-header tool and deploy:
deepagents mcp-servers connect <id|name|url> after the register step and before listing tools. The following sections cover each step in detail.
Connect tools with the CLI
In the CLI,add registers a server and connect completes OAuth for a registered server. For all MCP server commands and flags, see the CLI reference.
Add a static-header MCP server
Register a server:--header for multiple headers:
tools.json snippet. To skip that step, pass --no-tools.
Add an OAuth MCP server
Register and connect an OAuth MCP server:- Registers the MCP server for per-user OAuth.
- Prints and opens a verification URL.
- Waits while you approve access in the browser.
- Confirms the connection once approval completes.
--scope to request OAuth scopes:
--timeout 0 to start the OAuth flow without polling:
deepagents mcp-servers connect <id|name|url> later to complete or reuse the connection.
List available tools
List the tools exposed by a registered MCP server:tools.json snippet. Copy the entries you want and reference them. Re-run it to refresh entries when a server’s tools change. If no tools are listed, confirm the server URL is reachable and, for OAuth servers, that you completed connect.
Reference tools
A tool entry requiresname, a tool exposed by a registered MCP server, and mcp_server_url, which points at that server. The mcp_server_name and display_name fields are optional.
tools.json file in your project root, which deepagents init scaffolds with an empty tools array.
Use interrupt_config to require human approval before a tool runs. Key each entry by "{mcp_server_url}::{tool_name}" and set it to true. You can also include the server name in the key: "{mcp_server_url}::{mcp_server_name}::{tool_name}".
To deploy an agent with no MCP tools, leave tools.json empty.
Validate tools at deploy time
At deploy time, Managed Deep Agents validates the referenced MCP server URLs:- If a server URL is not registered, register it first with
deepagents mcp-servers add. - If an OAuth server is registered but the caller cannot invoke it, complete OAuth first with
deepagents mcp-servers connect <id|name|url>.
Manage server credentials
Static headers are stored with the MCP server record and are redacted whenever you inspect it.
For OAuth servers, credentials are scoped per user, so each caller completes their own connection. For the full command list, see the CLI reference.
Next steps
After you connect tools, deploy the agent with atools.json file that references the registered MCP server URLs.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

