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

392 pages for import.

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

Build an MCP client Model Context Protocol · in the page docs/2025-06-18/develop/build-client …ating the Client ### Basic Client Structure First, let's set up our imports and create the basic client class: ```python theme={null} import asyncio from typing import Optional from contextlib impo… Build an MCP server Model Context Protocol · in the page docs/2025-06-18/develop/build-server …rites to stderr or files. ### Quick Examples ```python theme={null} import sys import logging # ❌ Bad (STDIO) print("Processing request") # ✅ Good (STDIO) print("Processing request", file=sys.stde… Architecture overview Model Context Protocol · in the page docs/2025-06-18/learn/architecture …nitialization sequence. #### Primitives MCP primitives are the most important concept within MCP. They define what clients and servers can offer each other. These primitives specify the types of con… Understanding MCP clients Model Context Protocol · in the page docs/2025-06-18/learn/client-concepts …rect communication with one server. Understanding the distinction is important: the *host* is the application users interact with, while *clients* are the protocol-level components that enable server… Understanding MCP servers Model Context Protocol · in the page docs/2025-06-18/learn/server-concepts …avel documents** (`file:///Documents/Travel/passport.pdf`) - Accesses important documents * **Previous itineraries** (`trips://history/barcelona-2023`) - References past trips and preferences The AI… Debugging Model Context Protocol · in the page docs/2025-06-18/tools/debugging …tion/2025-06-18/server/utilities/logging#setting-log-level) request. Important events to log: * Initialization steps * Resource access * Tool execution * Error conditions * Performance metrics ## C… Understanding Authorization in MCP Model Context Protocol · in the page docs/2025-06-18/tutorials/security/authorization …set up an **audience** for our Keycloak-issued tokens. An audience is important to configure because it embeds the intended destination directly into the issued access token. This helps your MCP serve… Security Best Practices Model Context Protocol · in the page docs/2025-06-18/tutorials/security/security_best_practices …Circumvention** * The MCP Server or downstream APIs might implement important security controls like rate limiting, request validation, or traffic monitoring, that depend on the token audien… Build an MCP client Model Context Protocol · in the page docs/2025-11-25/develop/build-client …ating the Client ### Basic Client Structure First, let's set up our imports and create the basic client class: ```python theme={null} import asyncio from typing import Optional from contextlib impo… Build an MCP server Model Context Protocol · in the page docs/2025-11-25/develop/build-server …rites to stderr or files. ### Quick Examples ```python theme={null} import sys import logging # ❌ Bad (STDIO) print("Processing request") # ✅ Good (STDIO) print("Processing request", file=sys.stde… Architecture overview Model Context Protocol · in the page docs/2025-11-25/learn/architecture …nitialization sequence. #### Primitives MCP primitives are the most important concept within MCP. They define what clients and servers can offer each other. These primitives specify the types of con… Understanding MCP clients Model Context Protocol · in the page docs/2025-11-25/learn/client-concepts …rect communication with one server. Understanding the distinction is important: the *host* is the application users interact with, while *clients* are the protocol-level components that enable server… Understanding MCP servers Model Context Protocol · in the page docs/2025-11-25/learn/server-concepts …avel documents** (`file:///Documents/Travel/passport.pdf`) - Accesses important documents * **Previous itineraries** (`trips://history/barcelona-2023`) - References past trips and preferences The AI… Debugging Model Context Protocol · in the page docs/2025-11-25/tools/debugging …tion/2025-11-25/server/utilities/logging#setting-log-level) request. Important events to log: * Initialization steps * Resource access * Tool execution * Error conditions * Performance metrics ## C… Understanding Authorization in MCP Model Context Protocol · in the page docs/2025-11-25/tutorials/security/authorization …set up an **audience** for our Keycloak-issued tokens. An audience is important to configure because it embeds the intended destination directly into the issued access token. This helps your MCP serve… Security Best Practices Model Context Protocol · in the page docs/2025-11-25/tutorials/security/security_best_practices …Circumvention** * The MCP Server or downstream APIs might implement important security controls like rate limiting, request validation, or traffic monitoring, that depend on the token audien… Build an MCP client Model Context Protocol · in the page docs/2026-07-28/develop/build-client …ou keep your `ANTHROPIC_API_KEY` secure! ## Creating the Client ### Imports and Setup First, let's set up our imports and the pieces the rest of the file shares: ```python theme={null} import asyn… Build an MCP server Model Context Protocol · in the page docs/2026-07-28/develop/build-server …call it from your tools. ### Quick Examples ```python theme={null} import logging logger = logging.getLogger(__name__) # ❌ Bad (STDIO) print("Processing request") # ✅ Good (STDIO) logger.info("P… Architecture overview Model Context Protocol · in the page docs/2026-07-28/learn/architecture …the discovery sequence. #### Primitives MCP primitives are the most important concept within MCP. They define what clients and servers can offer each other. These primitives specify the types of con… Understanding MCP clients Model Context Protocol · in the page docs/2026-07-28/learn/client-concepts …rect communication with one server. Understanding the distinction is important: the *host* is the application users interact with, while *clients* are the protocol-level components that enable server… Understanding MCP servers Model Context Protocol · in the page docs/2026-07-28/learn/server-concepts …avel documents** (`file:///Documents/Travel/passport.pdf`) - Accesses important documents * **Previous itineraries** (`trips://history/barcelona-2023`) - References past trips and preferences The AI… Debugging Model Context Protocol · in the page docs/2026-07-28/tools/debugging …d what the server is doing as it runs: ```python Python theme={null} import logging from mcp.server import MCPServer logger = logging.getLogger(__name__) mcp = MCPServer("reports") @mcp.tool() a… MCP Inspector Model Context Protocol · in the page docs/2026-07-28/tools/inspector …on. > **[Recipes](/docs/2026-07-28/tools/inspector/recipes.md)** > > Importing client configs, reviewing MCP Apps, Docker, and network hosting. > **[Debugging guide](/docs/2026-07-28/tools/debugging… Configuration and flags Model Context Protocol · in the page docs/2026-07-28/tools/inspector/configuration …to `debug`. You do not have to hand-write these; the web client can [import an existing client config](/docs/2026-07-28/tools/inspector/recipes.md#importing-an-existing-client-config) from Claude Des… Recipes Model Context Protocol · in the page docs/2026-07-28/tools/inspector/recipes # Recipes > Practical guides for transports, importing configs, reviewing MCP Apps, Docker, network hosting, and persistent connections with mcpdo ## Connecting stdio vs. HTTP servers ### stdio A… Web client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/web …| | - | - | - | | **Servers** | Always | The server list: add, edit, import, connect, and open per-server settings. | | **Apps** | The server exposes MCP App tools | Renders a tool's UI in a sandboxe… Understanding Authorization in MCP Model Context Protocol · in the page docs/2026-07-28/tutorials/security/authorization …set up an **audience** for our Keycloak-issued tokens. An audience is important to configure because it embeds the intended destination directly into the issued access token. This helps your MCP serve… Local Server Security Model Context Protocol · in the page docs/2026-07-28/tutorials/security/local-server-security …and the two communicate over stdin and stdout. That design carries an important assumption: **the client and a stdio server share one trust domain.** They run side by side with the same privileges, an… Security Best Practices Model Context Protocol · in the page docs/2026-07-28/tutorials/security/security_best_practices …Circumvention** * The MCP Server or downstream APIs might implement important security controls like rate limiting, request validation, or traffic monitoring, that depend on the token audien… Build an MCP client Model Context Protocol · in the page docs/draft/develop/build-client …ou keep your `ANTHROPIC_API_KEY` secure! ## Creating the Client ### Imports and Setup First, let's set up our imports and the pieces the rest of the file shares: ```python theme={null} import asyn… Build an MCP server Model Context Protocol · in the page docs/draft/develop/build-server …call it from your tools. ### Quick Examples ```python theme={null} import logging logger = logging.getLogger(__name__) # ❌ Bad (STDIO) print("Processing request") # ✅ Good (STDIO) logger.info("P… Architecture overview Model Context Protocol · in the page docs/draft/learn/architecture …the discovery sequence. #### Primitives MCP primitives are the most important concept within MCP. They define what clients and servers can offer each other. These primitives specify the types of con… Understanding MCP clients Model Context Protocol · in the page docs/draft/learn/client-concepts …rect communication with one server. Understanding the distinction is important: the *host* is the application users interact with, while *clients* are the protocol-level components that enable server… Understanding MCP servers Model Context Protocol · in the page docs/draft/learn/server-concepts …avel documents** (`file:///Documents/Travel/passport.pdf`) - Accesses important documents * **Previous itineraries** (`trips://history/barcelona-2023`) - References past trips and preferences The AI… Debugging Model Context Protocol · in the page docs/draft/tools/debugging …d what the server is doing as it runs: ```python Python theme={null} import logging from mcp.server import MCPServer logger = logging.getLogger(__name__) mcp = MCPServer("reports") @mcp.tool() a… MCP Inspector Model Context Protocol · in the page docs/draft/tools/inspector …daemon. > **[Recipes](/docs/draft/tools/inspector/recipes.md)** > > Importing client configs, reviewing MCP Apps, Docker, and network hosting. > **[Debugging guide](/docs/draft/tools/debugging.md)*… Configuration and flags Model Context Protocol · in the page docs/draft/tools/inspector/configuration …to `debug`. You do not have to hand-write these; the web client can [import an existing client config](/docs/draft/tools/inspector/recipes.md#importing-an-existing-client-config) from Claude Desktop,… Recipes Model Context Protocol · in the page docs/draft/tools/inspector/recipes # Recipes > Practical guides for transports, importing configs, reviewing MCP Apps, Docker, network hosting, and persistent connections with mcpdo ## Connecting stdio vs. HTTP servers ### stdio A… Web client Model Context Protocol · in the page docs/draft/tools/inspector/web …| | - | - | - | | **Servers** | Always | The server list: add, edit, import, connect, and open per-server settings. | | **Apps** | The server exposes MCP App tools | Renders a tool's UI in a sandboxe… Understanding Authorization in MCP Model Context Protocol · in the page docs/draft/tutorials/security/authorization …set up an **audience** for our Keycloak-issued tokens. An audience is important to configure because it embeds the intended destination directly into the issued access token. This helps your MCP serve… Local Server Security Model Context Protocol · in the page docs/draft/tutorials/security/local-server-security …and the two communicate over stdin and stdout. That design carries an important assumption: **the client and a stdio server share one trust domain.** They run side by side with the same privileges, an… Security Best Practices Model Context Protocol · in the page docs/draft/tutorials/security/security_best_practices …Circumvention** * The MCP Server or downstream APIs might implement important security controls like rate limiting, request validation, or traffic monitoring, that depend on the token audien… Build an MCP App Model Context Protocol · in the page extensions/apps/build …"src/**/*.ts"] } ``` **vite.config.ts** ```typescript theme={null} import { defineConfig } from "vite"; import { viteSingleFile } from "vite-plugin-singlefile"; export default defineConfig({ plu… OAuth Client Credentials Model Context Protocol · in the page extensions/auth/oauth-client-credentials …### Using a client secret **TypeScript** ```typescript theme={null} import { Client, ClientCredentialsProvider, StreamableHTTPClientTransport, } from "@modelcontextprotocol/client"; const pro… Extension Support Matrix Model Context Protocol · in the page extensions/client-matrix …| | [Partial](https://developers.openai.com/plugins/build/mcp-server#import-skills-from-the-mcp-server) | | [Cursor](https://cursor.com/) | | | | | | [Archestra.AI](https://www.archestra.ai/) | | | |… Tasks Model Context Protocol · in the page extensions/tasks/overview …ects. **Batch processing.** Operations that process many items (bulk imports, mass updates) where partial progress is meaningful. Status messages report progress. ## Task lifecycle | Status | Meani… Official MCP Registry Terms of Service Model Context Protocol · in the page registry/terms-of-service …third party rights (including, without limitation, laws regarding the import or export of data or software, privacy, intellectual property, and local laws). You will not use the Registry, MCP servers,… SEP-1036: URL Mode Elicitation for secure out-of-band interactions Model Context Protocol · in the page seps/1036-url-mode-elicitation-for-secure-out-of-band-intera …chanism for external (3rd-party) OAuth flows. This was a particularly important motivating factor emerging from discussions in #234 and #284. 3. Payment and Subscription Flows: Financial transactions… SEP-1302: Formalize Working Groups and Interest Groups in MCP Governance Model Context Protocol · in the page seps/1302-formalize-working-groups-and-interest-groups-in-mc …should provide evidence of consensus within the community and discuss important objections or concerns raised during discussion.* The design above comes from experience in facilitating the creation o… SEP-1319: Decouple Request Payload from RPC Methods Definition Model Context Protocol · in the page seps/1319-decouple-request-payload-from-rpc-methods-definiti …is change will immediately improve the developer experience and, most importantly, pave the way for the future evolution of MCP across multiple transports. ## Specification The proposal introduces t…
Feedback