Use Claude Code to connect to KernelGen Operator Development MCP Toolkit#
Prerequisites#
Use Claude Code version 2.1 and later
Learn Claude Code settings: https://code.claude.com/docs/en/settings#.
Steps#
To connect Claude Code to the KernelGen Operator Development MCP Toolkit, perform the following steps:
Use the Server-Sent Events (SSE) protocol and Bear authentication to register the KernelGen Operator Development MCP Toolkit with Claude Code:
Option 1 (Recommended): Send a prompt to connect to the KernelGen Operator Development MCP Toolkit, for example:
Based on the Claude Code configuration documentation: https://code.claude.com/docs/en/mcp, connect to the MCP. The MCP URL is https://kernelgen.flagos.io/sse, and the token is <your KernelGen Token>. Configure this in the claude.json file.Based on the VSCode documentation: https://code.visualstudio.com/docs/copilot/customization/mcp-servers, configure the kernelgen MCP. The MCP URL is https://kernelgen.flagos.io/sse, and the token is <your KernelGen Token>. Configure this in the mcp.json file.
Option 2 : Use the following command:
claude mcp add --transport sse kernelgen-mcp https://kernelgen.flagos.io/sse/ --header "Authorization: Bearer <your KernelGen Token>"
Option 3: Manually modify the configuration file.
Option A: Add JSON configuration to the
.claude.jsonfile{ "projects": { "/root/projects/my-project": { "mcpServers": { "kernelgen-mcp": { "type": "sse", "url": "https://kernelgen.flagos.io/sse", "headers": { "Authorization": "Bearer <your KernelGen Token>" } } } } } }
Option B:Create
mcp.jsonfile, and add JSON configuration.{ "mcpServers": { "kernelgen_mcp": { "url": "http://kernelgen.flagos.io/sse", "headers": { "Authorization": "Bearer <your KernelGen Token>" } } } }
Verify KernelGen Operator Development MCP Toolkit connection:
Option 1: Use prompt
Please verify the kernelgen mcp connection is successful.
Option 2: Use command
/mcp