Skip to content

v2 ci: add Bun and Deno integration tests#1607

Open
KKonstantinov wants to merge 4 commits intomodelcontextprotocol:mainfrom
KKonstantinov:bun-deno-integration-tests
Open

v2 ci: add Bun and Deno integration tests#1607
KKonstantinov wants to merge 4 commits intomodelcontextprotocol:mainfrom
KKonstantinov:bun-deno-integration-tests

Conversation

@KKonstantinov
Copy link
Contributor

@KKonstantinov KKonstantinov commented Feb 28, 2026

Add integration tests that run MCP server/client round-trips natively on Bun and Deno using their respective test runners, verifying the SDK works across runtimes beyond Node.js.

  • Add bun.test.ts using bun:test + Bun.serve()
  • Add deno.test.ts using Deno.test + Deno.serve() + node:assert
  • Add test-runtimes CI job (Bun 1.x + Deno v2.x matrix)
  • Gate publish job on test-runtimes passing
  • Exclude runtime-specific tests from vitest and tsconfig

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Add integration tests that run MCP server/client round-trips natively
on Bun and Deno using their respective test runners, verifying the SDK
works across runtimes beyond Node.js.

- Add bun.test.ts using bun:test + Bun.serve()
- Add deno.test.ts using Deno.test + Deno.serve() + node:assert
- Add deno.json with nodeModulesDir: "manual" for pnpm compatibility
- Add test-runtimes CI job (Bun 1.x + Deno v2.x matrix)
- Gate publish job on test-runtimes passing
- Exclude runtime-specific tests from vitest and tsconfig

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Feb 28, 2026

⚠️ No Changeset found

Latest commit: cc4397a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 28, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/client@1607

@modelcontextprotocol/server

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server@1607

@modelcontextprotocol/express

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/express@1607

@modelcontextprotocol/hono

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/hono@1607

@modelcontextprotocol/node

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/node@1607

commit: 1d829fd

KKonstantinov and others added 3 commits March 1, 2026 01:37
Fix import sorting, suppress bun:test unresolved import, and apply
Prettier formatting to integration test files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Deno v2.x auto-detects package.json and node_modules without needing
explicit nodeModulesDir configuration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@KKonstantinov KKonstantinov marked this pull request as ready for review February 28, 2026 23:50
@KKonstantinov KKonstantinov requested a review from a team as a code owner February 28, 2026 23:50
@KKonstantinov KKonstantinov changed the title ci: add Bun and Deno integration tests v2 ci: add Bun and Deno integration tests Mar 1, 2026
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