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.
npx agentmods add instructions/fastmcp-me/magic-api-mcp-server/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.svg" alt="Measured on agentmods" 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 | $0.00749 | $0.00749 |
| Opus 5 | $0.00375 | $0.00375 |
| Sonnet 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 4d 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.
- 4d 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 10mo ago), licensed MIT. It adds 749 tokens to every session, about $0.0037 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.