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 22.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 22.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 22.11.2026
  • Once connected, Claude can read and act on that system directly instead of working from what you paste.bestätigt 22.11.2026
  • HTTP servers are the recommended option for connecting to remote MCP servers.bestätigt 22.11.2026
  • Stdio servers run as local processes on your machine.bestätigt 22.11.2026
  • The SSE (Server-Sent Events) transport is deprecated.bestätigt 22.11.2026
  • claude mcp list shows a health status next to each server it listsbestätigt 22.11.2026
  • Local scope is the default.bestätigt 22.11.2026
  • Check .mcp.json into version control so everyone on your team gets the same MCP tools and services.bestätigt 22.11.2026
  • For security reasons, Claude Code prompts for approval in interactive sessions before using project-scoped servers from .mcp.json files.bestätigt 22.11.2026
  • Claude Code can’t show that prompt: it loads project-scoped servers without asking.bestätigt 22.11.2026
  • Authentication tokens are stored securely and refreshed automaticallybestätigt 22.11.2026
  • Servers from claude.ai appear in the list with indicators showing they come from claude.ai.bestätigt 22.11.2026
  • Connectors from claude.ai are fetched only when your active authentication method is a claude.ai subscription login.bestätigt 22.11.2026
  • On Team and Enterprise plans, only admins can add servers.bestätigt 22.11.2026
  • Everything after -- is passed to the server untouched.bestätigt 22.11.2026
  • Claude Code tries the HTTP transport first and switches to SSE when the server doesn’t accept it.bestätigt 22.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 22.11.2026
  • Claude Code reads an entry with no type as a stdio server.bestätigt 22.11.2026
  • This feature only works on macOS and Windows Subsystem for Linux (WSL)bestätigt 22.11.2026
  • The entire server entry from that source is used; fields are not merged across scopes.bestätigt 22.11.2026
  • A server your organization provides through the managedMcpServers managed setting ranks above all of thesebestätigt 22.11.2026
  • A cloned repository can’t approve its own serversbestätigt 22.11.2026
  • which blocks it in every permission modebestätigt 22.11.2026
  • Toggle a server off in the /mcp panel to stop Claude Code from connecting to it without losing its configuration.bestätigt 22.11.2026
  • The client secret is stored securely in your system keychain (macOS) or a credentials file, not in your configbestätigt 22.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 22.11.2026
  • Claude Code runs the command in a shell and gives up on it after 10 secondsbestätigt 22.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 22.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 22.11.2026
  • Tool search is on by default behind the gatewaybestätigt 22.11.2026
  • Claude Code expects the gateway to forwardbestätigt 22.11.2026
  • Keep descriptions and instructions concise, and put critical details near the start.bestätigt 22.11.2026
  • since each upfront tool consumes context that would otherwise be available for your conversationbestätigt 22.11.2026
  • the transcript viewer displays a warning when any MCP tool output exceeds a fixed 10,000 tokensbestätigt 22.11.2026
  • the default maximum is 25,000 tokensbestätigt 22.11.2026
  • up to a hard ceiling of 500,000 charactersbestätigt 22.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 22.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 22.11.2026
  • Claude Code shows that tool’s permission prompt on every call Claude makes, even in acceptEditsbestätigt 22.11.2026
  • so your own client is responsible for implementing user confirmation for individual tool calls.bestätigt 22.11.2026
  • This setting uses any-source-true semantics: true in any settings source takes precedence.bestätigt 22.11.2026
  • Claude Code filters the tool out before Claude sees it, so it doesn’t appear in Claude’s tool list.bestätigt 22.11.2026
  • Anthropic also provides some connectors itself, without you or an admin adding them.bestätigt 22.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 22.11.2026
  • All MCP tools loaded upfront, no deferralbestätigt 22.11.2026
  • Descriptions and instructions from some of the MCP servers that Anthropic hosts at api.anthropic.com reach Claude in fullbestätigt 22.11.2026
  • it doesn’t survive exiting the sessionbestätigt 22.11.2026
  • MCP tasks are in public beta and require Claude Code v2.1.304 or later.noch nicht nachgeprüft
  • A task on a remote server keeps running after you exit.bestätigt 22.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 22.11.2026
  • Terminal CLI sessions, Agent SDK sessions, and GitHub Actions runs have them on v2.1.304 or laternoch nicht nachgeprüft
  • The call comes from the main conversation, not from a subagentbestätigt 22.11.2026
  • To stop a running task, select it in /tasks and press x, or ask Claude to.bestätigt 22.11.2026
  • though the server may still finish itbestätigt 22.11.2026
  • To follow it again, resume the same session.bestätigt 22.11.2026
  • defer_loading tool fields and tool_reference blocks along with the anthropic-beta headerbestätigt 22.11.2026
  • On v2.1.305 or later, Claude Code can retry a request without tool search after a 400 or 422.bestätigt 22.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 22.11.2026
  • unless CLAUDE_AUTO_BACKGROUND_TASKS is set to 1bestätigt 22.11.2026
  • In dontAsk mode, or a -p run with nothing to answer the prompt, Claude Code denies the call instead.bestätigt 22.11.2026
  • add them to deniedMcpServers by name or by URL patternbestätigt 22.11.2026
  • so a serverUrl pattern written for the connector’s own URL doesn’t match itbestätigt 22.11.2026
  • no MCP setting or managed-mcp.json reaches thembestätigt 22.11.2026
  • the ask setting doesn’t reach Claude Codebestätigt 22.11.2026
  • Claude Code uses that number for both limits.bestätigt 22.11.2026
  • The session fetches feature flagsbestätigt 22.11.2026
  • Claude keeps working unless you make Claude waitbestätigt 22.11.2026
  • CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND set to 1bestätigt 22.11.2026
  • While automatic backgrounding is on, it moves the call after two minutes by defaultbestätigt 22.11.2026
  • The moved call is a plain background call rather than an MCP task.bestätigt 22.11.2026
  • CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND not 1bestätigt 22.11.2026
  • the server needs something from you, such as a value or a sign-in.bestätigt 22.11.2026
  • Claude continues once the server responds.bestätigt 22.11.2026
  • If you see no card in either place, you can’t answer the request there.bestätigt 22.11.2026
  • MCP tasks are in public beta in the Claude Code CLI and require Claude Code v2.1.304 or later.steht dort nicht mehr
  • On v2.1.304 or later that covers terminal CLI sessions, Agent SDK sessions, and GitHub Actions runs.steht dort nicht mehr

02 Die Werkzeuge02 MCP19 MCP und Plugins

Alle Quellen

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