Model Context Protocol (MCP)

The Anthropic Model Context Protocol (MCP) is an open standard that lets developers create secure, two-way connections between their data sources and AI-powered tools.

An administrator can configure a set of MCP servers for the entire Oxygen Content Fusion deployment. The tools provided by those servers are then offered to the AI engine alongside the built-in tools. Each end user can view them, enable or disable them, and sign in to servers that require authentication directly from the AI Positron chat.

Important:
The MCP support in Oxygen Content Fusion differs from the desktop version in the following ways:
  • Only Streamable HTTP connections to remote MCP servers are supported. Local (stdio) servers are never started, and the deprecated SSE transport is not supported.
  • The configuration is pasted directly into the administration page instead of being referenced as a file path on disk.
  • MCP servers are connected separately for each user session, so the OAuth credentials of one user are never used for another user.

Configuring MCP Servers

To configure the MCP servers available to all users, follow these steps:

  1. Open the Plugin configuration dialog box, as described in Installation and Configuration.
  2. Select the MCP tab.
  3. In the Model Context Protocol (MCP) text area, edit or paste the MCP configuration content. The expected format is described in MCP Configuration Format. When the text area is empty, an example configuration is displayed as a placeholder.
  4. Click Apply. The MCP servers are reloaded using the new configuration.

After a configuration is applied:

  • The MCP servers and tools button becomes available in the AI Positron chat for all users. If the configuration is empty, the button is not displayed at all.
  • Clicking the MCP servers and tools button enables users to log in to MCP servers that use OAuth or reconnect to an existing MCP server if the initial connection failed.
  • Each user session picks up the new configuration the next time it is used, so users do not need to sign out and sign in again.
  • All tools provided by the configured MCP servers are available in all chat modes by default, but they must be referenced individually in custom AI actions.
Notice:
The MCP configuration may contain access tokens and OAuth client secrets, so it is stored in encrypted form in the deployment options, never as plain text.
Important:
All tools loaded from an MCP server have 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 is search and is loaded from an MCP server named mcp-web-access, the tool name that must be referenced in a custom AI action is mcp-web-access_search.
Note:
Streamable HTTP MCP configurations can also be contributed programmatically, as plugin extensions.

MCP Configuration Format

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 describes a connection to a remote Streamable HTTP MCP endpoint. The following properties are supported:

  • url - The remote MCP endpoint URL.
  • headers - Optional HTTP headers sent when connecting to the server. Use this property for servers that authenticate with a static API key or a personal access token.
  • type - Optional transport hint. The only accepted value is http.
  • oauth - Optional OAuth 2.0 configuration, for servers where each user signs in individually. A server that needs no authentication, or that authenticates with a static key through headers, does not need it. When the server does require an OAuth sign-in, this object must be present and must contain at least a redirect_uri. See OAuth Authentication.
Attention:
The command, args, env, and cwd properties, which start a local MCP server process, are not supported. A server entry that defines them instead of a url, or that uses the deprecated SSE transport, is skipped and presented as skipped in the list of servers in the MCP dialog box.
MCP HTTP Streaming

Configuration for a remote MCP Streamable HTTP server that adds tools allowing the AI to call the DeepWiki service and obtain information about various GitHub projects:

{
  "mcpServers": {
    "deepwiki": {
      "url": "https://mcp.deepwiki.com/mcp"
    }
  }
}
MCP HTTP Streaming with an authentication header

For servers that authenticate with a static key, you can pass header values to the server by using the headers property:

{
  "mcpServers": {
    "atlassian": {
      "url": "http://our.jira.server.url:8000/mcp",
      "headers": {
        "Authorization": "Bearer SOME_KEY_VALUE_HERE"
      }
    }
  }
}
Attention:
A key configured this way is shared by all users of the deployment, and every request sent to that MCP server is made with it. Use OAuth authentication instead when each user should act with their own identity.
MCP HTTP Streaming with OAuth
  • Configure an MCP OAuth connection to Atlassian JIRA Cloud by 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",
          "oauth": {
            "redirect_uri": "https://your.webauthor.server/oxygen-xml-web-author/plugins-dispatcher/web-mcp-auth/callback"
          }
        }
      }
    }
  • Configure an MCP OAuth connection to GitHub by using your own GitHub application. If you create an application on the provider side, you can place the OAuth client credentials directly in the configuration so that the MCP server does not need to dynamically register an application during authorization:
    {
      "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",
            "redirect_uri": "https://your.webauthor.server/oxygen-xml-web-author/plugins-dispatcher/web-mcp-auth/callback"
          }
        }
      }
    }
