Skip to content

Enable local HTTP API by default (MCP needs it)#258

Merged
ANonABento merged 1 commit into
mainfrom
default-local-api-on
Jun 7, 2026
Merged

Enable local HTTP API by default (MCP needs it)#258
ANonABento merged 1 commit into
mainfrom
default-local-api-on

Conversation

@ANonABento

Copy link
Copy Markdown
Owner

The local HTTP API powers the MCP server and Claude Code's board automation. It was off unless KAITENCODE_LOCAL_API=1 was set — so a normal Dock/.deb launch wrote no ~/.kaitencode/api.port, and every MCP mutation failed with "app is not running" (a silent, hard-to-diagnose footgun — hit it while setting up the dogfood board).

Change: default the API to ON. Safe to do so — it binds 127.0.0.1 only and authenticates every request with a per-run bearer token in a 0600 discovery file. Explicit opt-out is preserved: KAITENCODE_LOCAL_API=0 (or false/no/off).

Also updates the disabled-path log message and the README. New test covers the opt-out values; existing default test flipped to assert on. cargo test + clippy green.

…ODE_LOCAL_API=0)

The local API powers the MCP server and Claude Code's board automation. It was
off unless KAITENCODE_LOCAL_API=1 was set, so a normal Dock/.deb launch wrote no
~/.kaitencode/api.port and every MCP mutation failed with "app is not running" —
a silent, hard-to-diagnose footgun.

Flip the default to ON. It's safe to default on: the server binds 127.0.0.1 only
and authenticates every request with a per-run bearer token in a 0600 discovery
file. Explicit opt-out is preserved: KAITENCODE_LOCAL_API=0 (or false/no/off)
disables it. Updates the disabled-path log message and the README accordingly.
@ANonABento ANonABento merged commit 121d6f0 into main Jun 7, 2026
3 checks passed
@ANonABento ANonABento deleted the default-local-api-on branch June 7, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant