Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

773 pages for write.

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

Architecture overview Model Context Protocol · in the page docs/2024-11-05/learn/architecture …{null} # Pseudo Code async with stdio_client(server_config) as (read, write): async with ClientSession(read, write) as session: init_response = await session.initialize() if init_r… Understanding MCP servers Model Context Protocol · in the page docs/2024-11-05/learn/server-concepts …call, and decides when to use them based on user requests. Tools can write to databases, call external APIs, modify files, or trigger other logic. | Search flights Send messages Create calendar event… Understanding Authorization in MCP Model Context Protocol · in the page docs/2024-11-05/tutorials/security/authorization …indFirstValue("preferred_username") ?? "unknown"; Console.WriteLine($"Token validated for: {name} ({email})"); return Task.CompletedTask; }, OnAuthenticationFai… Build an MCP client Model Context Protocol · in the page docs/2025-03-26/develop/build-client …enter_async_context(stdio_client(server_params)) self.stdio, self.write = stdio_transport self.session = await self.exit_stack.enter_async_context(ClientSession(self.stdio, self.write)) a… Build an MCP server Model Context Protocol · in the page docs/2025-03-26/develop/build-server …ful about how you handle logging: **For STDIO-based servers:** Never write to stdout. Writing to stdout will corrupt the JSON-RPC messages and break your server. The `print()` function writes to stdo… Client Best Practices Model Context Protocol · in the page docs/2025-03-26/develop/clients/client-best-practices …task requires chaining multiple tools (read a document, transform it, write it somewhere else), each intermediate result passes through the model, consuming tokens and adding latency even when it has… Connect to local MCP servers Model Context Protocol · in the page docs/2025-03-26/develop/connect-local-servers …explore the capabilities: ### File Management Examples * **"Can you write a poem and save it to my desktop?"** - Claude will compose a poem and create a new text file on your desktop * **"What work-… Architecture overview Model Context Protocol · in the page docs/2025-03-26/learn/architecture …{null} # Pseudo Code async with stdio_client(server_config) as (read, write): async with ClientSession(read, write) as session: init_response = await session.initialize() if init_r… Understanding MCP servers Model Context Protocol · in the page docs/2025-03-26/learn/server-concepts …call, and decides when to use them based on user requests. Tools can write to databases, call external APIs, modify files, or trigger other logic. | Search flights Send messages Create calendar event… Understanding Authorization in MCP Model Context Protocol · in the page docs/2025-03-26/tutorials/security/authorization …indFirstValue("preferred_username") ?? "unknown"; Console.WriteLine($"Token validated for: {name} ({email})"); return Task.CompletedTask; }, OnAuthenticationFai… Build an MCP client Model Context Protocol · in the page docs/2025-06-18/develop/build-client …enter_async_context(stdio_client(server_params)) self.stdio, self.write = stdio_transport self.session = await self.exit_stack.enter_async_context(ClientSession(self.stdio, self.write)) a… Build an MCP server Model Context Protocol · in the page docs/2025-06-18/develop/build-server …ful about how you handle logging: **For STDIO-based servers:** Never write to stdout. Writing to stdout will corrupt the JSON-RPC messages and break your server. The `print()` function writes to stdo… Client Best Practices Model Context Protocol · in the page docs/2025-06-18/develop/clients/client-best-practices …task requires chaining multiple tools (read a document, transform it, write it somewhere else), each intermediate result passes through the model, consuming tokens and adding latency even when it has… Connect to local MCP servers Model Context Protocol · in the page docs/2025-06-18/develop/connect-local-servers …explore the capabilities: ### File Management Examples * **"Can you write a poem and save it to my desktop?"** - Claude will compose a poem and create a new text file on your desktop * **"What work-… Architecture overview Model Context Protocol · in the page docs/2025-06-18/learn/architecture …{null} # Pseudo Code async with stdio_client(server_config) as (read, write): async with ClientSession(read, write) as session: init_response = await session.initialize() if init_r… Understanding MCP servers Model Context Protocol · in the page docs/2025-06-18/learn/server-concepts …call, and decides when to use them based on user requests. Tools can write to databases, call external APIs, modify files, or trigger other logic. | Search flights Send messages Create calendar event… Understanding Authorization in MCP Model Context Protocol · in the page docs/2025-06-18/tutorials/security/authorization …indFirstValue("preferred_username") ?? "unknown"; Console.WriteLine($"Token validated for: {name} ({email})"); return Task.CompletedTask; }, OnAuthenticationFai… Build an MCP client Model Context Protocol · in the page docs/2025-11-25/develop/build-client …enter_async_context(stdio_client(server_params)) self.stdio, self.write = stdio_transport self.session = await self.exit_stack.enter_async_context(ClientSession(self.stdio, self.write)) a… Build an MCP server Model Context Protocol · in the page docs/2025-11-25/develop/build-server …ful about how you handle logging: **For STDIO-based servers:** Never write to stdout. Writing to stdout will corrupt the JSON-RPC messages and break your server. The `print()` function writes to stdo… Client Best Practices Model Context Protocol · in the page docs/2025-11-25/develop/clients/client-best-practices …task requires chaining multiple tools (read a document, transform it, write it somewhere else), each intermediate result passes through the model, consuming tokens and adding latency even when it has… Connect to local MCP servers Model Context Protocol · in the page docs/2025-11-25/develop/connect-local-servers …explore the capabilities: ### File Management Examples * **"Can you write a poem and save it to my desktop?"** - Claude will compose a poem and create a new text file on your desktop * **"What work-… Architecture overview Model Context Protocol · in the page docs/2025-11-25/learn/architecture …{null} # Pseudo Code async with stdio_client(server_config) as (read, write): async with ClientSession(read, write) as session: init_response = await session.initialize() if init_r… Understanding MCP servers Model Context Protocol · in the page docs/2025-11-25/learn/server-concepts …call, and decides when to use them based on user requests. Tools can write to databases, call external APIs, modify files, or trigger other logic. | Search flights Send messages Create calendar event… Understanding Authorization in MCP Model Context Protocol · in the page docs/2025-11-25/tutorials/security/authorization …indFirstValue("preferred_username") ?? "unknown"; Console.WriteLine($"Token validated for: {name} ({email})"); return Task.CompletedTask; }, OnAuthenticationFai… Build an MCP client Model Context Protocol · in the page docs/2026-07-28/develop/build-client …mcpClient.ListToolsAsync(); foreach (var tool in tools) { Console.WriteLine($"Connected to server with tools: {tool.Name}"); } ``` Add this function at the end of the `Program.cs` file: ```cshar… Build an MCP server Model Context Protocol · in the page docs/2026-07-28/develop/build-server …ful about how you handle logging: **For STDIO-based servers:** Never write to stdout. Writing to stdout will corrupt the JSON-RPC messages and break your server. The `print()` function writes to stdo… Client Best Practices Model Context Protocol · in the page docs/2026-07-28/develop/clients/client-best-practices …task requires chaining multiple tools (read a document, transform it, write it somewhere else), each intermediate result passes through the model, consuming tokens and adding latency even when it has… Connect to local MCP servers Model Context Protocol · in the page docs/2026-07-28/develop/connect-local-servers …explore the capabilities: ### File Management Examples * **"Can you write a poem and save it to my desktop?"** - Claude will compose a poem and create a new text file on your desktop * **"What work-… Understanding MCP servers Model Context Protocol · in the page docs/2026-07-28/learn/server-concepts …call, and decides when to use them based on user requests. Tools can write to databases, call external APIs, modify files, or trigger other logic. | Search flights Send messages Create calendar event… Authorization Model Context Protocol · in the page docs/2026-07-28/tools/inspector/authorization …prise IdP). The same file the web client's **Client Settings** dialog writes. | | The server's `oauth` block in the [catalog file](/docs/2026-07-28/tools/inspector/configuration.md#catalog-file-format… CLI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/cli …rvers/add` | `--server`, plus a positional target or `--server-url` | Write the catalog without connecting (see [Editing the catalog](#editing-the-catalog)). | | `servers/edit` | `--server`, plus what… Configuration and flags Model Context Protocol · in the page docs/2026-07-28/tools/inspector/configuration …at you want when pointing the Inspector at a config file you > didn't write: a coworker's, a client application's, or one checked into a > repo. It guarantees the Inspector will not touch the file. #… mcpdo connection client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/mcpdo …daemon errors) has control characters stripped, so a server cannot rewrite your terminal. `--format json` stays verbatim. ## Authorization `mcpdo` shares `oauth.json` and the secret store with the… Recipes Model Context Protocol · in the page docs/2026-07-28/tools/inspector/recipes …n an imported server's id is already taken, you choose whether to overwrite, skip or rename it. If you'd rather not touch your catalog at all, launch against the foreign file read-only instead: ```ba… Security Model Context Protocol · in the page docs/2026-07-28/tools/inspector/security …| **With a key (AES-256-GCM, key stretched with scrypt against a per-write random salt):** | Threat | Protected? | | - | - | | The file leaking on its own (a backup, snapshot, copy or commit), provi… TUI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/tui …ient.json`, the same file the web client's **Client Settings** dialog writes. Point at a different one with `--client-config` or `MCP_CLIENT_CONFIG_PATH`. See [Authorization](/docs/2026-07-28/tools/i… Understanding Authorization in MCP Model Context Protocol · in the page docs/2026-07-28/tutorials/security/authorization …indFirstValue("preferred_username") ?? "unknown"; Console.WriteLine($"Token validated for: {name} ({email})"); return Task.CompletedTask; }, OnAuthenticationFai… Local Server Security Model Context Protocol · in the page docs/2026-07-28/tutorials/security/local-server-security …s, API keys)"] Server --> FS["Files your account<br/>can read and write"] Server --> Net["Unrestricted outbound<br/>network access"] Server --> Deps["Its full dependency tree,<br/>fetched… Build an MCP client Model Context Protocol · in the page docs/draft/develop/build-client …mcpClient.ListToolsAsync(); foreach (var tool in tools) { Console.WriteLine($"Connected to server with tools: {tool.Name}"); } ``` Add this function at the end of the `Program.cs` file: ```cshar… Build an MCP server Model Context Protocol · in the page docs/draft/develop/build-server …ful about how you handle logging: **For STDIO-based servers:** Never write to stdout. Writing to stdout will corrupt the JSON-RPC messages and break your server. The `print()` function writes to stdo… Client Best Practices Model Context Protocol · in the page docs/draft/develop/clients/client-best-practices …task requires chaining multiple tools (read a document, transform it, write it somewhere else), each intermediate result passes through the model, consuming tokens and adding latency even when it has… Connect to local MCP servers Model Context Protocol · in the page docs/draft/develop/connect-local-servers …explore the capabilities: ### File Management Examples * **"Can you write a poem and save it to my desktop?"** - Claude will compose a poem and create a new text file on your desktop * **"What work-… Understanding MCP servers Model Context Protocol · in the page docs/draft/learn/server-concepts …call, and decides when to use them based on user requests. Tools can write to databases, call external APIs, modify files, or trigger other logic. | Search flights Send messages Create calendar event… Authorization Model Context Protocol · in the page docs/draft/tools/inspector/authorization …prise IdP). The same file the web client's **Client Settings** dialog writes. | | The server's `oauth` block in the [catalog file](/docs/draft/tools/inspector/configuration.md#catalog-file-format) | P… CLI client Model Context Protocol · in the page docs/draft/tools/inspector/cli …rvers/add` | `--server`, plus a positional target or `--server-url` | Write the catalog without connecting (see [Editing the catalog](#editing-the-catalog)). | | `servers/edit` | `--server`, plus what… Configuration and flags Model Context Protocol · in the page docs/draft/tools/inspector/configuration …at you want when pointing the Inspector at a config file you > didn't write: a coworker's, a client application's, or one checked into a > repo. It guarantees the Inspector will not touch the file. #… mcpdo connection client Model Context Protocol · in the page docs/draft/tools/inspector/mcpdo …daemon errors) has control characters stripped, so a server cannot rewrite your terminal. `--format json` stays verbatim. ## Authorization `mcpdo` shares `oauth.json` and the secret store with the… Recipes Model Context Protocol · in the page docs/draft/tools/inspector/recipes …n an imported server's id is already taken, you choose whether to overwrite, skip or rename it. If you'd rather not touch your catalog at all, launch against the foreign file read-only instead: ```ba… Security Model Context Protocol · in the page docs/draft/tools/inspector/security …| **With a key (AES-256-GCM, key stretched with scrypt against a per-write random salt):** | Threat | Protected? | | - | - | | The file leaking on its own (a backup, snapshot, copy or commit), provi… TUI client Model Context Protocol · in the page docs/draft/tools/inspector/tui …ient.json`, the same file the web client's **Client Settings** dialog writes. Point at a different one with `--client-config` or `MCP_CLIENT_CONFIG_PATH`. See [Authorization](/docs/draft/tools/inspec…
Feedback