Skip to content

test(mcp): replace module mocks with real servers#35450

Merged
rekram1-node merged 2 commits into
devfrom
mcp-test-fixtures
Jul 5, 2026
Merged

test(mcp): replace module mocks with real servers#35450
rekram1-node merged 2 commits into
devfrom
mcp-test-fixtures

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • replace all process-global MCP test module mocks with real protocol fixtures
  • exercise headers and lifecycle behavior through real Streamable HTTP and stdio MCP servers
  • exercise OAuth discovery, registration, PKCE, token exchange, and authenticated reconnect against local endpoints
  • add an injectable browser-launch boundary for deterministic OS integration coverage

Testing

  • bun test test/mcp --only-failures (59 pass)
  • bun typecheck
  • bunx prettier --check src/mcp/index.ts src/mcp/browser.ts test/mcp/headers.test.ts test/mcp/lifecycle.test.ts test/mcp/oauth-auto-connect.test.ts test/mcp/oauth-browser.test.ts test/fixture/mcp-lifecycle-stdio.ts
  • full package run: 3,100 pass; one unrelated existing Cerebras assertion fails independently

@rekram1-node rekram1-node marked this pull request as ready for review July 5, 2026 17:21
@rekram1-node rekram1-node merged commit d3459eb into dev Jul 5, 2026
10 checks passed
@rekram1-node rekram1-node deleted the mcp-test-fixtures branch July 5, 2026 17:49
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.

1 participant