MCP Testing Library
@moekiorg
关于 MCP Testing Library
Test environment for MCP servers
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
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
FAQ from MCP Testing Library
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}.
How can I set a custom test timeout?
Use the --timeout option followed by milliseconds, e.g., mcpt --timeout 10000.
Can I exclude certain directories or files?
Yes, use --exclude <patterns> with comma-separated glob patterns. Defaults exclude node_modules/ and dist/.
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.
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>.
常见问题
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}`.
How can I set a custom test timeout?
Use the `--timeout` option followed by milliseconds, e.g., `mcpt --timeout 10000`.
Can I exclude certain directories or files?
Yes, use `--exclude <patterns>` with comma-separated glob patterns. Defaults exclude `node_modules/` and `dist/`.
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`.
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>`.
基本信息
开发工具 分类下的更多 MCP 服务器
endoflife.ai
endoflife.aiFree MCP server for software end-of-life intelligence: EOL dates, support status, and the 0-100 EOL Risk Score across 485 tracked products. Agents can check a single version, pull a product's full lifecycle schedule, or
TranscriptFetch MCP Server
TranscriptFetchModel Context Protocol (MCP) server for TranscriptFetch: fetch YouTube transcripts, search, channels, and playlists from any MCP client.

Air Pipe
airpipeBuild, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.

Reelier
Maxime HouleAgents make claims. Reelier writes receipts — record an agent's tool-call workflow once, replay it deterministically at 0 tokens, and diff runs to catch drift.
extentos
Asger mølgaardExtentos is a multi-vendor development platform for adding smart-glasses capabilities to existing iOS and Android apps. The simplest analogy is Stripe for smart glasses:
评论