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,297 pages for code.

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-06-18/tutorials/security/security_best_practices …ilities. This attack allows malicious clients to obtain authorization codes without proper user consent by exploiting the combination of static client IDs, dynamic client registration, and consent coo… Build an MCP client Model Context Protocol · in the page docs/2025-11-25/develop/build-client …ents and servers communicate. **Python** [You can find the complete code for this tutorial here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/mcp-client-python) ## System… Build an MCP server Model Context Protocol · in the page docs/2025-11-25/develop/build-server …started with building our weather server! [You can find the complete code for what we'll be building here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-pytho… Build with Agent Skills Model Context Protocol · in the page docs/2025-11-25/develop/build-with-agent-skills …g assistants domain knowledge for a task. For MCP development, they encode the design decisions (deployment model, tool patterns, auth) so your agent can interrogate your use case and scaffold a serve… Client Best Practices Model Context Protocol · in the page docs/2025-11-25/develop/clients/client-best-practices …longside the tool-search links above. ## Programmatic Tool Calling / Code Mode With direct tool calling, every tool invocation is a round trip: the model generates a tool call, the client executes i… Connect to remote MCP Servers Model Context Protocol · in the page docs/2025-11-25/develop/connect-remote-servers …ous services such as project management tools, documentation systems, code repositories, and any other API-enabled service. The key advantage of remote MCP servers is their accessibility. Unlike loca… What is the Model Context Protocol (MCP)? Model Context Protocol · in the page docs/2025-11-25/getting-started/intro …ndar and Notion, acting as a more personalized AI assistant. * Claude Code can generate an entire web app using a Figma design. * Enterprise chatbots can connect to multiple databases across an organi… Architecture overview Model Context Protocol · in the page docs/2025-11-25/learn/architecture …erver architecture where an MCP host — an AI application like [Claude Code](https://www.anthropic.com/claude-code) or [Claude Desktop](https://www.claude.ai/download) — establishes connections to one… Understanding MCP clients Model Context Protocol · in the page docs/2025-11-25/learn/client-concepts …undaries," and not that they "MUST enforce" them, because servers run code the client cannot control. Roots work best when servers are trusted or vetted, users understand their advisory nature, and t… Understanding MCP servers Model Context Protocol · in the page docs/2025-11-25/learn/server-concepts …ocument access, database servers for data queries, GitHub servers for code management, Slack servers for team communication, and calendar servers for scheduling. ## Core Server Features Servers prov… Debugging Model Context Protocol · in the page docs/2025-11-25/tools/debugging …ifecycle#error-handling) is the standard JSON-RPC "Invalid params" code and is returned in many contexts. One common cause is a server sending [sampling](/specification/2025-11-25/client/samp… MCP Inspector Model Context Protocol · in the page docs/2025-11-25/tools/inspector …npx @modelcontextprotocol/inspector uvx mcp-server-git --repository ~/code/mcp/servers.git ``` #### Inspecting locally developed servers To inspect servers locally developed or downloaded as a repos… Understanding Authorization in MCP Model Context Protocol · in the page docs/2025-11-25/tutorials/security/authorization …["http://localhost:3000/callback"], "grant_types": ["authorization_code", "refresh_token"], "response_types": ["code"] } ``` If the registration succeeds, the authorization server will return a… Security Best Practices Model Context Protocol · in the page docs/2025-11-25/tutorials/security/security_best_practices …ilities. This attack allows malicious clients to obtain authorization codes without proper user consent by exploiting the combination of static client IDs, dynamic client registration, and consent coo… Build an MCP client Model Context Protocol · in the page docs/2026-07-28/develop/build-client …ents and servers communicate. **Python** [You can find the complete code for this tutorial here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/mcp-client-python) ## System… Build an MCP server Model Context Protocol · in the page docs/2026-07-28/develop/build-server …started with building our weather server! [You can find the complete code for what we'll be building here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-pytho… Build with Agent Skills Model Context Protocol · in the page docs/2026-07-28/develop/build-with-agent-skills …g assistants domain knowledge for a task. For MCP development, they encode the design decisions (deployment model, tool patterns, auth) so your agent can interrogate your use case and scaffold a serve… Client Best Practices Model Context Protocol · in the page docs/2026-07-28/develop/clients/client-best-practices …longside the tool-search links above. ## Programmatic Tool Calling / Code Mode With direct tool calling, every tool invocation is a round trip: the model generates a tool call, the client executes i… Connect to remote MCP Servers Model Context Protocol · in the page docs/2026-07-28/develop/connect-remote-servers …ous services such as project management tools, documentation systems, code repositories, and any other API-enabled service. The key advantage of remote MCP servers is their accessibility. Unlike loca… What is the Model Context Protocol (MCP)? Model Context Protocol · in the page docs/2026-07-28/getting-started/intro …ndar and Notion, acting as a more personalized AI assistant. * Claude Code can generate an entire web app using a Figma design. * Enterprise chatbots can connect to multiple databases across an organi… Architecture overview Model Context Protocol · in the page docs/2026-07-28/learn/architecture …erver architecture where an MCP host — an AI application like [Claude Code](https://www.anthropic.com/claude-code) or [Claude Desktop](https://www.claude.ai/download) — establishes connections to one… Understanding MCP clients Model Context Protocol · in the page docs/2026-07-28/learn/client-concepts …undaries," and not that they "MUST enforce" them, because servers run code the client cannot control. Roots work best when servers are trusted or vetted, users understand their advisory nature, and t… Understanding MCP servers Model Context Protocol · in the page docs/2026-07-28/learn/server-concepts …ocument access, database servers for data queries, GitHub servers for code management, Slack servers for team communication, and calendar servers for scheduling. ## Core Server Features Servers prov… Debugging Model Context Protocol · in the page docs/2026-07-28/tools/debugging …d field is rejected with error `-32602` (Invalid params), the same code returned for many other malformed inputs. If the server needs a capability the request's `clientCapabilities` did not decl… MCP Inspector Model Context Protocol · in the page docs/2026-07-28/tools/inspector …npx @modelcontextprotocol/inspector uvx mcp-server-git --repository ~/code/mcp/servers.git ``` **Remote HTTP server** ```bash theme={null} npx @modelcontextprotocol/inspector --server-url https://ap… Authorization Model Context Protocol · in the page docs/2026-07-28/tools/inspector/authorization …redirects to the Inspector's callback URL, carrying the authorization code. **6. Exchange and retry** The code is exchanged for tokens, the tokens are persisted, and the original connect is retried.… CLI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/cli …client > Scripting the MCP Inspector: methods, output formats, exit codes, and CI recipes Each CLI run connects to a server, invokes the single request you name with `--method`, prints the result,… Configuration and flags Model Context Protocol · in the page docs/2026-07-28/tools/inspector/configuration …LI and TUI resolve `--catalog` and `--config` through the same shared code, and the web client applies the same rules, so each flag means the same thing in all three. Where the two differ from each ot… mcpdo connection client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/mcpdo …tion closes. A daemon started before an upgrade keeps running the old code until then, so run `mcpdo daemon stop` after upgrading the package. ## Isolating untrusted stdio servers The daemon's token… Protocol eras Model Context Protocol · in the page docs/2026-07-28/tools/inspector/protocol-eras …er_invalid_params` tool in the config above. The two share one error code, so the Inspector reads the message to tell them apart. Any other error code renders as a generic failure. *** ## Network a… Recipes Model Context Protocol · in the page docs/2026-07-28/tools/inspector/recipes …ead of retyping them. It parses Claude Desktop, Cursor, Cline, and VS Code client configs directly, and it also reads a server's own [MCP Registry](/registry/about.md) `server.json`. Import merges in… Security Model Context Protocol · in the page docs/2026-07-28/tools/inspector/security …ile, the key, or the process memory holding decrypted values | No | | Code running as the same user | No | | A weak passphrase: anyone holding the file can guess offline, quickly, because the scrypt c… Web client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/web …etwork**: the HTTP layer, for SSE and Streamable HTTP servers. Status codes, request and response headers, and bodies. On modern connections the standardized `Mcp-*` headers are highlighted and sentin… Understanding Authorization in MCP Model Context Protocol · in the page docs/2026-07-28/tutorials/security/authorization …["http://localhost:3000/callback"], "grant_types": ["authorization_code", "refresh_token"], "response_types": ["code"] } ``` If the registration succeeds, the authorization server will return a… Local Server Security Model Context Protocol · in the page docs/2026-07-28/tutorials/security/local-server-security …l: **your machine**. When you run an MCP server locally, you download code from the internet and run it as a child process of your user account. That process inherits your environment variables, can r… Security Best Practices Model Context Protocol · in the page docs/2026-07-28/tutorials/security/security_best_practices …ilities. This attack allows malicious clients to obtain authorization codes without proper user consent by exploiting the combination of static client IDs, dynamic client registration, and consent coo… Build an MCP client Model Context Protocol · in the page docs/draft/develop/build-client …ents and servers communicate. **Python** [You can find the complete code for this tutorial here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/mcp-client-python) ## System… Build an MCP server Model Context Protocol · in the page docs/draft/develop/build-server …started with building our weather server! [You can find the complete code for what we'll be building here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-pytho… Build with Agent Skills Model Context Protocol · in the page docs/draft/develop/build-with-agent-skills …g assistants domain knowledge for a task. For MCP development, they encode the design decisions (deployment model, tool patterns, auth) so your agent can interrogate your use case and scaffold a serve… Client Best Practices Model Context Protocol · in the page docs/draft/develop/clients/client-best-practices …longside the tool-search links above. ## Programmatic Tool Calling / Code Mode With direct tool calling, every tool invocation is a round trip: the model generates a tool call, the client executes i… Connect to remote MCP Servers Model Context Protocol · in the page docs/draft/develop/connect-remote-servers …ous services such as project management tools, documentation systems, code repositories, and any other API-enabled service. The key advantage of remote MCP servers is their accessibility. Unlike loca… What is the Model Context Protocol (MCP)? Model Context Protocol · in the page docs/draft/getting-started/intro …ndar and Notion, acting as a more personalized AI assistant. * Claude Code can generate an entire web app using a Figma design. * Enterprise chatbots can connect to multiple databases across an organi… Architecture overview Model Context Protocol · in the page docs/draft/learn/architecture …erver architecture where an MCP host — an AI application like [Claude Code](https://www.anthropic.com/claude-code) or [Claude Desktop](https://www.claude.ai/download) — establishes connections to one… Understanding MCP clients Model Context Protocol · in the page docs/draft/learn/client-concepts …undaries," and not that they "MUST enforce" them, because servers run code the client cannot control. Roots work best when servers are trusted or vetted, users understand their advisory nature, and t… Understanding MCP servers Model Context Protocol · in the page docs/draft/learn/server-concepts …ocument access, database servers for data queries, GitHub servers for code management, Slack servers for team communication, and calendar servers for scheduling. ## Core Server Features Servers prov… Debugging Model Context Protocol · in the page docs/draft/tools/debugging …d field is rejected with error `-32602` (Invalid params), the same code returned for many other malformed inputs. If the server needs a capability the request's `clientCapabilities` did not decl… MCP Inspector Model Context Protocol · in the page docs/draft/tools/inspector …npx @modelcontextprotocol/inspector uvx mcp-server-git --repository ~/code/mcp/servers.git ``` **Remote HTTP server** ```bash theme={null} npx @modelcontextprotocol/inspector --server-url https://ap… Authorization Model Context Protocol · in the page docs/draft/tools/inspector/authorization …redirects to the Inspector's callback URL, carrying the authorization code. **6. Exchange and retry** The code is exchanged for tokens, the tokens are persisted, and the original connect is retried.… CLI client Model Context Protocol · in the page docs/draft/tools/inspector/cli …client > Scripting the MCP Inspector: methods, output formats, exit codes, and CI recipes Each CLI run connects to a server, invokes the single request you name with `--method`, prints the result,… Configuration and flags Model Context Protocol · in the page docs/draft/tools/inspector/configuration …LI and TUI resolve `--catalog` and `--config` through the same shared code, and the web client applies the same rules, so each flag means the same thing in all three. Where the two differ from each ot…
Feedback