Overview
Kilo Code uses Model Context Protocol (MCP) to connect its coding assistant to external tools and services. By wiring Operator in as an MCP server, you give Kilo Code a dedicated, adaptive search layer for live documentation, GitHub issues, changelogs, and technical blogs. This guide shows how to add Operator as an MCP server in Kilo Code using the standard HTTP transport, configure per-user API keys, and understand where global vs project-level configuration lives.How MCP works in Kilo Code
Kilo Code reads MCP server configuration from two places, both using a JSON format with a top-levelmcpServers object:
- Global configuration: stored in
mcp_settings.jsonand managed from the Kilo Code MCP settings view. Applies across all workspaces unless overridden. - Project configuration: stored in
.kilocode/mcp.jsonat the root of your repo. Lets you share MCP servers via version control.
.kilocode/mcp.json entry takes precedence over the global settings.
Global Operator configuration (mcp_settings.json)
To add Operator globally, open the Kilo Code MCP settings view, choose Edit Global MCP, and add an entry under mcpServers:
Project-level Operator configuration (.kilocode/mcp.json)
For project-specific setup, create a .kilocode/mcp.json file in your repository and add the same Operator server block. Kilo Code will automatically detect and load this file:
.kilocode/mcp.json to your repo, teammates get the same Operator configuration automatically, each using their own API key.
Setting your Operator API key & transport options
Each developer uses their own Operator API key, which Kilo Code passes to the MCP server via HTTP headers. Set your key as an environment variable before launching Kilo Code:- Streamable HTTP (recommended): use
url: "https://mcp.operator.io/mcp"and anAuthorization: Bearer ...header as shown above. - SSE (legacy): if your Kilo Code version still supports SSE transport, you can connect via
url: "https://mcp.operator.io/sse"with the same headers.
x-api-key header instead of Authorization:
Using Operator tools inside Kilo Code
Once Operator is configured inmcp_settings.json or .kilocode/mcp.json, Kilo Code will detect the Operator MCP server and list its tools in the MCP settings view.
- Ask Kilo Code about build errors, stack traces, or migrations.
- Let the agent call Operator tools when it needs external docs or GitHub context.
- Use Kilo Code’s MCP tooling UI to enable/disable specific Operator tools or set auto-approval.