missing / oauth_pending / error auth never hydrates or starts the server; a disabled layer reports not_active; overlapping validation emits busy; resolver exceptions are classified without spawn. Successful loads map tools (non-string descriptions dropped) and always close the client, including load_failed.enableMcp; an unchanged flag is a no-op; persist failure keeps the in-session flag and reports internal_error; blank names, system toggles, and plugin toggles without metadata are validation_failed and write nothing; malformed workspace mcp-servers.json is ignored with a warning instead of loading servers.mcpServerLookupFromServer drops a blank pluginId so post-auth validation cannot target an empty plugin bucket.test/session/mcp-validation-flow.test.tstest/session/mcp-registry-flow.test.tstest/session/mcp-server-lookup.test.tssrc/server/session/mcp/McpValidationFlow.ts (optional deps, same pattern as McpAuthFlow; default wiring unchanged)Validation is the user-initiated path that is allowed to start an otherwise untrusted workspace MCP server. A missed auth or not-found short-circuit can spawn stdio or open an outbound HTTP connection. Registry misclassification can persist a bad config or treat a schema error as an internal failure. Open coverage PRs #331–#344 do not cover these extracted helpers. Existing session tests only exercise concurrency and happy-path upsert.
test/platform-boundary.test.ts: greenbun run check and bun run typecheck: cleanSign in to comment.
Update README.md
#125 mobile-fixes ← main
Updated 4 months ago
test: cover MCP validation short-circuits and registry fail-closed gates
#345 main ← cursor/missing-test-coverage-6c42
Updated last week