MCP Test Client
@crazyrabbitLTC
关于 MCP Test Client
MCP Test Client is a TypeScript testing utility for Model Context Protocol (MCP) servers.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-test-client": {
"command": "bun",
"args": [
"test"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Test Client?
A testing utility for Model Context Protocol (MCP) servers. It helps developers test MCP server implementations by providing a simple interface for making tool calls and validating responses.
How to use MCP Test Client?
Install it with bun install mcp-test-client, then import MCPTestClient, configure it with your server command and arguments, call init(), and use methods like listTools() or assertToolCall(). The package includes a mock calculator server for learning and testing.
Key features of MCP Test Client
- Easy-to-use testing interface for MCP servers
- Built-in support for tool listing and calls
- Type-safe implementation using TypeScript
- Assertion utilities for validating responses
- Mock calculator server included for examples
Use cases of MCP Test Client
- Test that your MCP server lists expected tools
- Validate tool call results with custom assertions
- Learn MCP tool operations using the provided calculator mock
- Automate server testing in a CI pipeline
- Debug server behavior without a production client
FAQ from MCP Test Client
What are the prerequisites?
Bun runtime v1.0.0 or higher is required.
How do I install MCP Test Client?
Run bun install mcp-test-client in your project.
How do I run the included tests?
After installing dependencies with bun install, execute bun test in the repository root.
What does the package include out of the box?
The MCPTestClient class with methods for listing tools, calling tools, and asserting results, plus a mock calculator server in ./tests/mocks/calculator.ts.
Is MCP Test Client open source?
Yes, it is released under the MIT license.
开发工具 分类下的更多 MCP 服务器
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
MCP Framework
QuantGeekDevThe Typescript MCP Framework
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
mcp-excalidraw
yctimlinMCP server and Claude Code skill for Excalidraw — programmatic canvas toolkit to create, edit, and export diagrams via AI agents with real-time canvas sync.
Serena
oraiosA powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
评论