Borrowing it
Nothing to install: this file belongs to hskelp9527-pixel/agnes-image-mcp. 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/hskelp9527-pixel/agnes-image-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/hskelp9527-pixel/agnes-image-mcpWrote 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/hskelp9527-pixel/agnes-image-mcp/agents-md)<a href="https://agentmods.dev/instructions/hskelp9527-pixel/agnes-image-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/hskelp9527-pixel/agnes-image-mcp/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/hskelp9527-pixel/agnes-image-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/hskelp9527-pixel/agnes-image-mcp/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.00467 | $0.00467 |
| Opus 5 | $0.00234 | $0.00234 |
| Sonnet 5 | $0.00093 | $0.00093 |
| Haiku 4.5 | $0.00047 | $0.00047 |
Grade A, and why
agnes-image-mcp AGENTS.md scanned grade A with 1 finding 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 8d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- 依赖只允许 `mcp`。HTTP 用标准库 `urllib`,不要引 `requests` / `httpx`。 What it actually says
agnes-image-mcp
给任意 MCP 客户端加生图能力。用户填自己的 Agnes API key,图直接返回到对话里。
这个项目的边界
做:一个 stdio MCP server,暴露生图和列模型两个 tool。 不做:不做图片编辑器、不做画廊、不做 web UI、不代管 key、不做 batch 队列。
开源分享用,不承诺维护。README 必须写明这一点,不要给用户「有人会修 bug」的暗示。
结构
src/agnes_image_mcp/server.py 全部逻辑,单文件
pyproject.toml 发布配置
README.md 给使用者看的,最重要的文件
单文件够用。不要拆成 client.py / models.py / config.py——总共不到 150 行,拆开只会让读的人多跳三次。
改代码的规矩
- 依赖只允许
mcp。HTTP 用标准库urllib,不要引requests/httpx。 - tool 的 docstring 是给模型看的说明书,不是给人看的注释。改行为必须同步改 docstring,否则模型会按旧描述调用。
- 参考图那条规则(0/1/6 张的后果)是这个项目的核心价值,写在 docstring 里,不要挪到 README 就算了。
- 不加 API key 之外的配置项。能用环境变量解决的不要做配置文件。
验证
改完必须跑:
python -m agnes_image_mcp --selftest # 不需要 key,只验 JSON-RPC 握手和 tool schema
要验真实出图再手动跑一次带 key 的 generate_image。
上游风险
Agnes 免费额度是「拿使用数据换免费」,约 20 RPM,无 SLA,随时可能改。 不要在代码里做重试规避限流,让错误如实抛给用户。README 里说清楚。
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.
- 8d ago First seen · 43 lines · 467 tokens per session scan A 777a07bedbc6
agnes-image-mcp AGENTS.md is an instructions file published in the GitHub repository hskelp9527-pixel/agnes-image-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 467 tokens to every session, about $0.0023 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
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.
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).
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).
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.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.