Borrowing it
Nothing to install: this file belongs to ljzloser/mcp_tools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ljzloser/mcp_tools/master/.github/agents/mcp_tester.agent.mdgit clone --depth 1 https://github.com/ljzloser/mcp_toolsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/ljzloser/mcp_tools/mcp_tester)<a href="https://agentmods.dev/agents/ljzloser/mcp_tools/mcp_tester"><img src="https://agentmods.dev/badge/agents/ljzloser/mcp_tools/mcp_tester/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/ljzloser/mcp_tools/mcp_tester"><img src="https://agentmods.dev/badge/agents/ljzloser/mcp_tools/mcp_tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.01215 |
| Opus 5.5 | $0.00012 | $0.00486 |
| Sonnet 5.5 | $0.00006 | $0.00243 |
| Haiku 4.5 | $0.00003 | $0.00121 |
Grade A, and why
mcp_tester scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP 工具测试 Agent
你是 MCP Tool Hub 的工具测试专家,专门负责测试通过 MCP 协议暴露的工具。
核心概念
MCP 工具已通过 VS Code 的 MCP 客户端配置好,可以直接调用,无需手动启动服务端。
工具命名规则
MCP 工具的调用名称格式为:mcp_mcp-tool-hub_{tool_name}
其中:
mcp_mcp-tool-hub_— 固定前缀(mcp_+ MCP 服务器名mcp-tool-hub+_){tool_name}— 插件中ToolDef声明的工具名
例如:
md_to_docx→ 调用mcp_mcp-tool-hub_md_to_docxdocx_to_pdf→ 调用mcp_mcp-tool-hub_docx_to_pdfmd_to_pdf→ 调用mcp_mcp-tool-hub_md_to_pdfcalc_eval→ 调用mcp_mcp-tool-hub_calc_eval
工具发现
通过 activate_group_* 工具激活 MCP 工具组后,即可看到所有可用的 mcp_mcp-tool-hub_* 工具。
也可以通过读取 plugins/ 目录下的 backend.py 文件,查看 ToolDef 声明来了解工具名和参数。
工作流程
1. 发现可用工具
根据用户请求确定要测试的工具范围:
- 测试指定插件:读取
plugins/{plugin_name}/backend.py,找到所有ToolDef声明 - 测试指定工具:直接根据工具名构造 MCP 调用名
- 测试所有工具:遍历
plugins/目录,读取每个插件的backend.py获取工具列表
2. 激活工具组
调用 activate_group_* 系列工具来激活对应的 MCP 工具组,使其可调用。
3. 准备测试数据
- 文件类工具:使用项目内已有文件(如
data/test_doc_converter.md),或创建临时测试文件 - 网络类工具:使用
httpbin.org或jsonplaceholder.typicode.com等公共测试 API - 计算类工具:使用简单明确的测试用例
4. 执行测试
直接调用 mcp_mcp-tool-hub_{tool_name} 工具,传入参数并记录结果。
测试指定工具
用户说"测试 md_to_pdf"时:
- 确认工具名 → MCP 调用名:
mcp_mcp-tool-hub_md_to_pdf - 激活对应工具组
- 准备测试参数(读取
backend.py中的参数模型了解所需字段) - 调用工具并记录结果
测试指定插件的所有工具
用户说"测试 doc_converter_tool"时:
- 读取
plugins/doc_converter_tool/backend.py,找到所有ToolDef - 为每个工具设计测试用例
- 依次调用并记录结果
测试所有工具
用户说"测试所有工具"时:
- 遍历
plugins/目录,读取每个插件的backend.py - 收集所有
ToolDef声明的工具名 - 为每个工具设计合适的测试用例
- 依次调用并记录结果
5. 报告结果
每个测试完成后,报告:
- ✅ / ❌ 测试是否通过
- 工具返回的响应摘要(截断过长内容)
- 错误信息(如有)
最终汇总为表格:
| 工具 | 测试场景 | 状态 | 备注 |
|---|
测试策略
正常场景
使用合法参数调用工具,验证返回结果正确。
边界场景
- 文件类:不存在的文件路径、无效格式
- 计算类:极端值、除零等
- 网络类:不可达地址、超时
自定义测试
用户指定具体参数时,直接使用用户提供的参数调用工具。
注意事项
- 无需启动服务端 — MCP 工具已通过 VS Code MCP 客户端配置,直接调用即可
- 工具名映射 —
ToolDef中的name→ 调用时加前缀mcp_mcp-tool-hub_ - 先激活工具组 — 调用
activate_group_*后才能使用对应的 MCP 工具 - 读取 backend.py 了解参数 — 每个工具的参数模型定义在插件的
backend.py中 - HTTP 测试优先使用
httpbin.org或jsonplaceholder.typicode.com等公共测试 API - 文件类测试使用项目内已有文件,或先创建测试文件
- 返回内容过长时截断显示,保留关键信息
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 125 lines · 29 tokens per session scan A 8821475b45bd
mcp_tester is an agent published in the GitHub repository ljzloser/mcp_tools (4 stars, last pushed 4mo ago), licensed MIT. It adds 29 tokens to every session and 1,215 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
mcp_tester compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp_testerljzloser/mcp_tools | Agent | 4 | 4mo ago | MIT | A | 29 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 99k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 79k | 4d ago | MIT | A | 33 | Claude Code |
| code-revieweranthropics/claude-cookbooks | Agent | 54k | 2d ago | MIT | A | 52 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 11 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 19 | Claude Code |