Model Context Protocol (MCP) Preferences
The Anthropic Model Context Protocol (MCP) is an open standard that enables developers to build secure, two-way connections between their data sources and AI-powered tools.
You can configure a reference to an MCP configuration file, other related options, and view details about the connection status in the Oxygen XML page.
All tools provided by configured MCP servers are available in all chat modes by default, but they must be referenced individually in custom AI actions. The Tools drop-down menu in the Chat view lets you see all MCP tools (displayed with human-readable names, if provided by the MCP server) and disable or enable them.
- Configuration file
-
Specify the path to a JSON file that defines the MCP servers to load. AI Positron utilizes this file to load extra tools that can be called by the AI engine when using the chat modes or when invoking custom AI actions. The path to the configuration file can be either absolute or it can contain Oxygen editor variables (such as the project directory variable
${pd}).Because there is no single standard MCP configuration file format used by all clients, AI Positron accepts the following top-level server container names:
mcpServers- Preferred and fully supported.servers- Also supported for compatibility with other MCP clients.
Each server entry can describe one of the following connection types:
- Local stdio server - Starts a local process and communicates with it through standard input/output streams.
- Remote Streamable HTTP server - Connects to a remote MCP endpoint over HTTP.
- Remote SSE server (deprecated) - Connects to a remote MCP endpoint that uses Server-Sent Events.
If you change the Configuration file, Allow running local MCP servers, or Connection timeout (seconds) options, clicking Apply or OK reloads the MCP servers using the applied option values and the current configuration file content. You can also use the Reload action placed next to the Configuration file option. If you edit the JSON file content afterwards, come back to this preferences page and use Reload.
Important:For configuration files that contain API key values, you can use Oxygen editor variables to avoid setting key values directly in the configuration file. You can also use editor variables in theurl,command,args,cwd, andheadersproperties (for example, to access environment variables or system properties).See: MCP Configuration File Examples.Note:HTTP streamable MCP configurations can also be provided as Oxygen XML plugin extensions. - Connection timeout (seconds)
- The configured timeout for attempts to connect to each server or retrieve content from it.
- Allow running local MCP servers
- Selecting this option allows local MCP servers to run as external processes.Attention:Local MCP servers are run as processes from the current user account and have full access to the computer resources as all other processes run in the user account. Before enabling this option, you need to ensure that your configuration starts a secure MCP server and does not expose you to security risks.
- Add provided tools to all chat modes
- Enabled by default, this option allows all defined chat modes to access the tools provided by the MCP servers during conversations.
- OAuth authentication
- For HTTP MCP servers that use OAuth authentication, buttons are available to Sign in to all servers and Sign out from all servers.
- Connection status
-
Shows a summary of the configured MCP servers, including how many servers are configured and how many are currently connected, not connected, or skipped (for example, if local servers are defined in the configuration file, but running them is disallowed by the preferences).
Below the summary, the connection details are grouped in the following tabs:- Servers - Lists each configured server and its current connection state. For servers that are skipped or not connected, a tooltip shows the reason. The last column shows Sign in/Sign out buttons for the servers that use OAuth authentication.
- Logging - Shows the connection log for the configured MCP servers.
Important:All the tools loaded from an MCP server have their names prefixed with the name of the MCP server. This allows multiple servers to provide tools with the same name. For example, if a tool name issearchand is loaded from an MCP server namedmcp-web-access, the tool name that needs to be referenced in a custom AI action ismcp-web-access_search.
MCP Configuration File Examples
- MCP HTTP Streaming OAuth
-
- Configure an MCP OAuth connection to Atlassian JIRA Cloud using the simpler
default authorization flow, where the MCP server handles app registration during
authorization:
{ "servers": { "atlassian": { "type": "http", "url": "https://mcp.atlassian.com/v1/mcp/authv2" } } } - Configure an MCP OAuth connection to Atlassian JIRA Cloud using your own
Atlassian Cloud app. If you create an app in Atlassian Cloud, you can place the
OAuth client credentials directly in the JSON configuration file so that the MCP
server does not need to dynamically register an app during
authorization:
{ "servers": { "atlassian": { "type": "http", "url": "https://mcp.atlassian.com/v1/mcp/authv2", "oauth": { "client_id": "YOUR_ATLASSIAN_CLIENT_ID_HERE", "client_secret": "YOUR_ATLASSIAN_CLIENT_SECRET_HERE", "scopes": [ "read:jira-work" ], "resource": "" } } } } - Configure an MCP OAuth connection to GitHub (requires the creation of an app on
the GitHub side). You can also provide the OAuth client credentials directly in
the JSON configuration file:
{ "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/", "oauth": { "client_id": "YOUR_GITHUB_CLIENT_ID_HERE", "client_secret": "YOUR_GITHUB_CLIENT_SECRET_HERE" } } } }
Note:For HTTP MCP servers that use OAuth, the optionaloauthobject can include properties such asauthorize_url,token_url,client_id,client_secret,scopes,redirect_uri,additional_authorize_params, andresource. - Configure an MCP OAuth connection to Atlassian JIRA Cloud using the simpler
default authorization flow, where the MCP server handles app registration during
authorization:
- MCP HTTP Streaming
-
Configuration of a remote MCP Streamable HTTP server that adds tools to allow the AI to call the DeepWiki service and obtain information about various GitHub projects:
{ "mcpServers": { "deepwiki": { "url": "https://mcp.deepwiki.com/mcp" } } }For remote HTTP-based connections, the following properties are supported:
- url - The remote MCP endpoint URL.
- headers - Optional HTTP headers sent when connecting to the server.
- type - Optional transport hint. Use
ssewhen the URL does not clearly identify an SSE endpoint.
For Streamable HTTP connections, you can pass header values to the server using the
headersproperty like this:{ "mcpServers": { "atlassian": { "url": "http://our.jira.server.url:8000/mcp", "headers": { "Authorization": "Bearer SOME_KEY_VALUE_HERE" } } } }If you want to prompt for a value and reuse it in the configuration file, define it outside the server definition and reference it from the header value. The following example uses the compatible
serverstop-level container:{ "servers": { "github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer ${input:github_mcp_pat}" } } }, "inputs": [ { "type": "promptString", "id": "github_mcp_pat", "description": "GitHub Personal Access Token", "password": true } ] }Example: Start an Atlassian JIRA Streamable HTTP MCP server with the command:
uvx mcp-atlassian --jira-url https://our.jira.server.url --jira-personal-token MY_TOKEN_HERE --transport streamable-http --port 8000 --read-only --verboseThen use it as a remote server in the configuration file:
{ "mcpServers": { "atlassian": { "url": "http://our.jira.server.url:8000/mcp" } } } - MCP Local Server
-
Configuration of a local MCP server that adds tools to allow the AI to use the Brave engine to perform web searches:
{ "mcpServers": { "brave-search": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-brave-search" ], "env": { "BRAVE_API_KEY": "API_KEY_HERE" } } } }The following properties are supported for local MCP server connections:
- command - The executable command used to start the MCP server process
(for example,
npx,docker,node,python). - args - An array of string arguments to pass to the command.
- env - An object that contains environment variables to set for the server process.
- cwd - The working directory where the server process is launched.
- command - The executable command used to start the MCP server process
(for example,
- MCP HTTP SSE (deprecated)
-
Configuration of a remote MCP SSE server that adds tools to allow the AI to call the DeepWiki service and obtain information about various GitHub projects:
{ "mcpServers": { "deepwiki": { "url": "https://mcp.deepwiki.com/sse" } } }If the SSE server URL does not end with
/sse, add"type": "sse"explicitly in the server definition. - Configure multiple servers in the same configuration file
-
Multiple MCP servers (Brave Search, GitHub, and Atlassian Cloud) configured in the same file:
{ "mcpServers": { "brave-search": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-brave-search" ], "env": { "BRAVE_API_KEY": "API_KEY_HERE" } }, "github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer TOKEN_VALUE_HERE" } }, "atlassian": { "type": "http", "url": "https://mcp.atlassian.com/v1/mcp/authv2" } } }
Tool Call Security
AI Positron does not control how various tools are implemented by the configured MCP servers or what parameters are used by the LLM to call them. By default, whenever the LLM calls tools obtained by AI Positron from an MCP server, the end user is required to approve or reject each individual tool call in the Chat view.
"env": {
"OXYGEN_SAFE_TOOLS":"true"
}