Repository navigation
Agent Integrations [1/3]: Server foundation - #157
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9c061604a7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| _ => return Err(failure()), | ||
| } | ||
| }; | ||
| Ok(StreamableHttpPostResponse::Json(parsed, None)) |
There was a problem hiding this comment.
Preserve Streamable HTTP session IDs
When a stateful MCP server returns Mcp-Session-Id from server/discover, both response branches discard it by returning None, while post_message also rejects the non-None session ID that the SDK would provide on tools/list. The follow-up request therefore lacks the required session header and discovery fails, unintentionally limiting the Streamable HTTP integration to stateless servers. Return the validated response session ID and permit it on subsequent discovery requests.
Useful? React with 👍 / 👎.
Summary
Adds the server foundation for Agent integrations, starting with external MCP. This phase does not expose settings or external tool execution to users.
2026-07-28discovery. It reports a complete catalogue count (including zero) or a redacted failure, without invoking a tool or writing settings.Review focus
sendare unchanged.Test Plan
cargo test --locked -p chapchoo-crypto -p chapchoo-persistenceusing SQLite and a disposable PostgreSQL database.cargo test --locked -p chapchoo-service --lib, including HTTPS JSON/SSE fixtures, pagination, empty and incomplete catalogues, protocol/authentication errors, redirects, and rejection before dialing loopback.cargo check --locked -p chapchoo --all-targets; documentation validator and its unit tests.Spec Impact
The approved
mcp-261126Requirements, ADR, and Design define the feature. The next phase adds the Client and runtime contracts. Living Specs will be updated after the actual native and settings journeys are verified; this PR does not establish external tool availability in Chat.