image-generation-mcp: Instructions file for Claude Code

CLAUDE.md

image-generation-mcp CLAUDE.md is an instructions file for Claude Code from pvliesdonk/image-generation-mcp. It costs 11,444 tokens per session, scanned A, a copy of scholar-mcp CLAUDE.md, MIT.

Development instructions and project conventions for the image-generation-mcp Python server.

In plain words
What is it for?
They help organize server code, add tools, resources, prompts, and domain services, and follow the project's Python, formatting, package, and release conventions.
Why use it?
They give contributors a shared structure and rules for changing the server safely.

Instructions file for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is pvliesdonk/image-generation-mcp's own configuration. It tells Claude Code how to work on image-generation-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything image-generation-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pvliesdonk/image-generation-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.

Copy the file
curl -O https://raw.githubusercontent.com/pvliesdonk/image-generation-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/pvliesdonk/image-generation-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for image-generation-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/pvliesdonk/image-generation-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/pvliesdonk/image-generation-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/pvliesdonk/image-generation-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/pvliesdonk/image-generation-mcp/claude-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.

agentmods 80×15 button for image-generation-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pvliesdonk/image-generation-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/pvliesdonk/image-generation-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11,444 This file is loaded in full into every session.
When invoked 11,444 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.11444 $0.11444
Opus 5 $0.05722 $0.05722
Sonnet 5 $0.02289 $0.02289
Haiku 4.5 $0.01144 $0.01144

Measured 9d ago against content hash 5fbf9a8f2c36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

image-generation-mcp CLAUDE.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 9d 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.

Origin

This is a copy

89% identical to scholar-mcp CLAUDE.md — 67 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 428 lines

How it starts

The opening of the file, as written. The whole thing — 428 lines — stays where its author put it; the contents beside it link to each section on GitHub.

image-generation-mcp

FastMCP server scaffold. See TEMPLATE.md for customisation guide.

Design

Project Structure

src/image_generation_mcp/
  server.py            -- FastMCP server factory (make_server) + auth wiring
  config.py            -- env var loading; add domain config fields here
  cli.py               -- CLI entry point (serve command)
  _server_deps.py      -- lifespan + Depends() DI; replace placeholder service
  tools.py             -- MCP tools; replace example tools with domain tools
  resources.py         -- MCP resources; add domain resources here
  prompts.py           -- MCP prompts; add domain prompts here
  domain.py            -- ImageService + domain types (the service placeholder)

Conventions

  • Python 3.11+
  • uv for package management, ruff for linting/formatting (line length 88)
  • hatchling build backend
  • Conventional commits, one type from build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test — optionally scoped (feat(search): ...) and with ! for a breaking change. Only feat, fix, and the ! marker drive releases: feat cuts a minor, fix a patch, ! a major. Every other type — perf included — cuts nothing and never reaches CHANGELOG.md; a performance change that must ship on its own is either honestly a fix: (it fixes a performance defect) or released with Release Prepare's explicit override_version input.
  • Google-style docstrings on all public functions
  • logging.getLogger(__name__) throughout, no print()
  • Type hints everywhere
  • Tests: pytest with fixtures in tests/fixtures/

Pull-request titles are enforced, not merely encouraged. A squash merge takes the PR title as the commit subject, so CI's PR Title job checks it against the type list above and fails the CI Success aggregate when it does not match. This is not style policing: knope computes versions and writes CHANGELOG.md from those subjects, and it silently ignores a subject whose type it does not count — no fallback heading, no entry, no warning. That silent-drop class is exactly what the gate exists for: it keeps the history parseable and the accepted set deliberate. The changelog itself carries three sections per release — Breaking Changes first, then Features, then Bug Fixes — fed only by !/feat/fix subjects; the richness for everything else lives on the docs/releases/ notes page, not in the changelog.

Read the full file on GitHub · 428 lines

Changes

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.

  1. 9d ago First seen · 428 lines · 11,444 tokens per session scan A 5fbf9a8f2c36

Subscribe to this mod's changes

image-generation-mcp CLAUDE.md is an instructions file published in the GitHub repository pvliesdonk/image-generation-mcp (1 stars, last pushed 2d ago), licensed MIT. It adds 11,444 tokens to every session, about $0.0572 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to scholar-mcp CLAUDE.md, differing in 67 lines, and is treated as a copy.

Related

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.

vercel/next.js · 7,296 tokens

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.

openai/codex · 5,153 tokens

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).

microsoft/vscode · 6,785 tokens

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).

microsoft/vscode · 5,001 tokens

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.

langchain-ai/langchain · 4,469 tokens

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.

deepseek-ai/deepseek-harness · 3,735 tokens