Repository navigation
Report partial MCP resource catalogues - #576
GraciousGazelles wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces structured failure reporting for all-server MCP resource and resource-template listings. Instead of silently omitting unready or failed servers, the system now returns an McpResourceListing containing successful results alongside a failures array detailing which configured servers were not ready or failed. This change is integrated across the MCP binding, tool specifications, payload handlers, and tests, with corresponding updates to the divergence documentation. There are no review comments to assess, and I have no additional feedback to provide.
|
Superseded by #594, which replays this coherent change onto current main, preserves the subsequently landed startup-recovery coverage, and adds the exact partial-catalogue checks to the targeted MCP validation lane. |
Summary
notReadyandlistFailedreasons when an all-server resource or template listing is partialContract
Complete all-server results retain their existing shape. A partial result adds a deterministic
failuresarray such as:{ "failures": [ {"server": "configured-server", "reason": "notReady"} ] }Underlying startup and listing errors are not exposed to the model. Explicit calls to an unready server remain errors, and a server that recovers becomes available only through a newly captured binding.
Candidate and validation
072571c16403f6f484c009affe24db1064401601fe128738a830098635a3a6c66239a0c94dcd200ccargo fmt --all,git diff --check, andjq empty docs/divergences/index.yamlThis PR is opened as a draft pending exact-head hosted checks and review.