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

1,258 pages for port.

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

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… Security Model Context Protocol · in the page docs/2026-07-28/tools/inspector/security …t stands between that capability and anything else that can reach the port. * **Secrets go to the OS keychain when there is one.** Without one, they go to a file that is **plaintext unless you supply… TUI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/tui …figuration.md#shared-server-selection-flags) (`--server-url`, `--transport`, `--header`, `-e`, `--cwd`) plus `--protocol-era` for an ad-hoc server, and the [OAuth client flags](/docs/2026-07-28/tools/… Web client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/web …heck entirely, but only on a machine where nothing else can reach the port. Both are described under [Web backend environment variables](/docs/2026-07-28/tools/inspector/configuration.md#web-backend-e… Understanding Authorization in MCP Model Context Protocol · in the page docs/2026-07-28/tutorials/security/authorization …ion for Local MCP Servers** > > For MCP servers using the [STDIO transport](/specification/latest/basic/transports.md#stdio), you can use environment-based credentials or credentials provided by third… Local Server Security Model Context Protocol · in the page docs/2026-07-28/tutorials/security/local-server-security …ut. ### The stdio Trust Model Most local servers use the stdio transport: your client spawns the server as a subprocess, and the two communicate over stdin and stdout. That design carries an importa… Security Best Practices Model Context Protocol · in the page docs/2026-07-28/tutorials/security/security_best_practices …tects the third-party API. It may lack dynamic client registration support, requiring the MCP proxy to use a static client ID for all requests. **Third-Party API** : The protected resource server tha… Build an MCP client Model Context Protocol · in the page docs/draft/develop/build-client …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 asynci… Build an MCP server Model Context Protocol · in the page docs/draft/develop/build-server …all it from your tools. ### Quick Examples ```python theme={null} import logging logger = logging.getLogger(__name__) # ❌ Bad (STDIO) print("Processing request") # ✅ Good (STDIO) logger.info("Pro… Build with Agent Skills Model Context Protocol · in the page docs/draft/develop/build-with-agent-skills …n and implementation [Agent skills](https://agentskills.io/home) are portable instruction sets that give AI coding assistants domain knowledge for a task. For MCP development, they encode the design… Client Best Practices Model Context Protocol · in the page docs/draft/develop/clients/client-best-practices …orm.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool) support this natively; check your provider's documentation for an equivalent. When available, you may prefer the platform's tool sear… Connect to local MCP servers Model Context Protocol · in the page docs/draft/develop/connect-local-servers …cure, controlled access to local resources and tools. Many clients support MCP, enabling diverse integration possibilities across different platforms and applications. This guide demonstrates how to… Connect to remote MCP Servers Model Context Protocol · in the page docs/draft/develop/connect-remote-servers …cts with real-time access to external resources. Many clients now support remote MCP servers, enabling a wide range of integration possibilities. This guide demonstrates how to connect to remote MCP… What is the Model Context Protocol (MCP)? Model Context Protocol · in the page docs/draft/getting-started/intro …access key information and perform tasks. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect electronic devices, MCP provides a standardized way… Architecture overview Model Context Protocol · in the page docs/draft/learn/architecture …corresponding MCP server. Local MCP servers that use the STDIO transport typically serve a single MCP client, whereas remote MCP servers that use the Streamable HTTP transport will typically serve m… Understanding MCP clients Model Context Protocol · in the page docs/draft/learn/client-concepts …ct 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 c… Understanding MCP servers Model Context Protocol · in the page docs/draft/learn/server-concepts …directly and decide how to use it - whether that's selecting relevant portions, searching with embeddings, or passing it all to the model. Each resource has a unique URI (e.g., `file:///path/to/docum… Versioning Model Context Protocol · in the page docs/draft/learn/versioning …n the [`MCP-Protocol-Version` header](/specification/draft/basic/transports/streamable-http#protocol-version-header). Clients and servers **MAY** support multiple protocol versions simultaneously. If… SDKs Model Context Protocol · in the page docs/draft/sdk …are classified into tiers based on feature completeness, protocol support, and maintenance commitment. Learn more about [SDK tiers](/community/sdk-tiers.md). ## Available SDKs | SDK | Repository |… Debugging Model Context Protocol · in the page docs/draft/tools/debugging …*[MCP Inspector](/docs/draft/tools/inspector.md)**: interactive, transport-agnostic testing UI. Connect to stdio or Streamable HTTP servers, invoke [tools](/specification/latest/server/tools.md)… MCP Inspector Model Context Protocol · in the page docs/draft/tools/inspector …core, so a connection behaves identically across them: the same transports, the same configuration files, the same OAuth state on disk, and the same [protocol-era](/docs/draft/tools/inspector/protoco… Authorization Model Context Protocol · in the page docs/draft/tools/inspector/authorization …/authorization-server-discovery.md) to learn the endpoints and the supported grants. **3. Register or identify the client** The Inspector identifies itself to the authorization server through whiche… CLI client Model Context Protocol · in the page docs/draft/tools/inspector/cli …s/list # HTTP mcp-inspector --cli https://api.example.com/mcp --transport http --method tools/list # From a file mcp-inspector --cli --config ./mcp.json --server myserver --method tools/list ``` Wh… Configuration and flags Model Context Protocol · in the page docs/draft/tools/inspector/configuration …itional mcp-inspector --server-url https://api.example.com/mcp --transport http ``` ### Shared server-selection flags Defined **separately by each of web, CLI, and TUI**, so they're available in all… mcpdo connection client Model Context Protocol · in the page docs/draft/tools/inspector/mcpdo …allow the fallback anyway. Connections **self-heal**: a dropped transport (an expired HTTP session, an exited stdio child) is re-dialed transparently on next use with the stored credentials. Only an… Protocol eras Model Context Protocol · in the page docs/draft/tools/inspector/protocol-eras …evision) as a first-class, per-server setting, orthogonal to the transport: the same HTTP URL can be inspected as a legacy server or as a modern one. Several tabs render meaningfully different UI and… 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… Security Model Context Protocol · in the page docs/draft/tools/inspector/security …t stands between that capability and anything else that can reach the port. * **Secrets go to the OS keychain when there is one.** Without one, they go to a file that is **plaintext unless you supply… TUI client Model Context Protocol · in the page docs/draft/tools/inspector/tui …figuration.md#shared-server-selection-flags) (`--server-url`, `--transport`, `--header`, `-e`, `--cwd`) plus `--protocol-era` for an ad-hoc server, and the [OAuth client flags](/docs/draft/tools/inspe… Web client Model Context Protocol · in the page docs/draft/tools/inspector/web …heck entirely, but only on a machine where nothing else can reach the port. Both are described under [Web backend environment variables](/docs/draft/tools/inspector/configuration.md#web-backend-enviro… Understanding Authorization in MCP Model Context Protocol · in the page docs/draft/tutorials/security/authorization …ion for Local MCP Servers** > > For MCP servers using the [STDIO transport](/specification/latest/basic/transports.md#stdio), you can use environment-based credentials or credentials provided by third… Local Server Security Model Context Protocol · in the page docs/draft/tutorials/security/local-server-security …ut. ### The stdio Trust Model Most local servers use the stdio transport: your client spawns the server as a subprocess, and the two communicate over stdin and stdout. That design carries an importa… Security Best Practices Model Context Protocol · in the page docs/draft/tutorials/security/security_best_practices …tects the third-party API. It may lack dynamic client registration support, requiring the MCP proxy to use a static client ID for all requests. **Third-Party API** : The protected resource server tha… Build an MCP App Model Context Protocol · in the page extensions/apps/build …etup). ### Using an AI coding agent AI coding agents with Skills support can scaffold a complete MCP App project for you. Skills are folders of instructions and resources that your agent loads when… MCP Apps Model Context Protocol · in the page extensions/apps/overview …ce. When a large language model (LLM) decides to call a tool that supports MCP Apps, here's what happens: 1. **UI preloading**: The tool description includes a `_meta.ui.resourceUri` field pointi… Enterprise-Managed Authorization Model Context Protocol · in the page extensions/auth/enterprise-managed-authorization …vocation needed. ## Implementation guide ### For MCP clients To support Enterprise-Managed Authorization, your client must: 1. **Declare support** in its per-request capabilities: ```jsonc theme=… OAuth Client Credentials Model Context Protocol · in the page extensions/auth/oauth-client-credentials …xtension (`io.modelcontextprotocol/oauth-client-credentials`) adds support for the [OAuth 2.0 client credentials flow](https://datatracker.ietf.org/doc/html/rfc6749#section-4.4) to MCP. This enables a… Authorization Extensions Model Context Protocol · in the page extensions/auth/overview …r authorization | Core MCP spec (no extension needed) | ## Client support Authorization extension support varies by client. See the [client matrix](/extensions/client-matrix.md) for a full breakdown… Extensions Overview Model Context Protocol · in the page extensions/overview …ions/skills/overview.md) | Discover workflow instructions and read supporting files through MCP resources. | See the [Skills overview](/extensions/skills/overview.md) to get started and the [client m… Skills Model Context Protocol · in the page extensions/skills/overview …g-groups/skills-over-mcp.md) maintains the extension. SDK and host support is still being implemented; see the [client support matrix](/extensions/client-matrix.md) and [implementations list](https://… Tasks Model Context Protocol · in the page extensions/tasks/overview …connection for the duration of the operation. Many clients and transport intermediaries impose timeouts that make this impractical beyond a few seconds. * **Crash resilience.** A task ID is a dura… The MCP Registry Model Context Protocol · in the page registry/about …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). The MCP Registry is the official centralized meta… How to Authenticate When Publishing to the Official MCP Registry Model Context Protocol · in the page registry/authentication …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). You must authenticate before publishing to the of… Frequently Asked Questions Model Context Protocol · in the page registry/faq …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). ## General ### What is the difference between "O… How to Automate Publishing with GitHub Actions Model Context Protocol · in the page registry/github-actions …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). ## Step 1: Create a Workflow File In your server… The MCP Registry Moderation Policy Model Context Protocol · in the page registry/moderation-policy …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). **TL;DR**: The MCP Registry is quite permissive!… Quickstart: Publish an MCP Server to the MCP Registry Model Context Protocol · in the page registry/quickstart …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). This tutorial will show you how to publish an MCP… MCP Registry Aggregators Model Context Protocol · in the page registry/registry-aggregators …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). Aggregators are downstream consumers of the MCP R… Publishing Remote Servers Model Context Protocol · in the page registry/remote-servers …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). The MCP Registry supports remote MCP servers via… Official MCP Registry Terms of Service Model Context Protocol · in the page registry/terms-of-service …ur before general availability. If you encounter any issues, please report them on [GitHub](https://github.com/modelcontextprotocol/registry/issues). **Effective date: 2025-09-02** ## Overview Thes…
Feedback