Skip to content

feat(mcp): attach read-only stdio to an existing daemon - #263

Open
joshyorko wants to merge 3 commits into
masterfrom
swarm/247-daemon-mcp
Open

joshyorko wants to merge 3 commits into
masterfrom
swarm/247-daemon-mcp

Conversation

@joshyorko

@joshyorko joshyorko commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Change

Adds explicit read-only stdio attachment to an already-running numeric loopback HTTP daemon:

codex-memoryd --url http://127.0.0.1:8989 mcp stdio --daemon --profile personal --workspace default

Daemon attachment exits before local configuration or SQLite initialization. Status, recall, and search use the existing typed HTTP API and MCP dispatcher. The profile and workspace are fixed; status omits global inventories and local paths. The client disables redirects and ambient proxies, bounds request/response bodies and total request time, and sanitizes transport/API/auth/capability errors. It neither starts nor migrates a daemon or falls back to a local store.

Scope

Bounded first slice of #247. External tunnel profile setup, tunnel-client packaging/UX, release-shaped hosted ChatGPT connectivity proof, and later #233 write continuity remain incomplete. No tunnel-client code is vendored.

Validation

The prior real-subprocess regression reproduced ambient-runtime selection/logging before the fix. Synthetic tests cover an impossible local storage home, mixed scopes, secret-blocked facts, outage/reconnection, adapter restart, redirects, timeouts, malformed/oversized payloads, auth/capability errors, and direct/local stdio compatibility.

Latest head: 9ed1ecd777072029babac4c046f2f64db886bcb6.

  • Proxy regression: the daemon survival test passed with upper- and lowercase proxy variables forced to an unreachable loopback proxy and empty NO_PROXY.
  • Focused suites: cargo test --test mcp_daemon --test mcp_stdio — 25 passed (10 daemon, 15 stdio, including official rmcp discovery).
  • Full synthetic release gate: 582 tests across 49 targets; formatting, diff checks, build, doctor, substrate/procedure evals, performance, and dry-run workflows all passed. Operator dogfood was skipped.
  • Hosted PR gate run #59 passed on this exact head, including the release gate, locked release binary build, and native CLI lifecycle smoke.
  • The automatic Codex connector review completed on prior head 827bf6e105 and reported two findings: stale attachment guidance and a proxy-dependent test probe. Both are fixed in 9ed1ecd, and both corresponding review threads are resolved. The owner-approved latest-head Codex connector review completed at 13:09 UTC on 9ed1ecd777072029babac4c046f2f64db886bcb6 and found no major issues. This single additional review was explicitly authorized because the repair push did not receive an automatic review. With exact-head CI passing and both prior threads resolved, MERGE_READY YES. No merge or deployment is authorized.

The earlier pre-#266 checkpoint had 578 tests and is superseded by the post-integration results above. No real-memory corpus, operator/Dakota dogfood, production deployment, tagging, release, or PR merge was performed.

@joshyorko
joshyorko marked this pull request as ready for review October 14, 2026 12:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T13:09:39.936757Z 9ed1ecd Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 827bf6e105

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/mcp-v2.md
Comment thread tests/mcp_daemon.rs Outdated

Copy link
Copy Markdown
Owner Author

@codex review

Please review the current head 9ed1ecd777072029babac4c046f2f64db886bcb6, including the fixes to the preceding review findings. Josh explicitly authorized this single additional review because no automatic review appeared after the repair push. No merge or deployment is requested.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 9ed1ecd777

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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