Connect to external tools with MCP changedagent-sdk/mcp
Nearest release: v2.1.335, published 8 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 3 Dec 2026 06:14 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Dec 2026 06:37 UTC.
Upstream edited
Recorded here
Lines+3added
Lines−1removed
From line
70
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits29to this page, all time
The whole hunk
from line 70, old and new numbered
/
from line 70
7070
7171### Add a server in code
7272
73Pass MCP servers directly in the `mcpServers` option. This example starts a local filesystem MCP server for `/Users/me/projects`. Replace that path with a directory on your machine:
73Pass MCP servers directly in the `mcpServers` option. The example below starts a local filesystem MCP server. The path in `args` has to exist for the server to start.
74
75Replace `/Users/me/projects` with your session's [working directory](https://code.claude.com/docs/en/agent-sdk/configuration.md#set-the-working-directory):
7476
7577```typescript TypeScript theme={null}
7678import { query } from "@anthropic-ai/claude-agent-sdk";
No line in this hunk matches that.