Configure multiple servers in the same configuration

Multiple MCP servers configured together:

{
  "mcpServers": {
    "deepwiki": {
      "url": "https://mcp.deepwiki.com/mcp"
    },
    "github": {
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer TOKEN_VALUE_HERE"
      }
    },
    "atlassian": {
      "type": "http",
      "url": "https://mcp.atlassian.com/v1/mcp/authv2",
      "oauth": {
        "redirect_uri": "https://your.webauthor.server/oxygen-xml-web-author/plugins-dispatcher/web-mcp-auth/callback"
      }
    }
  }
}

OAuth Authentication

For MCP servers that use OAuth 2.0, each end user signs in individually from the MCP dialog box in the AI Positron chat. An authorization code flow protected by PKCE runs in a separate browser tab, and the resulting tokens are stored only in that user's session. They are discarded when the user signs out of AI Positron, when the user signs out of the MCP server, or when the session expires.

The optional oauth object can include the following properties: authorize_url, token_url, client_id, client_secret, scopes, redirect_uri, additional_authorize_params, and resource. When these properties are omitted, the authorization endpoints are discovered automatically from the MCP server, and an OAuth client is registered dynamically if the authorization server supports it. The exception is redirect_uri, which is never discovered and must always be configured.

Important:

oauth.redirect_uri is required for every MCP server that uses OAuth. Set it to the public callback URL of your deployment, which is the public address of the plugins dispatcher followed by /web-mcp-auth/callback. For example:

https://your.webauthor.server/oxygen-xml-web-author/plugins-dispatcher/web-mcp-auth/callback

This is the address the authorization server sends the authorization code to, and the administrator is the only one who can vouch for it. A callback address taken from the sign-in request instead would be chosen by whoever made that request. For a server whose OAuth client is registered dynamically, that address is the one registered with the authorization server, so the authorization code of one user could be delivered to an address chosen by another.

Attention:
The configured callback URL must be an absolute https URL, with a path and with no user information, query, or fragment. An http URL is accepted only on the loopback interface, which means localhost or a loopback address such as 127.0.0.1 - a host name that merely resolves to one is not accepted, because the name is controlled by whoever owns it. A sign-in attempt for a server whose redirect_uri is missing, or does not meet these requirements, is refused, and the reason is recorded in the server log. The log also reports a callback URL that does not end in /web-mcp-auth/callback, since the authorization code would then be sent somewhere that cannot complete the sign-in.

Using MCP Tools in the AI Positron Chat

When at least one MCP server is configured, an MCP servers and tools button is displayed at the bottom of the AI Positron chat, next to the chat mode and model selectors. A warning marker is displayed over the button when an MCP server that uses OAuth authentication has not yet been signed in to.

Clicking the button opens the MCP dialog box, which contains the following:

Filter tools
Use this text field to filter the list of tools by name or description.
The list of tools

Lists all the tools that the currently selected chat mode sends to the AI engine, grouped by category. This includes both the tools built into AI Positron (for example, tools that read or change document content) and the tools contributed by the configured MCP servers, which are presented first.

Use the check boxes to enable or disable individual tools, or use the check box of a category to toggle all the tools it contains, and then click Apply. A disabled tool is no longer offered to the AI engine. The selection is stored per chat mode in your browser, so it is preserved for your next editing sessions.

MCP servers

Lists each configured MCP server and its current connection state. For a server that is not connected, the reason is shown next to its name.

For servers that use OAuth authentication, a Sign in or Sign out button is displayed at the end of the row. Clicking Sign in opens the provider's authorization page in a new browser tab. After you authorize access, the tab reports that the sign-in succeeded and the dialog box is refreshed automatically. The tools provided by that server become available immediately afterward. Clicking Sign out discards the stored credentials and disconnects that server.

Note:
Some browsers or restrictive browser policies prevent the sign-in tab from notifying the dialog box automatically. In that case, a warning is displayed in the dialog box, and you need to close the sign-in tab yourself so that the list of servers is refreshed.

When the AI engine calls a tool during a conversation, the tool name is presented in the chat as a small button. Clicking it opens a dialog box where you can see how the tool call was made and what result it returned.

Tool Call Security

AI Positron does not control how the tools are implemented by the configured MCP servers or what parameters the LLM uses to call them. Only an administrator can configure the list of MCP servers, so make sure every configured server is trusted before making it available to your users.

The MCP servers are connected separately for each user session, and connections for a session that has not been used for one hour are closed automatically. They are re-established the next time that user interacts with AI Positron.