Skip to main content

Enabling MCP

The Model Context Protocol (MCP) feature in the Editor allows you to connect to remote MCP servers and access their tools directly from your prompts. This enables powerful integrations with external services, databases, and APIs without leaving the editor. To enable MCP in your prompts, follow the steps below:
  1. Select an LLM.
To enable the MCP integration capability, you must select only Anthropic LLMs.
  1. Select MCP in the LLM’s settings: Select MCP in Adaline
  2. Set the toggle to On: Enabling MCP in Adaline
The MCP integration is ready. Below is how the editor section appears: MCP integration ready in Adaline

MCP Server Configuration

Before running a prompt, configure the MCP server settings. Each MCP server requires specific configuration settings. Below is the complete JSON schema structure:
{
  "type": "url",
  "url": "https://example-server.modelcontextprotocol.io/sse",
  "name": "example-mcp",
  "tool_configuration": {
    "enabled": true,
    "allowed_tools": ["example_tool_1", "example_tool_2"]
  },
  "authorization_token": "YOUR_TOKEN"
}
The following table describes the settings:
FieldTypeRequiredDescription
typestringYesCurrently only url is supported
urlstringYesThe URL of the MCP server. It must start with https://
namestringYesA unique identifier for the MCP server. Define one of your choice
tool_configurationobjectNoConfigure tool usage settings
tool_configuration.enabledbooleanNoWhether to enable tools from the server (default: true)
tool_configuration.allowed_toolsarrayNoList to restrict which tools are allowed (by default, all tools are allowed)
authorization_tokenstringNoOAuth authorization token (if required by the MCP server)
You can connect to multiple MCP servers simultaneously by adding multiple server configurations:
[
  {
    "type": "url",
    "url": "https://mcp.example1.com/sse",
    "name": "mcp-server-1",
    "authorization_token": "YOUR_TOKEN_1"
  },
  {
    "type": "url",
    "url": "https://mcp.example2.com/sse",
    "name": "mcp-server-2",
    "authorization_token": "YOUR_TOKEN_2"
  }
]
Note that many MCP servers require OAuth authentication. There are several ways to obtain an access token before configuring the server. One is by using the MCP Inspector. Read the MCP Inspector official documentation to learn how to use it. Once you retrieved the Oauth token, paste it in the authorization_token field.