Skip to content

Add streamable-http transport with required bearer-token auth to clikernel-mcp #24

Description

@erikgaas

clikernel-mcp parses no arguments and serves stdio only. Add --transport streamable-http with --port/--host (default remains stdio, unchanged), using MCPServer.run_streamable_http_async from mcp>=2. HTTP mode must refuse to start without a bearer token (e.g. CLIKERNEL_TOKEN), verified per request with a constant-time compare: a reachable execute endpoint is a remote shell.

Motivation: hosting a persistent session on a remote box, e.g. inside a solveit instance behind its public domain, then claude mcp add --transport http <url> -H "Authorization: Bearer ..." gives the local harness an execute tool running in that environment. Depends on #21/#23 for the 2.x import.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions