S14: MCP spike (rmcp, Claude Code and Codex as clients, VM reachability) #4

Closed
opened 2026-10-02 00:16:05 +00:00 by jhgaylor · 1 comment
Owner

Blocks: #5

From PLAN.md, section "M16 → S14".


S14: spike before M16 (about half a day):

  • rmcp maturity: Streamable HTTP server, resource subscriptions, progress
    notifications, structured content, and tool annotations.
  • Claude Code as a client:
    • its MCP tool-call timeout, and whether progress notifications extend it;
    • its output-size limit (MAX_MCP_OUTPUT_TOKENS) and what truncation
      looks like;
    • whether it uses resource subscriptions at all.
  • Codex as a client: stdio and HTTP.
  • From inside a wisp VM: can a process reach an HTTP endpoint on the host
    (the bridge address, given wisp-netd's restricted set), or does the
    bridge need to run host-side?
  • Does claude-agent-acp pass mcpServers of type http as well as
    stdio?
**Blocks:** #5 _From PLAN.md, section "M16 → S14"._ --- **S14: spike before M16 (about half a day):** - `rmcp` maturity: Streamable HTTP server, resource subscriptions, progress notifications, structured content, and tool annotations. - Claude Code as a client: - its MCP tool-call timeout, and whether progress notifications extend it; - its output-size limit (`MAX_MCP_OUTPUT_TOKENS`) and what truncation looks like; - whether it uses resource subscriptions at all. - Codex as a client: stdio and HTTP. - From inside a wisp VM: can a process reach an HTTP endpoint on the host (the bridge address, given `wisp-netd`'s restricted set), or does the bridge need to run host-side? - Does `claude-agent-acp` pass `mcpServers` of type `http` as well as `stdio`?
Author
Owner

Done: merged in 6cea304 (spike 24511f5). See spikes/s14-mcp/README.md; findings folded into PLAN.md's M16 section.

  • rmcp 3.5: go. One Streamable HTTP /mcp serves Claude Code and Codex; stdio and a Unix-socket client work. Change three defaults: allowed_hosts (add tailnet), allowed_origins, and set ttlMs/cacheScope on resource results (Claude Code rejects them otherwise).
  • Claude Code over HTTP kills a call after 60s of silence; progress resets it, so run --wait/wait send progress every 15s and return "still running" at 100s (interactive Claude Code backgrounds calls at 120s).
  • Output over ~50k chars becomes a preview plus a file; M16 pages at ~16KB. With structuredContent, Claude Code shows only that, so each result carries a summary field.
  • No client subscribes to resources: resources stay read-only in v1.
  • wisp guests can't reach the host; VM agent blocks use a host-opened relay exec (~1ms round trip).
  • claude-agent-acp passes http MCP servers with headers, so local agent blocks use loopback /mcp with a bearer token.
  • Unverified: why Claude Code's idle watchdog never fired; whether permission prompts use annotations; Codex truncation of very large results.
Done: merged in 6cea304 (spike 24511f5). See spikes/s14-mcp/README.md; findings folded into PLAN.md's M16 section. - rmcp 3.5: go. One Streamable HTTP `/mcp` serves Claude Code and Codex; stdio and a Unix-socket client work. Change three defaults: allowed_hosts (add tailnet), allowed_origins, and set ttlMs/cacheScope on resource results (Claude Code rejects them otherwise). - Claude Code over HTTP kills a call after 60s of silence; progress resets it, so run --wait/wait send progress every 15s and return "still running" at 100s (interactive Claude Code backgrounds calls at 120s). - Output over ~50k chars becomes a preview plus a file; M16 pages at ~16KB. With structuredContent, Claude Code shows only that, so each result carries a summary field. - No client subscribes to resources: resources stay read-only in v1. - wisp guests can't reach the host; VM agent blocks use a host-opened relay exec (~1ms round trip). - claude-agent-acp passes http MCP servers with headers, so local agent blocks use loopback /mcp with a bearer token. - Unverified: why Claude Code's idle watchdog never fired; whether permission prompts use annotations; Codex truncation of very large results.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
jhgaylor/illogical#4
No description provided.