From 8da9fced83219f41df0d26b8e8fa77cff6e73baa Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Wed, 27 May 2026 14:25:17 +0000 Subject: [PATCH 1/2] docs: add dcode LangSmith MCP setup Co-authored-by: Mason Daugherty <61371264+mdrxy@users.noreply.github.com> --- src/langsmith/langsmith-remote-mcp.mdx | 24 ++++++++++++++++++++++++ src/oss/deepagents/code/mcp-tools.mdx | 15 +++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/src/langsmith/langsmith-remote-mcp.mdx b/src/langsmith/langsmith-remote-mcp.mdx index ee7c181112..eca6ba8d12 100644 --- a/src/langsmith/langsmith-remote-mcp.mdx +++ b/src/langsmith/langsmith-remote-mcp.mdx @@ -49,6 +49,30 @@ 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 run the OAuth login flow once: + +```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 From 0068559d49a5779e65145071ae0670be58438270 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Wed, 27 May 2026 15:40:19 +0000 Subject: [PATCH 2/2] docs: mention dcode TUI MCP login Co-authored-by: Mason Daugherty <61371264+mdrxy@users.noreply.github.com> --- src/langsmith/langsmith-remote-mcp.mdx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/langsmith/langsmith-remote-mcp.mdx b/src/langsmith/langsmith-remote-mcp.mdx index eca6ba8d12..4a36723b58 100644 --- a/src/langsmith/langsmith-remote-mcp.mdx +++ b/src/langsmith/langsmith-remote-mcp.mdx @@ -65,11 +65,14 @@ Add the server to your user-level `~/.deepagents/.mcp.json` file to make it avai } ``` -Then run the OAuth login flow once: +Then complete the OAuth login flow in one of two ways: -```bash -dcode mcp login langsmith -``` +- 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.