connectors/mcp.ts or connectors/mcp.py, export a named mcp declaration, and Managed Deep Agents loads those tools into the agent at runtime.
Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
connectors/mcp module shown on this page, not through a CLI command. The mda CLI has no MCP server management commands, so do not use older deepagents mcp-servers ... examples in a Managed Deep Agents project.
Add an MCP connector
Addconnectors/mcp.py or connectors/mcp.ts next to your agent entry file.
The connector module must export a named mcp declaration.
MultiServerMCPClient or call getTools() / get_tools() yourself. mda discovers the connector module, injects the MCP adapter dependency into the compiled build, creates the client in the managed runtime, loads the tools, and appends them to the authored tools from agent.ts or agent.py.
Supported MCP servers
Connectors support remote MCP servers only:
To connect a legacy SSE server, set
transport to sse on the server config; the remaining fields match the http examples above.
Stdio MCP servers are not supported in connectors. If a server needs local process management, expose it over HTTP/SSE or wrap the behavior as a normal authored tool.
Configure server options
Each server key is the logical server name Managed Deep Agents uses for validation, tracing metadata, and tool-name prefixing. Server configs can include static headers. Connectors do not run an OAuth authorization flow. If an MCP server requires OAuth, provide a pre-provisioned access token or another static credential through headers. Store the token in.env (see the security warning below).
The connector module is normal project code, so read secrets as environment variables with os.environ in Python or process.env in TypeScript. You do not load or parse the .env file directly.
MCP connector defaults
Managed Deep Agents applies these default options when it loads connector tools:
Disable tool-name prefixing only when you know the MCP tool names do not collide. With prefixing disabled, Managed Deep Agents checks the loaded MCP tools for duplicate names.
Test and deploy
Test the project locally withmda dev, then deploy it with mda deploy. Open deployment traces in LangSmith to inspect model calls, tool calls, errors, and latency.
MCP misconfiguration surfaces during local startup or first tool load, depending on when the runtime reaches the MCP server. For deploy symptoms and fixes, see Troubleshooting.
Next steps
Connectors
Compare MCP and LangSmith connector types.
Custom tools
Add authored tools alongside MCP connector tools.
Deploy an agent
Run and deploy the connector-enabled agent.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

