Use Claude Code to connect to KernelGen Operator Development MCP Toolkit

Contents

Use Claude Code to connect to KernelGen Operator Development MCP Toolkit#

Prerequisites#

Steps#

To connect Claude Code to the KernelGen Operator Development MCP Toolkit, perform the following steps:

  1. 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.json file

        {
          "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.json file, and add JSON configuration.

        {
          "mcpServers": {
            "kernelgen_mcp": {
              "url": "http://kernelgen.flagos.io/sse",
              "headers": {
                "Authorization": "Bearer <your KernelGen Token>"
              }
            }
          }
        }
        
  2. Verify KernelGen Operator Development MCP Toolkit connection:

    • Option 1: Use prompt

    Please verify the kernelgen mcp connection is successful.
    
  • Option 2: Use command

    /mcp