Repository navigation
Conversation
Codex Review SummaryThis 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. |
[Low impact] The test-only change appears safe to merge once required current-head CI passes. SummaryAdds two MCP boundary cases for
Reviews (4) · Last reviewed commit: "Merge upstream main to refresh CI baseli..." · Reviewed by Greptile |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
0 open findings
What changed in this PR
Tightens JEB MCP endpoint validation so unsupported URL paths are rejected early with a configuration diagnostic, preventing connection construction for invalid routes (fixes #2552).
Changes:
- Add strict pathname validation in
parseJebMcpEndpointallowing only/mcpand/mcp/. - Extend unit and boundary tests to assert invalid routes fail before the connection factory is invoked.
- Document the route restriction and preserved URL components.
| File | Description |
|---|---|
| tests/boundary/mcp/jebMcp.test.ts | Adds boundary coverage ensuring invalid routes yield configuration errors and do not invoke the connection factory. |
| src/jeb/JebMcpEndpoint.ts | Introduces a route constant and rejects unsupported pathname values for JEB MCP endpoints. |
| src/jeb/JebMcpEndpoint.test.ts | Adds unit coverage for route rejection and verifies supported endpoints remain unchanged. |
| docs/jeb-analysis.md | Documents the /mcp(//mcp/) requirement and early configuration error behavior. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Share tagged readiness observations, retain partial provider facts, authenticate bridge identity, bound diagnostics, and preserve cancellation and lost-session reasons. Fail closed for unparsed MIPS ABI attributes and macOS saved Hopper databases without a script-capable bridge route. Reviewed fixes: #2010, #2108, #2513, #2695, #2731, #2771, #2828, #2867, #2868, #2870, #2880, #2919, #2945, #2961, #2981, #2998, #3000, #3002. Validation: 285 focused source/boundary tests passed. Real Ghidra, IDA, Linux Hopper, and Windows provider runs were not repeated. BREAKING CHANGE: MIPS targets with unresolved GNU ABI attributes and saved Hopper databases on macOS are refused rather than advertised as supported.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Summary
Preserve MCP boundary coverage after route validation was incorporated on main in d4bd65c53, which references this PR. Related: #2552.
Problem and expected behavior
For /mcp/extra and /not-mcp, inspect_jeb_client must return configuration_invalid before constructing a connection, while the MCP server remains usable.
Change and scope
Merged main d9cd239 without rewriting history. The effective diff is only tests/boundary/mcp/jebMcp.test.ts: two actual in-memory MCP harness cases asserting the configuration diagnostic, zero connection-factory calls and a successful subsequent ping. Production, endpoint unit tests and documentation match that main revision.
Evidence and regression coverage
Main tests route parsing and invalid-host MCP handling, but does not assert the composition-to-MCP contract and zero factory calls for invalid routes. These tests retain that distinct coverage using an injected factory; no real JEB service ran.
Validation performed
Verified the exact tree published at head 13cb0b3 in an assistant-cloud Linux checkout with Node 24.18.0 / npm 11.16.0:
The previous CI failures were matched by full test name against failing push CI 38505561204 on the exact old base 5830088. This refresh incorporates upstream fixes; Current-head CI completed successfully on 2026-10-14. Source tests, all five boundary shards, portable inventory and CI required passed. The separate PR readiness status has not yet appeared on this head.
Normal local commit hooks ran but auto-fixed two unrelated upstream tests. Those unrelated edits were excluded from publication. The GitHub-published merge tree exactly matches the tree tested above; original branch history is preserved.
Contract and boundary impact
Compatibility, safety, and release
No production, package, installation or breaking change. The tests use injected provider seams; they do not establish real-engine or native-platform behavior. Independent review inspected the final code and validation logs; it did not independently execute tests.
Before merge
Author readiness
Human owner: @maxazure
The human owner confirmed personal review and responsibility on 2026-10-14. The effective test-only diff is unchanged.