Borrowing it
Nothing to install: this file belongs to fastmcp-me/magic-api-mcp-server. 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/fastmcp-me/magic-api-mcp-server/main/AGENTS.mdgit clone --depth 1 https://github.com/fastmcp-me/magic-api-mcp-serverWrote 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/instructions/fastmcp-me/magic-api-mcp-server/agents-md)<a href="https://agentmods.dev/instructions/fastmcp-me/magic-api-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/fastmcp-me/magic-api-mcp-server/agents-md/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/instructions/fastmcp-me/magic-api-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/fastmcp-me/magic-api-mcp-server/agents-md.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.00749 | $0.00749 |
| Opus 5.5 | $0.00300 | $0.00300 |
| Sonnet 5.5 | $0.00150 | $0.00150 |
| Haiku 4.5 | $0.00075 | $0.00075 |
Grade A, and why
magic-api-mcp-server AGENTS.md 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.
What it actually says
Repository Guidelines
项目结构与模块组织
extract_api_paths.py:从 Magic-API 数据源抽取端点并导出 CSV,支持关键词与方法过滤。magic_api_client.py与magic_api_debug_client.py:WebSocket 调试核心,负责日志监听、断点控制和命令执行。magic_api_resource_manager.py:封装资源同步逻辑,供代理脚本复用。mcp/:多代理实验脚本与配置,保持独立命名空间便于扩展。magicapi_mcp/tools/api_tools.py:API执行工具模块,包含call_magic_api工具用于调用接口。magicapi_mcp/tools/query_tools.py:查询工具模块,包含搜索和过滤API端点的功能。test/目录及根目录test_*.py:脚本化回归用例,覆盖消息过滤、断点、异步网络修复、API搜索等场景。
构建、测试与开发命令
- 安装依赖:
pip install -r requirements.txt,确保 requests 与 websockets 版本一致。 - 提取接口:
python3 extract_api_paths.py --url http://127.0.0.1:10712/magic/web/resource --query 关键词。 - 调试调用:
python3 magic_api_client.py --call 'GET /demo' --params 'k=v' --listen-only。 - API搜索测试:
python3 test/test_search_api_endpoints.py,验证API端点搜索和过滤功能。 - 异步回归:
python3 test_async_http_fix.py,验证 HTTP 调用不阻塞 WebSocket。 - 批量检查:
find test -name 'test_*.py' -exec python3 {} +,快速执行脚本式测试矩阵。
编码风格与命名约定
- Python 保持 4 空格缩进与模块级 docstring,函数名、变量名统一 snake_case。
- 文件命名体现职责,例如
magic_api_*前缀标识客户端相关逻辑。 - CLI 提示与日志沿用现有 emoji+中文文案,突出执行阶段与异常类型。
- 新增第三方依赖需同步更新
requirements.txt并写明用途注释。
测试准则
- 每项修复至少补充一个可复现脚本,命名为
test_描述.py并放在test/。 - 异步流程需覆盖事件循环内外两种调用,可参考
test_async_http_fix.py的结构。 - 涉及远程 HTTP 的用例请提供 Mock、替代 URL 或说明本地模拟步骤,避免 CI 网络依赖。
- 调试客户端改动要验证断点、消息过滤、认证登录三类关键路径。
提交与合并请求指南
- 建议提交信息采用
type(scope): summary,常见 type 包括feat、fix、refactor、test。 - 推送前运行相关测试脚本并清理临时日志,保持工作树干净。
- PR 描述需说明背景、实现要点与验证方式,并附命令输出或截图证明关键行为。
- 若改动影响接口或配置,列出回滚策略与默认值,协助评审快速评估风险。
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 · 37 lines · 749 tokens per session scan A f87b5c7f6d30
magic-api-mcp-server AGENTS.md is an instructions file published in the GitHub repository fastmcp-me/magic-api-mcp-server (0 stars, last pushed 1y ago), licensed MIT. It adds 749 tokens to every session, about $0.0030 per session on Opus 5.5. A static security scan graded it A with 0 findings. It comes from a forked repository.
magic-api-mcp-server AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| magic-api-mcp-server AGENTS.mdfastmcp-me/magic-api-mcp-server | Instructions file | 0 | 1y ago | MIT | A | 749 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |