Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

3 pages for setmcpservers.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …ggleMcpServer(serverName: string, enabled: boolean): Promise<void>; setMcpServers(servers: Record<string, McpServerConfig>): Promise<McpSetServersResult>; setMcpPermissionModeOverride( serverN… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …file in your project, a server from the SDK's `mcpServers` option or `setMcpServers()` method, or [`--mcp-config`](https://code.claude.com/docs/en/cli-reference) | The session's [primary working direc… Claude Code settings Claude Code CLI · in the page settings …on keep working. Doesn't block `claude mcp add`, `.mcp.json`, or SDK `setMcpServers()`; pair with [`allowedMcpServers`](/docs/en/managed-mcp) for per-server MCP control. Requires Claude Code v2.1.193…
Feedback