You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server): standardize setup-failure reporting via reportSetupFailure helper
Scenarios that can't execute (connect failure, missing fixture, capability
not advertised) currently hand-roll a try/catch around connect and pin the
error onto whichever check ID happens to be first. That mislabels the
failure and silently drops any *other* checks the scenario would emit (e.g.
a connect failure in tools-list also makes tools-name-format vanish).
Add `reportSetupFailure(scenarioName, error, specReferences?)` to
sdk-client.ts, emitting a single dedicated `<scenario>-setup` check as
FAILURE with the error detail. Route the setup path of four representative
multi-check server scenarios through it (server-initialize, tools-list,
prompts-list, resources-list): connect runs in its own try/catch that returns
the setup check; genuine post-connect failures keep their real check IDs.
Rebased onto the version-aware connection abstraction (modelcontextprotocol#318): scenarios now
take a RunContext and connect via ctx.connect(); the setup/exec split and the
reportSetupFailure helper carry over unchanged.
This is the "-setup check as a first cut" from modelcontextprotocol#248. Refs modelcontextprotocol#248.
0 commit comments