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

874 pages for auto.

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

Security Best Practices Model Context Protocol · in the page docs/2025-11-25/tutorials/security/security_best_practices …d IP range restrictions to redirect destinations * Consider disabling automatic redirect following and validating each hop **Use Egress Proxies** For server-side MCP client deployments, operators… Build an MCP client Model Context Protocol · in the page docs/2026-07-28/develop/build-client …erface * Implement rich console output * Add command history or auto-completion ## Running the Client To run your client with any MCP server: ```bash theme={null} uv run client.py path/to/ser… Build an MCP server Model Context Protocol · in the page docs/2026-07-28/develop/build-server …/mintcdn.com/mcp/4ZXF1PrDkEaJvXpn/images/current-weather.png?fit=max\&auto=format\&n=4ZXF1PrDkEaJvXpn\&q=85\&s=dce7b2f8a06c20ba358e4bd2e75fa4c7) > [!NOTE] > > Servers can connect to any client. We've… Client Best Practices Model Context Protocol · in the page docs/2026-07-28/develop/clients/client-best-practices …dn.com/mcp/JXfd5cBmEUh_qPUI/images/progressive-discovery.svg?fit=max\&auto=format\&n=JXfd5cBmEUh_qPUI\&q=85\&s=db39f47006107f04af43b5eeae2d6022) Progressive discovery avoids this: * The host fetches… Connect to local MCP servers Model Context Protocol · in the page docs/2026-07-28/develop/connect-local-servers …dn.com/mcp/4ZXF1PrDkEaJvXpn/images/quickstart-filesystem.png?fit=max\&auto=format\&n=4ZXF1PrDkEaJvXpn\&q=85\&s=629d7e754dc358d71a408d6ce970c1b1) ## Prerequisites Before starting this tutorial, ensur… Connect to remote MCP Servers Model Context Protocol · in the page docs/2026-07-28/develop/connect-remote-servers …XzQjUOzyH0mCNH/images/claude-desktop-hamburger-menu-icon.png?fit=max\&auto=format\&n=cpXzQjUOzyH0mCNH\&q=85\&s=66e498f668362c79f829a07b5ce863c8), hover over "File", and select "Settings" * **Browser**… What is the Model Context Protocol (MCP)? Model Context Protocol · in the page docs/2026-07-28/getting-started/intro …ntcdn.com/mcp/bEUxYpZqie0DsluH/images/mcp-simple-diagram.png?fit=max\&auto=format\&n=bEUxYpZqie0DsluH\&q=85\&s=35268aa0ad50b8c385913810e7604550) ## What can MCP enable? * Agents can access your Goog… Architecture overview Model Context Protocol · in the page docs/2026-07-28/learn/architecture …ss. This allows the LLM to understand what actions it can perform and automatically generates the appropriate tool calls during conversations. ```python Pseudo-code for AI application tool discovery… Understanding MCP clients Model Context Protocol · in the page docs/2026-07-28/learn/client-concepts …ractions are designed to be clear, contextual, and respectful of user autonomy: **Request presentation**: Clients display elicitation requests with clear context about which server is asking, why the… Understanding MCP servers Model Context Protocol · in the page docs/2026-07-28/learn/server-concepts …"[email protected]", subject: "Out of Office", body: "...") ``` Sends an automated out-of-office message to colleagues. #### User Interaction Model Tools are model-controlled, meaning AI models can dis… Debugging Model Context Protocol · in the page docs/2026-07-28/tools/debugging …d to stderr (standard error) will be captured by the host application automatically. > [!WARNING] > > Local MCP servers should not log messages to stdout (standard out), as this > will interfere with… MCP Inspector Model Context Protocol · in the page docs/2026-07-28/tools/inspector …cp/pUebPdrb6PY5_mfH/images/inspector/web-monitor-sidebar.png?fit=max\&auto=format\&n=pUebPdrb6PY5_mfH\&q=85\&s=2ced9eeefa020be53fe4fe957b7d07c6) The MCP Inspector web client after a tool call, with t… Authorization Model Context Protocol · in the page docs/2026-07-28/tools/inspector/authorization …](#mid-session-re-authorization), the CLI retries the refused request automatically, and the web client asks you to retry the action. ![](https://mintcdn.com/mcp/gk28X8wi_tbRYzej/images/inspector/aut… CLI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/cli …tored-auth-only`: never start interactive OAuth or step-up, and never auto-open a browser. Use tokens from the shared store if present, otherwise fail immediately with `auth_required`. This is the fla… Configuration and flags Model Context Protocol · in the page docs/2026-07-28/tools/inspector/configuration …SSE server on the web client. | | `--protocol-era <era>` | `legacy`, `auto`, or `modern`: the [protocol era](/docs/2026-07-28/tools/inspector/protocol-eras.md) to negotiate. | Requires an ad-hoc targe… mcpdo connection client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/mcpdo …ser sign-in is needed and neither stdin nor stderr is a TTY (and `MCP_AUTO_OPEN_ENABLED` is not forced on), `connect` exits `0` immediately with `pendingAuth: true` and an `authUrl`. Relay that URL to… Protocol eras Model Context Protocol · in the page docs/2026-07-28/tools/inspector/protocol-eras …tocol Era` setting Each server carries a `protocolEra` of `legacy`, `auto`, or `modern`. In the web client it lives in **Server Settings**; in a catalog or config file it is the `protocolEra` field;… Recipes Model Context Protocol · in the page docs/2026-07-28/tools/inspector/recipes …nspector/protocol-eras.md). The default is `legacy`; set `modern` or `auto` in Server Settings (or `protocolEra` in the catalog file) to exercise the 2026-07-28 behavior. For an ad-hoc target, pass it… Security Model Context Protocol · in the page docs/2026-07-28/tools/inspector/security …t is **plaintext unless you supply a key**, and that fallback happens automatically. * **stdio servers run as you.** Anything the Inspector can read, a server it starts can usually read too. * **The m… TUI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/tui …tcdn.com/mcp/gk28X8wi_tbRYzej/images/inspector/tui-tools.png?fit=max\&auto=format\&n=gk28X8wi_tbRYzej\&q=85\&s=5d11d64f4b98df8c26e7ac048f38576f) The TUI connected to a server, on the Tools tab, showi… Web client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/web …dn.com/mcp/gk28X8wi_tbRYzej/images/inspector/web-tab-bar.png?fit=max\&auto=format\&n=gk28X8wi_tbRYzej\&q=85\&s=04bb61c4a45ff12e8337c701e195c386) The tab bar on a connected server. Which tabs appear d… Understanding Authorization in MCP Model Context Protocol · in the page docs/2026-07-28/tutorials/security/authorization …O-cEUqgzn/images/tutorial-authorization/keycloak-browser.png?fit=max\&auto=format\&n=sAd4SGUO-cEUqgzn\&q=85\&s=cba689d986e113cbe937d732ac0558b6) When running with the default configuration, Keycloak… Local Server Security Model Context Protocol · in the page docs/2026-07-28/tutorials/security/local-server-security …mpromised future release does not walk onto your machine through an auto-update. Pair the pin with a deliberate update habit: when a security advisory lands for something you pinned, the pin is wh… Security Best Practices Model Context Protocol · in the page docs/2026-07-28/tutorials/security/security_best_practices …d IP range restrictions to redirect destinations * Consider disabling automatic redirect following and validating each hop **Use Egress Proxies** For server-side MCP client deployments, operators… Build an MCP client Model Context Protocol · in the page docs/draft/develop/build-client …erface * Implement rich console output * Add command history or auto-completion ## Running the Client To run your client with any MCP server: ```bash theme={null} uv run client.py path/to/ser… Build an MCP server Model Context Protocol · in the page docs/draft/develop/build-server …/mintcdn.com/mcp/4ZXF1PrDkEaJvXpn/images/current-weather.png?fit=max\&auto=format\&n=4ZXF1PrDkEaJvXpn\&q=85\&s=dce7b2f8a06c20ba358e4bd2e75fa4c7) > [!NOTE] > > Servers can connect to any client. We've… Client Best Practices Model Context Protocol · in the page docs/draft/develop/clients/client-best-practices …dn.com/mcp/JXfd5cBmEUh_qPUI/images/progressive-discovery.svg?fit=max\&auto=format\&n=JXfd5cBmEUh_qPUI\&q=85\&s=db39f47006107f04af43b5eeae2d6022) Progressive discovery avoids this: * The host fetches… Connect to local MCP servers Model Context Protocol · in the page docs/draft/develop/connect-local-servers …dn.com/mcp/4ZXF1PrDkEaJvXpn/images/quickstart-filesystem.png?fit=max\&auto=format\&n=4ZXF1PrDkEaJvXpn\&q=85\&s=629d7e754dc358d71a408d6ce970c1b1) ## Prerequisites Before starting this tutorial, ensur… Connect to remote MCP Servers Model Context Protocol · in the page docs/draft/develop/connect-remote-servers …XzQjUOzyH0mCNH/images/claude-desktop-hamburger-menu-icon.png?fit=max\&auto=format\&n=cpXzQjUOzyH0mCNH\&q=85\&s=66e498f668362c79f829a07b5ce863c8), hover over "File", and select "Settings" * **Browser**… What is the Model Context Protocol (MCP)? Model Context Protocol · in the page docs/draft/getting-started/intro …ntcdn.com/mcp/bEUxYpZqie0DsluH/images/mcp-simple-diagram.png?fit=max\&auto=format\&n=bEUxYpZqie0DsluH\&q=85\&s=35268aa0ad50b8c385913810e7604550) ## What can MCP enable? * Agents can access your Goog… Architecture overview Model Context Protocol · in the page docs/draft/learn/architecture …ss. This allows the LLM to understand what actions it can perform and automatically generates the appropriate tool calls during conversations. ```python Pseudo-code for AI application tool discovery… Understanding MCP clients Model Context Protocol · in the page docs/draft/learn/client-concepts …ractions are designed to be clear, contextual, and respectful of user autonomy: **Request presentation**: Clients display elicitation requests with clear context about which server is asking, why the… Understanding MCP servers Model Context Protocol · in the page docs/draft/learn/server-concepts …"[email protected]", subject: "Out of Office", body: "...") ``` Sends an automated out-of-office message to colleagues. #### User Interaction Model Tools are model-controlled, meaning AI models can dis… Debugging Model Context Protocol · in the page docs/draft/tools/debugging …d to stderr (standard error) will be captured by the host application automatically. > [!WARNING] > > Local MCP servers should not log messages to stdout (standard out), as this > will interfere with… MCP Inspector Model Context Protocol · in the page docs/draft/tools/inspector …cp/pUebPdrb6PY5_mfH/images/inspector/web-monitor-sidebar.png?fit=max\&auto=format\&n=pUebPdrb6PY5_mfH\&q=85\&s=2ced9eeefa020be53fe4fe957b7d07c6) The MCP Inspector web client after a tool call, with t… Authorization Model Context Protocol · in the page docs/draft/tools/inspector/authorization …](#mid-session-re-authorization), the CLI retries the refused request automatically, and the web client asks you to retry the action. ![](https://mintcdn.com/mcp/gk28X8wi_tbRYzej/images/inspector/aut… CLI client Model Context Protocol · in the page docs/draft/tools/inspector/cli …tored-auth-only`: never start interactive OAuth or step-up, and never auto-open a browser. Use tokens from the shared store if present, otherwise fail immediately with `auth_required`. This is the fla… Configuration and flags Model Context Protocol · in the page docs/draft/tools/inspector/configuration …SSE server on the web client. | | `--protocol-era <era>` | `legacy`, `auto`, or `modern`: the [protocol era](/docs/draft/tools/inspector/protocol-eras.md) to negotiate. | Requires an ad-hoc target on… mcpdo connection client Model Context Protocol · in the page docs/draft/tools/inspector/mcpdo …ser sign-in is needed and neither stdin nor stderr is a TTY (and `MCP_AUTO_OPEN_ENABLED` is not forced on), `connect` exits `0` immediately with `pendingAuth: true` and an `authUrl`. Relay that URL to… Protocol eras Model Context Protocol · in the page docs/draft/tools/inspector/protocol-eras …tocol Era` setting Each server carries a `protocolEra` of `legacy`, `auto`, or `modern`. In the web client it lives in **Server Settings**; in a catalog or config file it is the `protocolEra` field;… Recipes Model Context Protocol · in the page docs/draft/tools/inspector/recipes …nspector/protocol-eras.md). The default is `legacy`; set `modern` or `auto` in Server Settings (or `protocolEra` in the catalog file) to exercise the 2026-07-28 behavior. For an ad-hoc target, pass it… Security Model Context Protocol · in the page docs/draft/tools/inspector/security …t is **plaintext unless you supply a key**, and that fallback happens automatically. * **stdio servers run as you.** Anything the Inspector can read, a server it starts can usually read too. * **The m… TUI client Model Context Protocol · in the page docs/draft/tools/inspector/tui …tcdn.com/mcp/gk28X8wi_tbRYzej/images/inspector/tui-tools.png?fit=max\&auto=format\&n=gk28X8wi_tbRYzej\&q=85\&s=5d11d64f4b98df8c26e7ac048f38576f) The TUI connected to a server, on the Tools tab, showi… Web client Model Context Protocol · in the page docs/draft/tools/inspector/web …dn.com/mcp/gk28X8wi_tbRYzej/images/inspector/web-tab-bar.png?fit=max\&auto=format\&n=gk28X8wi_tbRYzej\&q=85\&s=04bb61c4a45ff12e8337c701e195c386) The tab bar on a connected server. Which tabs appear d… Understanding Authorization in MCP Model Context Protocol · in the page docs/draft/tutorials/security/authorization …O-cEUqgzn/images/tutorial-authorization/keycloak-browser.png?fit=max\&auto=format\&n=sAd4SGUO-cEUqgzn\&q=85\&s=cba689d986e113cbe937d732ac0558b6) When running with the default configuration, Keycloak… Local Server Security Model Context Protocol · in the page docs/draft/tutorials/security/local-server-security …mpromised future release does not walk onto your machine through an auto-update. Pair the pin with a deliberate update habit: when a security advisory lands for something you pinned, the pin is wh… Security Best Practices Model Context Protocol · in the page docs/draft/tutorials/security/security_best_practices …d IP range restrictions to redirect destinations * Consider disabling automatic redirect following and validating each hop **Use Egress Proxies** For server-side MCP client deployments, operators… MCP Apps Model Context Protocol · in the page extensions/apps/overview …and-forth conversation ("Which region?" "What instance size?" "Enable autoscaling?"), an MCP App presents a form where users see all options at once, with validation and defaults. **Viewing rich medi… OAuth Client Credentials Model Context Protocol · in the page extensions/auth/oauth-client-credentials …tatracker.ietf.org/doc/html/rfc6749#section-4.4) to MCP. This enables automated systems to connect to MCP servers without interactive user authorization. > **[Specification](https://github.com/modelc… Authorization Extensions Model Context Protocol · in the page extensions/auth/overview …on't have a human in the loop. Background services, CI pipelines, and automated workflows need to authenticate without interactive user consent flows. * **Enterprise environments** often have centrali…
Feedback