NachschlagenQuellenregister

Dokumentationerreichbar

Claude Code, Connect Claude Code to tools via MCP

code.claude.com (externe Seite)

Die Her­stel­ler­do­ku­men­ta­tion zur Anbindung von Tools über MCP in Claude Code. Der Abschnitt zu Tool Search sagt, dass in der Voreinstellung beim Start nur die Namen der Tools und die Anweisungen der Server geladen werden; die vollständige Beschreibung holt das Werkzeug erst, wenn es sie braucht. Abgerufen am 09.10.2026.

geprüft 10.11.2026

Worauf sich diese Seite beruft, wörtlich, abgerufen am 09.10.2026:

  • Tool search keeps MCP context usage low by deferring tool definitions until Claude needs them.bestätigt 10.11.2026
  • Connect a server when you find yourself copying data into chat from another tool, like an issue tracker or a monitoring dashboard.bestätigt 10.11.2026
  • Once connected, Claude can read and act on that system directly instead of working from what you paste.bestätigt 10.11.2026
  • HTTP servers are the recommended option for connecting to remote MCP servers.bestätigt 10.11.2026
  • Stdio servers run as local processes on your machine.bestätigt 10.11.2026
  • The SSE (Server-Sent Events) transport is deprecated.bestätigt 10.11.2026
  • claude mcp list shows a health status next to each server it listsbestätigt 10.11.2026
  • Local scope is the default.bestätigt 10.11.2026
  • Check .mcp.json into version control so everyone on your team gets the same MCP tools and services.bestätigt 10.11.2026
  • For security reasons, Claude Code prompts for approval in interactive sessions before using project-scoped servers from .mcp.json files.bestätigt 10.11.2026
  • Claude Code can’t show that prompt: it loads project-scoped servers without asking.bestätigt 10.11.2026
  • Authentication tokens are stored securely and refreshed automaticallybestätigt 10.11.2026
  • Servers from claude.ai appear in the list with indicators showing they come from claude.ai.bestätigt 10.11.2026
  • Connectors from claude.ai are fetched only when your active authentication method is a claude.ai subscription login.bestätigt 10.11.2026
  • On Team and Enterprise plans, only admins can add servers.bestätigt 10.11.2026
  • Everything after -- is passed to the server untouched.bestätigt 10.11.2026
  • Claude Code tries the HTTP transport first and switches to SSE when the server doesn’t accept it.bestätigt 10.11.2026
  • Use HTTP instead when your server only responds to requests, since HTTP supports OAuth and the claude mcp add --transport flag, while WebSocket supports neither.bestätigt 10.11.2026
  • Claude Code reads an entry with no type as a stdio server.bestätigt 10.11.2026
  • This feature only works on macOS and Windows Subsystem for Linux (WSL)bestätigt 10.11.2026
  • The entire server entry from that source is used; fields are not merged across scopes.bestätigt 10.11.2026
  • A server your organization provides through the managedMcpServers managed setting ranks above all of thesebestätigt 10.11.2026
  • A cloned repository can’t approve its own serversbestätigt 10.11.2026
  • which blocks it in every permission modebestätigt 10.11.2026
  • Toggle a server off in the /mcp panel to stop Claude Code from connecting to it without losing its configuration.bestätigt 10.11.2026
  • The client secret is stored securely in your system keychain (macOS) or a credentials file, not in your configbestätigt 10.11.2026
  • This is the supported way to restrict an MCP server to a security-team-approved subset when the upstream authorization server advertises more scopes than you want to grant.bestätigt 10.11.2026
  • Claude Code runs the command in a shell and gives up on it after 10 secondsbestätigt 10.11.2026
  • This keeps a project’s .mcp.json or a plugin from sending your Claude Code or cloud provider credentials to a server it names.bestätigt 10.11.2026
  • Only tool names and server instructions load at session start, so adding more MCP servers has minimal impact on your context window.bestätigt 10.11.2026
  • Tool search is on by default behind the gatewaybestätigt 10.11.2026
  • Claude Code expects the gateway to forwardbestätigt 10.11.2026
  • Keep descriptions and instructions concise, and put critical details near the start.bestätigt 10.11.2026
  • since each upfront tool consumes context that would otherwise be available for your conversationbestätigt 10.11.2026
  • Claude Code displays a warning when MCP tool output exceeds 10,000 tokens and limits output to 25,000 tokens by default.bestätigt 10.11.2026
  • up to a hard ceiling of 500,000 charactersbestätigt 10.11.2026
  • The idle window defaults to five minutes for HTTP, SSE, WebSocket, and claude.ai connector servers, and to 30 minutes for stdio servers.bestätigt 10.11.2026
  • An MCP tool call in the main conversation that is still running after two minutes moves to a background task instead of blocking the session.bestätigt 10.11.2026
  • Claude Code shows that tool’s permission prompt on every call, even in acceptEditsbestätigt 10.11.2026
  • so your own client is responsible for implementing user confirmation for individual tool calls.bestätigt 10.11.2026
  • This setting uses any-source-true semantics: true in any settings source takes precedence.bestätigt 10.11.2026
  • Claude Code filters the tool out before Claude sees it, so it never appears in Claude’s tool list.bestätigt 10.11.2026
  • Anthropic also provides some connectors itself, without you or an admin adding them.bestätigt 10.11.2026
  • Before v2.1.296, the shorter limit was 2,048 characters, and before v2.1.295 it applied to every tool description, including one loaded through tool search.bestätigt 10.11.2026
  • All MCP tools loaded upfront, no deferralbestätigt 10.11.2026
  • Descriptions and instructions from some of the MCP servers that Anthropic hosts at api.anthropic.com reach Claude in fullbestätigt 10.11.2026
  • it doesn’t survive exiting the sessionbestätigt 10.11.2026
  • MCP tasks are in public beta in the Claude Code CLI and require Claude Code v2.1.304 or later.bestätigt 10.11.2026
  • A task on a remote server keeps running after you exit.bestätigt 10.11.2026
  • Claude Code also skips the prompt in a session you start in bypassPermissions mode with skipDangerousModePermissionPrompt set in your user settings or in managed settings.bestätigt 10.11.2026
  • On v2.1.304 or later that covers terminal CLI sessions, Agent SDK sessions, and GitHub Actions runs.bestätigt 10.11.2026
  • The call comes from the main conversation, not from a subagentbestätigt 10.11.2026
  • To stop a running task, select it in /tasks and press x, or ask Claude to.bestätigt 10.11.2026
  • though the server may still finish itbestätigt 10.11.2026
  • To follow it again, resume the same session.bestätigt 10.11.2026
  • defer_loading tool fields and tool_reference blocks along with the anthropic-beta headerbestätigt 10.11.2026
  • On v2.1.305 or later, Claude Code can retry a request without tool search after a 400 or 422.bestätigt 10.11.2026
  • Loaded upfront on models earlier than Opus 4 and Sonnet 4, on the earlier Agent Platform models, and on Microsoft Foundry deployments hosted on Azurebestätigt 10.11.2026
  • unless CLAUDE_AUTO_BACKGROUND_TASKS is set to 1bestätigt 10.11.2026
  • In dontAsk mode, which never prompts, Claude Code denies the call instead.bestätigt 10.11.2026
  • add them to deniedMcpServers by name or by URL patternbestätigt 10.11.2026
  • so a serverUrl pattern written for the connector’s own URL doesn’t match itbestätigt 10.11.2026
  • no MCP setting or managed-mcp.json reaches thembestätigt 10.11.2026
  • the ask setting doesn’t reach Claude Codebestätigt 10.11.2026
  • Claude Code uses that number for both limits.bestätigt 10.11.2026
  • The session fetches feature flagsbestätigt 10.11.2026
  • Claude keeps working unless you make Claude waitbestätigt 10.11.2026
  • CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND set to 1bestätigt 10.11.2026
  • While automatic backgrounding is on, it moves the call after two minutes by defaultbestätigt 10.11.2026
  • The moved call is a plain background call rather than an MCP task.bestätigt 10.11.2026
  • CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND not 1bestätigt 10.11.2026

02 Die Werkzeuge02 MCP19 MCP und Plugins

Alle Quellen

↑↓ auswählenEnter öffnenDie Suche läuft im Browser. Nichts wird übertragen.