tools configuration surface. Define LangChain tools in your project, import them into agent.py or agent.ts, and pass them to define_deep_agent or defineDeepAgent.
Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
Authored tools and connector tools
Managed Deep Agents can use two kinds of tools:| Tool source | Where you configure it | Runtime behavior |
|---|---|---|
| Authored tools | agent.py or agent.ts imports from your project source | MDA copies the source into the compiled build and passes the tools to Deep Agents. |
| MCP connector tools | connectors/mcp.py or connectors/mcp.ts | MDA loads remote MCP tools at runtime and appends them to authored tools. |
Add a tool module
Put custom tool code undertools/ in your project and import it from the agent entry. For the full project layout, see the CLI project file reference.
Attach tools to the agent
Import the tools into the project-root agent entry and pass them in thetools list.
mda dev and mda deploy copy the project files into the compiled build. Your imports should work the same way they do in a normal local Python or TypeScript project.
Use secrets and context
Tools can read deployment secrets from environment variables. Put local values in.env for mda dev; mda deploy forwards non-reserved .env values as hosted deployment secrets.
For per-run values such as user IDs, tenant IDs, request metadata, or feature flags, use the normal LangChain runtime context patterns for tools. See how to access context from within your tools.
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.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

