connectors/mcp.ts or connectors/mcp.py, export a named mcp declaration, and MDA 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.
mda CLI does not include workspace MCP server management commands. Do not use older deepagents mcp-servers ... examples for Managed Deep Agents projects. For MCP tools, use the connectors/ project convention documented here.
Add a connector
Addconnectors/mcp.py or connectors/mcp.ts next to your agent entry file. For the full project layout, see the CLI project file reference.
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 servers
Connectors support remote MCP servers only:| Transport | Use |
|---|---|
http | Streamable HTTP MCP servers. |
sse | Legacy SSE MCP servers. |
Configure server options
Each server key is the logical server name MDA 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 so mda dev can load it locally and mda deploy can forward it as a hosted deployment secret.
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 import the .env file directly.
Connector defaults
MDA applies managed defaults when it loads connector tools:| Option | Default | Description |
|---|---|---|
prefixToolNameWithServerName / prefix_tool_name_with_server_name | true | Prefix MCP tool names with the server name, for example github__search, to avoid collisions. |
throwOnLoadError / throw_on_load_error | true | Fail when tools cannot be loaded instead of starting with a partial tool surface. |
useStandardContentBlocks / use_standard_content_blocks | true | Convert MCP tool outputs to standard LangChain content blocks. Python connectors currently require the default true value. |
onConnectionError / on_connection_error | "throw" | Fail when a server cannot be reached. "throw" is the only supported value. |
Combine connectors with authored tools
Connector tools are appended to the tools you define in the agent file. Use custom tools for project-owned code and custom middleware for cross-cutting behavior around model calls, tool calls, lifecycle hooks, retries, limits, and data handling.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.
Connector misconfiguration surfaces during local startup or first tool load, depending on when the runtime reaches the MCP server.
Next steps
Deploy an agent
Run and deploy the connector-enabled agent.
CLI reference
Look up
mda dev and mda deploy flags.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

