M
Mcptest Py
作者 @Exclearf
MCP server by Exclearf
创建于 5/21/2026
更新于 about 18 hours ago
README
Repository documentation and setup instructions
mcptest
Automated testing for MCP servers. Like pytest, but for your tools.
Install
pip install mcptest-py
Quick start
# mcptest.yml
server:
command: python my_server.py
tests:
- name: "search works"
tool: search_files
input: { query: "hello" }
assert:
- status: success
- result.length: "> 0"
$ mcptest run
✓ search works search_files 45ms 2/2
1 passed · 45ms
Commands
mcptest run # execute YAML test suite
mcptest audit # auto-discover tools and check schema quality
mcptest check # server health check (A–F grade)
mcptest init # scaffold mcptest.yml from server's tool schemas
快速设置
此服务器的安装指南
安装包 (如果需要)
uvx mcptest-py
Cursor 配置 (mcp.json)
{
"mcpServers": {
"exclearf-mcptest-py": {
"command": "uvx",
"args": [
"mcptest-py"
]
}
}
}