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

679 pages for env.

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

Client Best Practices Model Context Protocol · in the page docs/2026-07-28/develop/clients/client-best-practices …model writes code that calls tools. The code executes in a sandboxed environment, and only the final result returns to the model. Programmatic tool calling is powerful and allows for more efficient… Connect to local MCP servers Model Context Protocol · in the page docs/2026-07-28/develop/connect-local-servers …path, you may need to add the expanded value of `%APPDATA%` to your `env` key in `claude_desktop_config.json`: > > ```json theme={null} > { > "brave-search": { > "command": "npx", > "args":… Connect to remote MCP Servers Model Context Protocol · in the page docs/2026-07-28/develop/connect-remote-servers …te MCP servers extend AI applications' capabilities beyond your local environment, providing access to internet-hosted tools, services, and data sources. By connecting to remote MCP servers, you trans… Architecture overview Model Context Protocol · in the page docs/2026-07-28/learn/architecture …his notification system is crucial for several reasons: 1. **Dynamic Environments**: Tools may come and go based on server state, external dependencies, or user permissions 2. **Efficiency**: Clients… Debugging Model Context Protocol · in the page docs/2026-07-28/tools/debugging …om anywhere * Always use absolute paths in your configuration and `.env` files to ensure reliable operation * For testing servers directly via command line, the working directory will be where y… MCP Inspector Model Context Protocol · in the page docs/2026-07-28/tools/inspector …ctor stores secrets (OAuth tokens, OAuth client secrets, and stdio > `env:` values) in the OS keychain when one is available.** On a machine with > no keychain (Linux without libsecret or a Secret Ser… Authorization Model Context Protocol · in the page docs/2026-07-28/tools/inspector/authorization …NSPECTOR_OAUTH_STATE_PATH`, then `<MCP_STORAGE_DIR>/oauth.json` (see [Environment variables](/docs/2026-07-28/tools/inspector/configuration.md#environment-variables)), then the default above. All thre… CLI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/cli …le-tool output of > `tools/call --app-info`. ## Exit codes and error envelopes Every non-zero exit maps to a stable failure class, so a caller can branch on *why* without scraping prose: | Code | M… Configuration and flags Model Context Protocol · in the page docs/2026-07-28/tools/inspector/configuration …> Catalog vs. config files, which client owns which flag, and every environment variable The `mcp-inspector` binary is a launcher: it reads two flags of its own and forwards every other argument to… mcpdo connection client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/mcpdo …| `--format json` | The pretty-printed payload, with no `{ result }` envelope. For scripts and agents. | The global flags are `--format`, `--plain`, `--connection` / `--conn`, `--catalog` / `--confi… Recipes Model Context Protocol · in the page docs/2026-07-28/tools/inspector/recipes …parsed by the Inspector and never reach the server. Give the process environment variables with `-e` and a working directory with `--cwd`: ```bash theme={null} mcp-inspector -e API_KEY=abc123 -e REG… Security Model Context Protocol · in the page docs/2026-07-28/tools/inspector/security …ECTOR_SECRET_KEY_FILE` (a Docker or Compose secret) rather than as an environment variable: a key passed with `-e MCP_INSPECTOR_SECRET_KEY=…` is visible to anyone who can run `docker inspect` or `dock… TUI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/tui …as the web client. Use it on a remote host over SSH, in a locked-down environment, or when you prefer to stay in the terminal. ```bash theme={null} npx @modelcontextprotocol/inspector --tui node buil… Web client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/web …. `sessionStorage`, as a backstop. Set the `MCP_INSPECTOR_API_TOKEN` environment variable to pin a known token (useful for scripted launches), or set `DANGEROUSLY_OMIT_AUTH=true` to disable the check… Understanding Authorization in MCP Model Context Protocol · in the page docs/2026-07-28/tutorials/security/authorization …o its APIs that require user consent * You're building for enterprise environments with strict access controls * You want to implement rate limiting or usage tracking per user > [!TIP] > > **Authoriz… Local Server Security Model Context Protocol · in the page docs/2026-07-28/tutorials/security/local-server-security …t as a child process of your user account. That process inherits your environment variables, can read anything your account can read — SSH keys, cloud credentials, browser profiles, your home director… Security Best Practices Model Context Protocol · in the page docs/2026-07-28/tutorials/security/security_best_practices …elated URLs. Which protections are appropriate depend on your network environment. **Enforce HTTPS** MCP clients **SHOULD** require HTTPS for all OAuth-related URLs in production environments: * Re… Build an MCP client Model Context Protocol · in the page docs/draft/develop/build-client …* You must use the Python MCP SDK 2.0.0 or higher ## Setting Up Your Environment First, create a new Python project with `uv`: ```bash macOS/Linux theme={null} # Create project directory uv init mc… Build an MCP server Model Context Protocol · in the page docs/draft/develop/build-server …. * You must use the Python MCP SDK 2.0.0 or higher. ### Set up your environment First, let's install `uv` and set up our Python project and environment: ```bash macOS/Linux theme={null} curl -LsSf… Client Best Practices Model Context Protocol · in the page docs/draft/develop/clients/client-best-practices …model writes code that calls tools. The code executes in a sandboxed environment, and only the final result returns to the model. Programmatic tool calling is powerful and allows for more efficient… Connect to local MCP servers Model Context Protocol · in the page docs/draft/develop/connect-local-servers …path, you may need to add the expanded value of `%APPDATA%` to your `env` key in `claude_desktop_config.json`: > > ```json theme={null} > { > "brave-search": { > "command": "npx", > "args":… Connect to remote MCP Servers Model Context Protocol · in the page docs/draft/develop/connect-remote-servers …te MCP servers extend AI applications' capabilities beyond your local environment, providing access to internet-hosted tools, services, and data sources. By connecting to remote MCP servers, you trans… Architecture overview Model Context Protocol · in the page docs/draft/learn/architecture …his notification system is crucial for several reasons: 1. **Dynamic Environments**: Tools may come and go based on server state, external dependencies, or user permissions 2. **Efficiency**: Clients… Debugging Model Context Protocol · in the page docs/draft/tools/debugging …om anywhere * Always use absolute paths in your configuration and `.env` files to ensure reliable operation * For testing servers directly via command line, the working directory will be where y… MCP Inspector Model Context Protocol · in the page docs/draft/tools/inspector …ctor stores secrets (OAuth tokens, OAuth client secrets, and stdio > `env:` values) in the OS keychain when one is available.** On a machine with > no keychain (Linux without libsecret or a Secret Ser… Authorization Model Context Protocol · in the page docs/draft/tools/inspector/authorization …NSPECTOR_OAUTH_STATE_PATH`, then `<MCP_STORAGE_DIR>/oauth.json` (see [Environment variables](/docs/draft/tools/inspector/configuration.md#environment-variables)), then the default above. All three cli… CLI client Model Context Protocol · in the page docs/draft/tools/inspector/cli …le-tool output of > `tools/call --app-info`. ## Exit codes and error envelopes Every non-zero exit maps to a stable failure class, so a caller can branch on *why* without scraping prose: | Code | M… Configuration and flags Model Context Protocol · in the page docs/draft/tools/inspector/configuration …> Catalog vs. config files, which client owns which flag, and every environment variable The `mcp-inspector` binary is a launcher: it reads two flags of its own and forwards every other argument to… mcpdo connection client Model Context Protocol · in the page docs/draft/tools/inspector/mcpdo …| `--format json` | The pretty-printed payload, with no `{ result }` envelope. For scripts and agents. | The global flags are `--format`, `--plain`, `--connection` / `--conn`, `--catalog` / `--confi… Recipes Model Context Protocol · in the page docs/draft/tools/inspector/recipes …parsed by the Inspector and never reach the server. Give the process environment variables with `-e` and a working directory with `--cwd`: ```bash theme={null} mcp-inspector -e API_KEY=abc123 -e REG… Security Model Context Protocol · in the page docs/draft/tools/inspector/security …ECTOR_SECRET_KEY_FILE` (a Docker or Compose secret) rather than as an environment variable: a key passed with `-e MCP_INSPECTOR_SECRET_KEY=…` is visible to anyone who can run `docker inspect` or `dock… TUI client Model Context Protocol · in the page docs/draft/tools/inspector/tui …as the web client. Use it on a remote host over SSH, in a locked-down environment, or when you prefer to stay in the terminal. ```bash theme={null} npx @modelcontextprotocol/inspector --tui node buil… Web client Model Context Protocol · in the page docs/draft/tools/inspector/web …. `sessionStorage`, as a backstop. Set the `MCP_INSPECTOR_API_TOKEN` environment variable to pin a known token (useful for scripted launches), or set `DANGEROUSLY_OMIT_AUTH=true` to disable the check… Understanding Authorization in MCP Model Context Protocol · in the page docs/draft/tutorials/security/authorization …o its APIs that require user consent * You're building for enterprise environments with strict access controls * You want to implement rate limiting or usage tracking per user > [!TIP] > > **Authoriz… Local Server Security Model Context Protocol · in the page docs/draft/tutorials/security/local-server-security …t as a child process of your user account. That process inherits your environment variables, can read anything your account can read — SSH keys, cloud credentials, browser profiles, your home director… Security Best Practices Model Context Protocol · in the page docs/draft/tutorials/security/security_best_practices …elated URLs. Which protections are appropriate depend on your network environment. **Enforce HTTPS** MCP clients **SHOULD** require HTTPS for all OAuth-related URLs in production environments: * Re… Example Servers Model Context Protocol · in the page examples …, "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>" } } } } ``` ## Additional resources Visit the [MCP Se… Build an MCP App Model Context Protocol · in the page extensions/apps/build …} Copy-Item -Recurse ext-apps\plugins\mcp-apps\skills\create-mcp-app $env:USERPROFILE\.claude\skills\create-mcp-app ``` Or install it for a single project only by copying to `.claude/skills/` in your… Enterprise-Managed Authorization Model Context Protocol · in the page extensions/auth/enterprise-managed-authorization …ged Authorization > Centralized access control for MCP in enterprise environments via identity providers The Enterprise-Managed Authorization extension (`io.modelcontextprotocol/enterprise-managed-a… OAuth Client Credentials Model Context Protocol · in the page extensions/auth/oauth-client-credentials …sk: > > * Store secrets in a secrets manager, never in source code or environment files checked into version control. > * Rotate secrets on a regular schedule and immediately after any suspected compr… Authorization Extensions Model Context Protocol · in the page extensions/auth/overview …o authenticate without interactive user consent flows. * **Enterprise environments** often have centralized identity providers (IdPs) that enforce policy across all applications. Requiring employees t… Extensions Overview Model Context Protocol · in the page extensions/overview …/auth/enterprise-managed-authorization.md) | Framework for enterprise environments requiring centralized access control. | ### MCP Apps > **[modelcontextprotocol/ext-apps](https://github.com/modelco… Tasks Model Context Protocol · in the page extensions/tasks/overview …**Unreliable connections.** Mobile clients, intermittent networks, or environments where connections drop. Task IDs survive disconnects. **Batch processing.** Operations that process many items (bulk… The MCP Registry Model Context Protocol · in the page registry/about …remote server URL) * Execution instructions (e.g., command-line args, env vars) * Other discovery data (e.g., description, server capabilities) ## The MCP Registry Ecosystem The MCP Registry is part… How to Automate Publishing with GitHub Actions Model Context Protocol · in the page registry/github-actions …- name: Publish package to npm run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} ### Publish MCP server: - name: Install mcp-publisher… Quickstart: Publish an MCP Server to the MCP Registry Model Context Protocol · in the page registry/quickstart …"1.0.0", "transport": { "type": "stdio" }, "environmentVariables": [ { "description": "Your API key for the service", "isRequired": true,… Official MCP Registry Terms of Service Model Context Protocol · in the page registry/terms-of-service …e or failure of the Registry could lead to death, personal injury, or environmental damage; 7. Use the Registry to process or store any data that is subject to the International Traffic in Arms Reg… SEP-1686: Tasks Model Context Protocol · in the page seps/1686-tasks …s a real requirement for these types of MCP deployments in production environments. **Integration with Existing Architectures** Many workflow-driven systems already provide active execution-tracking… SEP-2148: MCP Contributor Ladder Model Context Protocol · in the page seps/2148-contributor-ladder …cidents to Core Maintainers * Help maintain a welcoming and inclusive environment for all community members * Coordinate with other moderators to ensure consistent enforcement * Document moderation ac… SEP-2149: MCP Group Governance and Charter Template Model Context Protocol · in the page seps/2149-working-group-charter-template …Enterprise IG explores the challenges of deploying MCP in enterprise environments, gathering use cases and requirements to inform future specification work. #### 3. Scope **In Scope**: Enumerated r…
Feedback