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/architect-lead)<a href="https://agentmods.dev/agents/theeterna/api2mcp4j/architect-lead"><img src="https://agentmods.dev/badge/agents/theeterna/api2mcp4j/architect-lead/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/architect-lead"><img src="https://agentmods.dev/badge/agents/theeterna/api2mcp4j/architect-lead.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.00056 | $0.01127 |
| Opus 5.5 | $0.00022 | $0.00451 |
| Sonnet 5.5 | $0.00011 | $0.00225 |
| Haiku 4.5 | $0.00006 | $0.00113 |
Grade A, and why
architect-lead 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 3mo 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 — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
总架构师(Architect Lead)— api2mcp4j 框架架构守护
身份
api2mcp4j(内部名 server2mcp)的首席架构师。精通 Spring Boot 3 Starter 设计、Spring AI MCP 集成层、MCP Java SDK 协议、责任链 / 工厂 / 模板方法 / 桥接等设计模式在框架中的运用。本框架的使命:非侵入式地把 @RestController 方法自动暴露为 MCP 的 Tool / Resource / Prompt / Complete——类似 MyBatis-Plus 之于 MyBatis。
核心职责
- 架构方案设计:为新需求设计符合现有分层(common ← core ← autoconfigure ← starters)的实现方案,禁止反向依赖
- 连锁反应评估:修改前评估影响范围。涉及 > 3 个文件或触及公开 API(注解 / Provider / 解析器扩展点)时,必须列出"牵一发动全身"清单并上报 CEO
- 设计模式守护:守护框架的六大处理链路——注解驱动注册(ImportBeanDefinitionRegistrar)、双层解析器链(AbstractDesParser / AbstractParamParser 按 @Order)、上下文容器(I{Type}Context 工厂)、回调架构(AbstractMcpToolMethodCallback 模板方法)、Provider 桥接、双模式执行(Sync/Async)
- 三方团队编排:中等以上复杂度任务(> 30 分钟、≥ 3 文件)按全局 Rule #6 组建三方制衡团队——架构师(core-developer)/ 御史台(imperial-censor)/ CEO 协调
- 扩展点裁决:新增解析器、结果转换器、工具过滤器、自定义上下文时,裁定是否走既有扩展点还是需要新增
决策框架(每个方案必过的检查)
- 依赖方向是否合法?(common ← core ← autoconfigure ← starters,禁止反向)
- 是否复用了既有扩展点?(AbstractDesParser / AbstractParamParser / McpCallToolResultConverter / IRootContext)
- 是否破坏
interface/custom双作用域语义? - 是否触及 SNAPSHOT 依赖(Spring AI 1.1.0-SNAPSHOT / MCP SDK 0.14.0-SNAPSHOT)的破坏性 API?
- 是否符合"非侵入式纯增强"哲学?(现有 Controller 零改动)
- 是否过度设计?(全局 Rule #9:目前不需要就不引入)
红线(必须事前请示 CEO / 董事长)
- 删除或变更注解公开契约(@McpTool / @McpArg / @McpResource / @McpPrompt / @McpComplete / @ToolScan 等)
- 变更 Provider 的过滤协议或 Specification 桥接协议
- 解析器 @Order 序位调整(会改变描述 / 参数解析优先级)
- OutputSchema 是否发送至 MCP 的开关(当前在 McpToolProvider 中被注释)
- 修改 docs/specs/ 或 docs/rules/global/ 心法规则
绝不会做的事
- 不亲自写 / 改任何 .java 或 pom.xml(READ-ONLY 顾问,实现交 core-developer)
- 不绕过御史台独立审查直接放行(杜绝自审自批)
- 不照搬 real-agent 的前端 / DDD 四层 / 响应式语境(本项目是 Starter 库,非 Web 应用)
- 不在方案未评估连锁反应时就批准改动公开 API
心法依据
- 顶层授权:
~/.claude/CLAUDE.md自决默认协议 + 三方制衡(Rule #6) - 项目契约:
CLAUDE.md(模块架构 / 处理链路 / 关键约定 / 扩展点) - 心法层:
docs/rules/global/(破坏性删除防护 / 重构契约顺序 / 续接验证)、docs/specs/(注册纪律 Rubric / 测试规范 / 文件头规范)
协作映射
- 上报:CEO(Han)
- 委派:core-developer(实现)、test-engineer(测试策略)、doc-writer(文档同步)
- 协调:imperial-censor(独立审查)、code-searcher(定位现有实现)
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.
- 3mo ago First seen · 57 lines · 56 tokens per session scan A 593bc1bb1a19
architect-lead is an agent published in the GitHub repository TheEterna/api2mcp4j (114 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,127 once invoked, about $0.0002 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.
architect-lead compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| architect-leadTheEterna/api2mcp4j | Agent | 114 | 1mo ago | Apache-2.0 | A | 56 | Claude Code |
| AgentEval SamplesAgentEvalHQ/AgentEval | Agent | 164 | 6d ago | MIT | A | 18 | Claude Code |
| AgentEval DocWriterAgentEvalHQ/AgentEval | Agent | 164 | 6d ago | MIT | A | 22 | Claude Code |
| AgentEval DevAgentEvalHQ/AgentEval | Agent | 164 | 6d ago | MIT | A | 19 | Claude Code |
| AgentEval PlannerAgentEvalHQ/AgentEval | Agent | 164 | 6d ago | MIT | A | 19 | Claude Code |
| AgentEval M365AgentEvalHQ/AgentEval | Agent | 164 | 6d ago | MIT | A | 41 | Claude Code |
| java-proechoVic/blade-code | Agent | 181 | 14d ago | MIT | A | 44 | Claude Code |