Basic information
About MCP Testing Library Server
Test environment for MCP servers
MCP Testing Library is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by moekiorg. Supported transport: stdio. Runtime: node. License: MIT. Source code is hosted on github.com.
MCP Testing Library config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
MCP Testing Library tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Testing Library?
A CLI tool for running Model Context Protocol (MCP) tests, written in TypeScript with full type support and compatible with the MCP SDK. It is designed for developers who need to validate MCP server implementations.
How to use MCP Testing Library?
Install as a development dependency via npm install --save-dev mcp-testing-library. Use the mcpt command to run test files matching the default pattern **/*.test.{js,ts}, with options for timeout, exclusion, and color output. The library also provides a programmatic API via import { mcpt, expect } for custom test scripts.
Key features of MCP Testing Library
- CLI tool for running MCP tests
- Configurable test timeout and exclusion patterns
- Verbose mode for detailed output
- Colorful test output for readability
- Support for individual test files or glob patterns
- Programmatic usage with
mcptandexpectutilities
Use cases of MCP Testing Library
- Validate an MCP server’s tools, prompts, and resources after deployment
- Run automated CI/CD tests for MCP server updates
- Quickly test different MCP server configurations with custom timeouts and exclusions
Frequently asked questions
1 How do I run all tests in my project?
Execute mcpt with no arguments; it will find test files matching the default glob pattern **/*.test.{js,ts}.
2 How can I set a custom test timeout?
Use the --timeout option followed by milliseconds, e.g., mcpt --timeout 10000.
3 Can I exclude certain directories or files?
Yes, use --exclude <patterns> with comma-separated glob patterns. Defaults exclude node_modules/ and dist/.
4 How do I use MCP Testing Library programmatically?
Import { mcpt, expect } from mcp-testing-library and call mcpt with a server configuration and a callback that receives tools, prompts, resources, and isMethodExist.
5 What test file pattern does the CLI use by default?
The default pattern is **/*.test.{js,ts}, but you can override it with --pattern <glob>.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In