Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/langsmith/langsmith-remote-mcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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__<tool_name>`.

### 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`:
Expand Down
15 changes: 15 additions & 0 deletions src/oss/deepagents/code/mcp-tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Loading