Add auth-aware MCP client transport layer#1972
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (17)
Comment |
Summary
openhuman::mcp_clientregistry so core can track named remote MCP servers instead of hardcoding one-off integrationsgitbooks_*tools through the shared MCP client and expose generic agent bridge tools:mcp_list_servers,mcp_list_tools, andmcp_call_toolProblem
Solution
notifications/initialized, session header handling, auth challenge discovery, and retry on expired sessionsSubmission Checklist
diff-cover) meet the gate enforced by.github/workflows/coverage.yml. Runpnpm test:coverageandpnpm test:rustlocally; PRs below 80% on changed lines will not merge.CI remains the enforcement source here; local focused validation was run, but full local coverage was not.
docs/TEST-COVERAGE-MATRIX.mdreflect this change (orN/A: behaviour-only change)N/A: no feature IDs or matrix rows changed for this infrastructure-layer work.
## RelatedN/A: no existing feature IDs were changed by this infrastructure-layer work.
docs/RELEASE-MANUAL-SMOKE.md)N/A: no release manual smoke surface changed.
Closes #NNNin the## RelatedsectionN/A: no tracked GitHub issue was linked for this branch.
Impact
gitbooksinto the registry automatically.Related
N/A: no linked issue.
mcp_call_toolAI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
feat/mcp-core-first-level-integrationb2f867f6Validation Run
pnpm --filter openhuman-app format:checkpnpm typecheckcargo test --manifest-path Cargo.toml mcp_client --libcargo test --manifest-path Cargo.toml stdio_client_talks_to_openhuman_mcp_server --libcargo test --manifest-path Cargo.toml gitbooks --libcargo test --manifest-path Cargo.toml all_tools_registers_generic_mcp_bridge_tools_when_servers_exist --libcargo test --manifest-path Cargo.toml list_servers_renders_registry_entries --libcargo fmt --all, plus pre-pushpnpm rust:checkpnpm rust:checkcoveredapp/src-tauriValidation Blocked
command:pnpm test:coverage/pnpm test:rusterror:not run locally in this pass; only focused MCP/client checks were runimpact:diff-coverage and broader regression signal remain for CI to enforceBehavior Changes
Parity Contract
gitbooks_searchandgitbooks_get_pageremain available and now reuse the shared MCP client transportDuplicate / Superseded PR Handling