Skip to content

fix(mcp): isolate failing servers during reconciliation - #2158

Merged
JAORMX merged 1 commit into
mainfrom
fix/mcp-init-isolation-2150
Oct 8, 2026
Merged

JAORMX merged 1 commit into
mainfrom
fix/mcp-init-isolation-2150

Conversation

@JAORMX

@JAORMX JAORMX commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #2150.

  • Isolate MCP initialization and catalog-listing failures per server so healthy peers remain usable at startup and refresh.
  • Keep failed peers retryable, including recovery with an initially empty catalog, without replacing healthy runtimes just because an error message changes.
  • Surface sanitized per-server inventory errors and preserve actionable OAuth diagnostics.
  • Preserve shared candidate limits, cancellation cleanup, atomic runtime publication, last-known-good behavior, and explicit session authority/permission checks.

Verification

Offline HTTP regressions cover partial startup, retry and recovery, empty-catalog recovery followed by list-change notification, resource/prompt failures, aggregate limits, and cleanup. Production Build/session coverage checks explicit MCP admission and permission approval.

  • Rebased onto main at dcf1ea4a2, retained as one commit: 51cd8f73a.
  • All current-head CI checks and workflows passed, including the full race suite, analysis/lint, build, docs, compatibility, performance, MicroVM, and macOS checks. CI run.
  • CI exposed a cancellation-fixture cleanup deadlock after the rebase. The fix is included in the same commit: JSON-RPC methods are parsed, cancellation no longer waits for SSE completion, and cleanup releases all waiters before closing servers. The subsequent full race suite passed.
  • No local tests were run for the rebase or fixture fix, as requested; verification relies on CI.

Earlier local validation passed the offline suite, docs checks, affected-package race tests, and the offline demo. Full local lint/race attempts encountered resource limits; these are not outstanding CI failures.

Scope

No live MCP services or operator configuration were changed.

@JAORMX
JAORMX force-pushed the fix/mcp-init-isolation-2150 branch from 81b282b to 51cd8f7 Compare October 8, 2026 06:32
@JAORMX
JAORMX merged commit ec9ef3b into main Oct 8, 2026
37 checks passed
@JAORMX
JAORMX deleted the fix/mcp-init-isolation-2150 branch October 8, 2026 07:05
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 8, 2026
2 tasks

This branch was successfully deployed

1 active deployment
Preview — 51cd8f73 Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP: one server initialization failure makes healthy servers unavailable

1 participant