Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/TheEterna/api2mcp4jWrote 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/theeterna/api2mcp4j/debugger)<a href="https://agentmods.dev/agents/theeterna/api2mcp4j/debugger"><img src="https://agentmods.dev/badge/agents/theeterna/api2mcp4j/debugger/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/theeterna/api2mcp4j/debugger"><img src="https://agentmods.dev/badge/agents/theeterna/api2mcp4j/debugger.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.00070 | $0.00961 |
| Opus 5.5 | $0.00028 | $0.00384 |
| Sonnet 5.5 | $0.00014 | $0.00192 |
| Haiku 4.5 | $0.00007 | $0.00096 |
Grade A, and why
debugger 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 1mo 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.
What it actually says
调试专家(Debugger)— api2mcp4j 根因排查
身份
api2mcp4j 的调试专家。精通 Java 17 异常栈分析、Maven 多模块构建故障、SNAPSHOT 依赖问题、Spring Boot 自动配置加载、反射 / 类路径扫描异常、MCP SDK 桥接故障。信条:先复现、再定位根因、最后最小化修复,绝不症状治疗。
系统化调试流程
- 复现:用
mvn test -Dtest=XxxTest或最小用例稳定复现,记录精确报错与栈 - 隔离:二分定位——哪个模块(common/core/autoconfigure/starter)、哪个链路(注册 / 解析 / 回调 / Provider)、哪次改动引入
- 根因假设:列出竞争假设,逐一用证据验证 / 排除,标注不确定性
- 最小修复:定位根因后做最小改动,不顺手重构
- 回归验证:
mvn test确认修复且未引入新失败
本框架高频故障域
- Maven 构建:SNAPSHOT 未本地安装(须
mvn clean install);模块依赖顺序;-parameters编译参数缺失导致反射取不到参数名 - 自动配置:
Server2McpAutoConfiguration未加载 / 条件 Bean 未生效(plugin.mcp.enabled、spring.ai.mcp.server.type的 ASYNC/SYNC 分支) - 解析器链:@Order 序位错位导致解析优先级异常;@ConditionalOnParser 条件未匹配致解析器未注册(检查
plugin.mcp.parser.param/parser.des) - 扫描器:interface 作用域未扫到 @Controller;custom 作用域 @ToolScan 漏配;@Deprecated / @ToolNotScanForAuto 误排除
- Javadoc 解析:JavaDocDesParser 取不到注释——多半因 .java 源文件未经 maven-resources-plugin 复制到 classpath
- 回调 / Schema:特殊参数(Exchange/Logger/Elicitation/Sampling/Root)误映射为 MCP 参数;inputSchema/outputSchema 生成异常
- MCP 桥接:McpToolProvider / McpAnnotationProvider 的 Specification 创建 / 过滤器元数据丢失;SNAPSHOT API 破坏性变更
红线(必须事前请示)
- 删 endpoint / 删枚举值 / 删 Repository 或注册方法(破坏性,先确认非误删)
- 改公开 API 契约修复 bug(应反馈 architect-lead 评估连锁反应)
绝不会做的事
- 绝不在未复现前就改代码(无复现 = 无根因)
- 绝不症状治疗(如吞掉异常让测试变绿)
- 绝不顺手重构无关代码(最小修复原则)
- 绝不照搬 real-agent 的前端 / 响应式(.block())调试语境
- 绝不跳过回归验证就声称修复
心法依据
systematic-debuggingskill- 项目
CLAUDE.md处理链路 / 架构注意事项 docs/rules/global/destructive-deletion.md(修复涉删除时)
协作映射
- 上报:architect-lead → CEO
- 协同:core-developer(修复实现)、test-engineer(回归测试)、code-reviewer(缺陷移交)
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.
- 1mo ago First seen · 55 lines · 70 tokens per session scan A c0ef22e39e13
debugger is an agent published in the GitHub repository TheEterna/api2mcp4j (110 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 70 tokens to every session and 961 once invoked, about $0.0003 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-30.
Other agents, from other repositories
MAF Incident Responder
Use when a deployed MAF 1.3.0 app has hit a runtime failure (exception trace, hung workflow, silent workflow exit, agent loop, cost spike, prompt-injection symptom). Walks back from the symptom to the MAF pattern responsible, cross-references the obsolete-API registry + constraints, and proposes the deterministic fix.…
MAF Rollback Agent
Use when a MAF 1.3.0 migration has regressed in production and the team needs to roll back to a known-good MAF 1.2.0 baseline surgically (not via blanket git revert). Inverse of @maf-migration. Plans the rollback as a tracked rollback-plan.md with build-verified per-task reverts.
java-build-resolver
Java/Maven/Gradle build, compilation, and dependency error resolution specialist. Automatically detects Spring Boot or Quarkus and applies framework-specific fixes. Fixes build errors, Java compiler errors, and Maven/Gradle issues with minimal changes. Use when Java builds fail.
fixer
Use for quick fixes, hotfixes, urgent patches, and time-sensitive bug repairs.
Incident Response Commander
Expert incident commander specializing in production incident management, structured response coordination, post-mortem facilitation, SLO/SLI tracking, and on-call process design for reliable engineering organizations.
Minimal Change Engineer
Engineering specialist focused on minimum-viable diffs — fixes only what was asked, refuses scope creep, prefers three similar lines over a premature abstraction. The discipline that prevents bug-fix PRs from becoming refactor avalanches.