diff --git a/src/langsmith/langsmith-remote-mcp.mdx b/src/langsmith/langsmith-remote-mcp.mdx index 6aebc2b23c..4c991464b2 100644 --- a/src/langsmith/langsmith-remote-mcp.mdx +++ b/src/langsmith/langsmith-remote-mcp.mdx @@ -54,6 +54,33 @@ Add the server to your project's `.mcp.json` (or run `claude mcp add --transport Then run `/mcp` and select **langsmith** to complete the OAuth flow. Tools become available as `mcp__langsmith__`. +### Deep Agents Code (`dcode`) + +Add the server to your user-level `~/.deepagents/.mcp.json` file to make it available in every Deep Agents Code project, or add it to a project-level `.mcp.json` file for only that project. See the [Deep Agents Code MCP tools docs](/oss/deepagents/code/mcp-tools) for discovery locations and precedence rules. + +```json +{ + "mcpServers": { + "langsmith": { + "url": "https://api.smith.langchain.com/mcp", + "transport": "http", + "auth": "oauth" + } + } +} +``` + +Then complete the OAuth login flow in one of two ways: + +- In the Deep Agents Code TUI, run `/mcp`, select **langsmith**, and follow the login prompt. +- From your shell, run: + + ```bash + dcode mcp login langsmith + ``` + +Launch `dcode`, or restart an active session, to load the LangSmith MCP tools. In an interactive session, run `/mcp` to inspect server status and loaded tools. + ### Cursor Add to your Cursor `mcp.json`: diff --git a/src/oss/deepagents/code/mcp-tools.mdx b/src/oss/deepagents/code/mcp-tools.mdx index 3ea291f4ef..49c9853cb7 100644 --- a/src/oss/deepagents/code/mcp-tools.mdx +++ b/src/oss/deepagents/code/mcp-tools.mdx @@ -336,6 +336,20 @@ For remote MCP servers that require OAuth (Slack, GitHub, Notion, Linear, and ot `auth: "oauth"` is mutually exclusive with an `Authorization` header on the same entry, and cannot be set on a stdio server. +To connect Deep Agents Code to LangSmith, use the [LangSmith Remote MCP](/langsmith/langsmith-remote-mcp): + +```json title=".mcp.json" +{ + "mcpServers": { + "langsmith": { + "url": "https://api.smith.langchain.com/mcp", + "transport": "http", + "auth": "oauth" + } + } +} +``` + ### Run the login flow ```bash @@ -469,5 +483,6 @@ Connected MCP servers and their tools are automatically listed in the agent's sy ## Further reading +- [LangSmith Remote MCP](/langsmith/langsmith-remote-mcp): connect Deep Agents Code to LangSmith tools over OAuth - [LangChain MCP guide](/oss/langchain/mcp): protocol details, building custom servers, and using `langchain-mcp-adapters` programmatically - [MCP specification](https://modelcontextprotocol.io/): the official protocol spec and server registry