Source Intelligence
Sweep 28 Aug 2026 · 16:06Z Build v2.1.251 479 read Stable v2.1.236 Latest v2.1.250 Next v2.1.251 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

Search the documentation

50 pages for initialize.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it. Cut at 50, so a narrower query shows the rest.

customer-support-chat Claude Developer Platform · in the page about-claude/use-case-guides/customer-support-chat …quire "anthropic" class ChatBot attr_reader :messages def initialize @anthropic = Anthropic::Client.new @messages = [] end def generate_message(messages, max_tokens)… Create the full URL from the GitHub repository Claude Developer Platform · in the page about-claude/use-case-guides/legal-summarization …ent structure when analyzing sublease agreements: ```python Python # Initialize the Anthropic client client = anthropic.Anthropic() def summarize_document( text, details_to_extract, model="clau… mcp-connector Claude Developer Platform · in the page agents-and-tools/mcp-connector …entSession(read, write) as mcp_client: await mcp_client.initialize() # List tools and convert them for the Claude API tools_result = await mcp_client.list_to… bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …ss BashSession attr_reader :output, :wait_thread def initialize start end # Run a command in the session and return its output. def execute_command(… fine-grained-tool-streaming Claude Developer Platform · in the page agents-and-tools/tool-use/fine-grained-tool-streaming …ation contract: 1. On `content_block_start` with `type: "tool_use"`, initialize an empty string: `input_json = ""` 2. For each `content_block_delta` with `type: "input_json_delta"`, append: `input_js… memory-tool Claude Developer Platform · in the page agents-and-tools/tool-use/memory-tool …rom the state the last one recorded. ### How the pattern works 1. **Initializer session:** The first session sets up the memory files before any substantive work begins. This includes a progress log… text-editor-tool Claude Developer Platform · in the page agents-and-tools/tool-use/text-editor-tool …tor_20250728"` for Claude 4 and later models. <Steps> <Step title="Initialize your editor implementation"> Create helper functions to handle file operations like reading, writing, and modifying… Log at info level Claude Developer Platform · in the page agents-and-tools/tool-use/tool-runner …with typed input schemas. ```ruby require "anthropic" # Initialize client client = Anthropic::Client.new # Define input schema class GetWeatherInput < Anthropic::BaseModel… Vaults Claude Developer Platform · in the page api/beta/vaults …- `method: string` The MCP method that failed (for example `initialize` or `tools/list`). - `refresh: BetaManagedAgentsRefreshObject or null` Outcome of a refresh-token exchange atte… Credentials Claude Developer Platform · in the page api/beta/vaults/credentials …- `method: string` The MCP method that failed (for example `initialize` or `tools/list`). - `refresh: BetaManagedAgentsRefreshObject or null` Outcome of a refresh-token exchange atte… Validate Credential Claude Developer Platform · in the page api/beta/vaults/credentials/mcp_oauth_validate …- `method: string` The MCP method that failed (for example `initialize` or `tools/list`). - `refresh: BetaManagedAgentsRefreshObject or null` Outcome of a refresh-token exchange atte… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …gled with mid-conversation system messages. class ModeAgent def initialize(model, mode_on: true) @model = model @mode_on = mode_on @messages = [] @mode_announced = false… search-results Claude Developer Platform · in the page build-with-claude/search-results …m the dashboard, 3) Install our SDK using pip install company-sdk, 4) Initialize the client with your API key." } ], "citations": { "enabled… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …Plan a 4-day trip to Buenos Aires.") print(response.content) ``` The initializer also accepts `baseURL` (default `https://api.anthropic.com`), `timeout`, and `serverTools` (see [Server-side tools](ht… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …rce::with(data: "U3RhaW5sZXNzIHJvY2tz", ...)` and named parameters to initialize value objects. However, builders are also provided `(new Base64ImageSource)->withData("U3RhaW5sZXNzIHJvY2tz")`. ## St… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …ncAnthropic() as client, ): await mcp_session.initialize() listed = await mcp_session.list_tools() agent = await client.beta.agents.create(… tools Claude Developer Platform · in the page managed-agents/tools …d IANA name. The session checks the configuration again when it first initializes the tool; if a setting that was accepted earlier is no longer valid at that point, the session emits a [`session.error… vaults Claude Developer Platform · in the page managed-agents/vaults …token": false, "status": "invalid", "mcp_probe": { "method": "initialize", "http_response": { "status_code": 401, "content_type": "application/json", "body": "{\"error\":… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …| Initialize logging and telemetry… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …ls) for implementation details. An SDK MCP server registered by an [`initialize` control request](/docs/en/agent-sdk/typescript#sdkcontrolinitializeresponse) begins connecting as soon as Claude Code… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …--------------------- | | `__init__(options)` | Initialize the client with optional configuration… Streaming Input Claude Code CLI · in the page agent-sdk/streaming-vs-single-mode …participant FS as Environment/<br/>File System App->>Agent: Initialize with AsyncGenerator activate Agent App->>Agent: Yield Message 1 Agent->>Tools: Execute tools Tools->>F… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …up()` Pre-warms the CLI subprocess by spawning it and completing the initialize handshake before a prompt is available. The returned [`WarmQuery`](#warmquery) handle accepts a prompt later and writes… Claude Code changelog Claude Code CLI · in the page changelog …Fixed stdio MCP servers receiving a `server/discover` request before `initialize`, forcing lazy servers to start their backend on every session open * Fixed a proxy's refusal of a connection being r… Commands Claude Code CLI · in the page commands …| Initialize project with a `CLAUDE.md` guide. Set `CLAUDE_CODE_NEW_INIT=1` for an interactive flow that also walks through skills,… Error reference Claude Code CLI · in the page errors …rocess. Before v2.1.174, a background session assigned to an idle pre-initialized worker could fail this way even when valid credentials were configured. Before v2.1.176, a cloud session that sat idle… Plugins reference Claude Code CLI · in the page plugins-reference …ing naming the plugin whose server is active. **Servers that fail to initialize**: Claude Code skips a server whose configuration is invalid, for example one missing `command` or `extensionToLanguage… Configure the sandboxed Bash tool Claude Code CLI · in the page sandboxing …ables the sandbox, refuses to start Claude Code if the sandbox cannot initialize, and prevents the model from retrying commands outside the sandbox: ```json theme={null} { "sandbox": { "enabled… Deploy self-hosted environments to production Claude Code CLI · in the page self-hosted-environments-deploy …at startup. See [Shutdown timing](#shutdown-timing). Once logging is initialized, the runner writes its lifecycle log, including `[runner:fatal]` lines, to stdout, and debug output to stderr, all as… Self-hosted environments reference Claude Code CLI · in the page self-hosted-environments-reference …| Release a session slot if the child hasn't signaled that it initialized within N minutes of spawn. Cleared by the child's init signal on the [activity channel](/docs/en/self-hosted-environme… Troubleshoot installation and login Claude Code CLI · in the page troubleshoot-install …n errors Errors like `curl: (35) TLS connect error`, `schannel: next InitializeSecurityContext failed`, or PowerShell's `Could not establish trust relationship for the SSL/TLS secure channel` indicat… Run parallel sessions with worktrees Claude Code CLI · in the page worktrees …# Set up the worktree environment A worktree is a fresh checkout, so initialize your development environment there: ask Claude to install dependencies, or run your project's setup yourself in the wor… Lazy authentication for MCP servers Claude Documentation · in the page connectors/building/lazy-authentication …-auth gate: fail with 401 BEFORE the MCP layer sees the request. // initialize, tools/list, and public tool calls fall through. if (!authed && callsProtectedTool(req.body)) { res .status… Managing your directory listing Claude Documentation · in the page connectors/building/managing-your-listing …last 30 days. Every MCP message counts toward the ranking, including `initialize` and `tools/list`, and it includes accounts whose connection attempt never finished authenticating — a broader populati… Design guidelines Claude Documentation · in the page connectors/building/mcp-apps/design-guidelines …your app supports via `appCapabilities.availableDisplayModes` in `ui/initialize`. The host responds with the modes it supports, and your app can request a switch with `ui/request-display-mode`. Modes… Supersede older widget instances Claude Documentation · in the page connectors/building/mcp-apps/instance-supersession …the announce() definition in the broadcast snippet, // so channel is initialized before announce() runs. const serverKey = await Promise.race([ serverKeyReady, new Promise<null>((r) => setTimeout… Testing your connector Claude Documentation · in the page connectors/building/testing …## Detect Claude as the client Claude identifies itself in the MCP `initialize` handshake via `clientInfo`, but the exact value depends on the surface and the request path. You may see `"name": "cla… Changelog Claude Documentation · in the page cowork/changelog …d a rare Windows startup failure where the first window could fail to initialize on a fresh install. **Code** * No user-facing changes. **Cowork** * No user-facing changes. **3P** *… MCP, plugins, skills, and hooks Claude Documentation · in the page third-party/claude-desktop/extensions …nectors** has a **Test this connection** button that runs a live MCP `initialize` and `tools/list` against the server using the headers or OAuth settings you've entered, then shows the round-trip late… Build an MCP client Model Context Protocol · in the page docs/2024-11-05/develop/build-client ….env class MCPClient: def __init__(self): # Initialize session and client objects self.session: Optional[ClientSession] = None self.exit_stack = Async… Build an MCP server Model Context Protocol · in the page docs/2024-11-05/develop/build-server …y import httpx from mcp.server.fastmcp import FastMCP # Initialize FastMCP server mcp = FastMCP("weather") # Constants NWS_API_BASE = "https://api.weather.gov" USER_AGEN… Client Best Practices Model Context Protocol · in the page docs/2024-11-05/develop/clients/client-best-practices …ble Model->>Host: enable_server("salesforce") Host->>Server: Initialize connection Server-->>Host: Server capabilities + tools Host-->>Model: Salesforce server connected Note ove… Architecture overview Model Context Protocol · in the page docs/2024-11-05/learn/architecture …ycle management](#lifecycle-management) section, the client sends an `initialize` request to establish the connection and negotiate supported features. <CodeGroup> ```json Initialize Reques… Debugging Model Context Protocol · in the page docs/2024-11-05/tools/debugging …to a client that hasn't declared that capability. Inspect the [`initialize` exchange](/specification/2024-11-05/basic/lifecycle#initialization) to verify both sides declared what you expect… Understanding Authorization in MCP Model Context Protocol · in the page docs/2024-11-05/tutorials/security/authorization …"@modelcontextprotocol/sdk/server/streamableHttp.js"; import { isInitializeRequest } from "@modelcontextprotocol/sdk/types.js"; import { z } from "zod"; import cors from "cors"; impor… Security Best Practices Model Context Protocol · in the page docs/2024-11-05/tutorials/security/security_best_practices …participant ServerB participant Attacker Client->>ServerA: Initialize (connect to HTTP server) ServerA-->>Client: Respond with session ID Attacker->>ServerB: Access/guess session I… Build an MCP client Model Context Protocol · in the page docs/2025-03-26/develop/build-client ….env class MCPClient: def __init__(self): # Initialize session and client objects self.session: Optional[ClientSession] = None self.exit_stack = Async… Build an MCP server Model Context Protocol · in the page docs/2025-03-26/develop/build-server …y import httpx from mcp.server.fastmcp import FastMCP # Initialize FastMCP server mcp = FastMCP("weather") # Constants NWS_API_BASE = "https://api.weather.gov" USER_AGEN… Client Best Practices Model Context Protocol · in the page docs/2025-03-26/develop/clients/client-best-practices …ble Model->>Host: enable_server("salesforce") Host->>Server: Initialize connection Server-->>Host: Server capabilities + tools Host-->>Model: Salesforce server connected Note ove… Architecture overview Model Context Protocol · in the page docs/2025-03-26/learn/architecture …ycle management](#lifecycle-management) section, the client sends an `initialize` request to establish the connection and negotiate supported features. <CodeGroup> ```json Initialize Reques…