mcp_tools: Agent for Claude Code

.github/agents/mcp_tester.agent.md

mcp_tester is an agent for Claude Code from ljzloser/mcp_tools. It costs 29 tokens per session (1,215 once invoked), scanned A, original, MIT.

An MCP testing agent checks tools exposed through the Model Context Protocol, a standard way for applications to provide callable tools to an agent.

In plain words
What is it for?
Use it to test selected MCP tools or all tools in the MCP Tool Hub with suitable test data.
Why use it?
It explains how to discover, activate, and call configured tools without manually starting their servers.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is ljzloser/mcp_tools's own configuration. It tells Claude Code how to work on mcp_tools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp_tools configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/ljzloser/mcp_tools/master/.github/agents/mcp_tester.agent.md
Clone the repo
git clone --depth 1 https://github.com/ljzloser/mcp_tools

Made for: Claude Code.

Wrote 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.

agentmods badge for mcp_tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/ljzloser/mcp_tools/mcp_tester/github.svg)](https://agentmods.dev/agents/ljzloser/mcp_tools/mcp_tester)
Your own site
<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.

agentmods 80×15 button for mcp_tester

Your own site · 80×15
<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>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01215
Opus 5 $0.00015 $0.00607
Sonnet 5 $0.00006 $0.00243
Haiku 4.5 $0.00003 $0.00121

Measured 9d ago against content hash 8821475b45bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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 9d 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.

.github/agents/mcp_tester.agent.md · 125 lines

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_docx
  • docx_to_pdf → 调用 mcp_mcp-tool-hub_docx_to_pdf
  • md_to_pdf → 调用 mcp_mcp-tool-hub_md_to_pdf
  • calc_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.orgjsonplaceholder.typicode.com 等公共测试 API
  • 计算类工具:使用简单明确的测试用例

4. 执行测试

直接调用 mcp_mcp-tool-hub_{tool_name} 工具,传入参数并记录结果。

测试指定工具

用户说"测试 md_to_pdf"时:

  1. 确认工具名 → MCP 调用名:mcp_mcp-tool-hub_md_to_pdf
  2. 激活对应工具组
  3. 准备测试参数(读取 backend.py 中的参数模型了解所需字段)
  4. 调用工具并记录结果
测试指定插件的所有工具

用户说"测试 doc_converter_tool"时:

  1. 读取 plugins/doc_converter_tool/backend.py,找到所有 ToolDef
  2. 为每个工具设计测试用例
  3. 依次调用并记录结果
测试所有工具

用户说"测试所有工具"时:

  1. 遍历 plugins/ 目录,读取每个插件的 backend.py
  2. 收集所有 ToolDef 声明的工具名
  3. 为每个工具设计合适的测试用例
  4. 依次调用并记录结果

5. 报告结果

每个测试完成后,报告:

  • ✅ / ❌ 测试是否通过
  • 工具返回的响应摘要(截断过长内容)
  • 错误信息(如有)

最终汇总为表格:

工具 测试场景 状态 备注

测试策略

正常场景

使用合法参数调用工具,验证返回结果正确。

边界场景

  • 文件类:不存在的文件路径、无效格式
  • 计算类:极端值、除零等
  • 网络类:不可达地址、超时

自定义测试

用户指定具体参数时,直接使用用户提供的参数调用工具。

注意事项

  • 无需启动服务端 — MCP 工具已通过 VS Code MCP 客户端配置,直接调用即可
  • 工具名映射ToolDef 中的 name → 调用时加前缀 mcp_mcp-tool-hub_
  • 先激活工具组 — 调用 activate_group_* 后才能使用对应的 MCP 工具
  • 读取 backend.py 了解参数 — 每个工具的参数模型定义在插件的 backend.py
  • HTTP 测试优先使用 httpbin.orgjsonplaceholder.typicode.com 等公共测试 API
  • 文件类测试使用项目内已有文件,或先创建测试文件
  • 返回内容过长时截断显示,保留关键信息

Read the full file on GitHub · 125 lines

Changes

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.

  1. 9d ago First seen · 125 lines · 29 tokens per session scan A 8821475b45bd

Subscribe to this mod's changes

mcp_tester is an agent published in the GitHub repository ljzloser/mcp_tools (4 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 1,215 once invoked, about $0.0001 per session on Opus 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.

Related

Other agents, from other repositories

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

sdd-init

Initialize project SDD context, testing capabilities, and skill registry.

Gentleman-Programming/gentle-pi · 17 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

test-engineer

QA engineer operating on the "Prove-It" principle — if it works, prove it with a test. Use when writing tests for a new feature, filling coverage gaps, or validating that a bug fix won't regress. Can read, write and edit test files. Dispatch with Task tool for isolated test work.

felvieira/claude-skills-fv · 66 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens

implement-test-diversifier

Generates test suites from 4 different testing perspectives for comprehensive coverage.

eai-support/eai-gofer · 19 tokens