Skip to content

Bright data unit testing#108

Open
matteo8p wants to merge 2 commits intobrightdata:mainfrom
matteo8p:evals-sdk
Open

Bright data unit testing#108
matteo8p wants to merge 2 commits intobrightdata:mainfrom
matteo8p:evals-sdk

Conversation

@matteo8p
Copy link

@matteo8p matteo8p commented Feb 5, 2026

Context

Bright Data MCP should have comprehensive unit testing and evals to ensure server compliance with the MCP spec and high performance. In this PR, we set up @mcpjam/sdk for unit testing and later evals.

Created 3 tests that test for connections to start.

  1. Successfully connects when API key is valid, pro mode is true
  2. Successfully connects when API key is valid, pro mode is false
  3. Returns 401 when API key is invalid

We also upgrade the model context protocol package to fix vulnerable package.

Tests work when running npm run test
Screenshot 2026-02-04 at 4 09 27 PM

Future work

  • Comprehensive unit testing for server tools and more.
  • Replace existing evals CLI with node tests using the SDK.
    If the format of the SDK looks good, I'm happy to continue writing unit tests and evals for your team!

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