Borrowing it
Nothing to install: this file belongs to xinpengfei520/banana-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/xinpengfei520/banana-image-mcp/master/CLAUDE.mdgit clone --depth 1 https://github.com/xinpengfei520/banana-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/xinpengfei520/banana-image-mcp/claude-md)<a href="https://agentmods.dev/instructions/xinpengfei520/banana-image-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/xinpengfei520/banana-image-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.
<a href="https://agentmods.dev/instructions/xinpengfei520/banana-image-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/xinpengfei520/banana-image-mcp/claude-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.01866 | $0.01866 |
| Opus 5.5 | $0.00746 | $0.00746 |
| Sonnet 5.5 | $0.00373 | $0.00373 |
| Haiku 4.5 | $0.00187 | $0.00187 |
Grade B, and why
banana-image-mcp CLAUDE.md scanned grade B 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 2d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- JSON clients use `mcpServers`; Codex uses `~/.codex/config.toml` (`[mcp_servers.banana-image]`), edited via surgical block replace (preserves other sections/comments) with `smol-toml` for validation/detection How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is an MCP (Model Context Protocol) server that provides a tool for generating blog cover images. It integrates these services:
- Google Gemini AI - Image generation from text prompts
- Sharp - Image processing (resize, WebP conversion, compression)
- Qiniu Cloud or Aliyun OSS - CDN storage for generated images (configurable via
UPLOAD_PROVIDER)
The main export is generate_blog_cover() which orchestrates the full pipeline: generate → compress → upload → cleanup.
Architecture
MCP server (index.js):
- Exposes six MCP tools:
generate_blog_cover,generate_image,upload_image,list_image_styles,save_image_style,delete_image_style - Preset cover styles live in
styles.js. Resolution is callstyle, thenIMAGE_STYLE, then no style. Explicitnoneskips the global style for that call.banana-image-mcp styleslists the presets and the global style of the current process - Custom styles are saved to
~/.banana-image-mcp/styles.json(custom-styles.js). That file is outside the package, so an update does not delete styles the user created. Same-name saves update one style. Built-in ids cannot be overwritten or deleted. A custom style can be a written prompt, or extracted from a local image path / http(s) URL bystyle-extract.jsplus a Gemini vision call inindex.js(GEMINI_VISION_MODEL, defaultgemini-2.5-flash). A written prompt wins when both are given - Uses ES modules (import/export syntax)
- Temporary files stored in system temp directory (
os.tmpdir()/banana-image-mcp/) - File naming:
YYYYMMDD-{slug}.webp - Two optional ways to reach Gemini: a forward proxy (undici
setGlobalDispatcherfor the SDK's globalfetch;https-proxy-agentfor axios downloads) viaPROXY_URL, or a reverse-proxy gateway viaGEMINI_BASE_URL+GEMINI_EXTRA_HEADERS(SDKhttpOptions.baseUrl/headers)
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.
- 2d ago Changed · +6 lines · +416 tokens per session 6941e96d713a
- 2mo ago First seen · 88 lines · 1,450 tokens per session scan B 88d340758344
banana-image-mcp CLAUDE.md is an instructions file published in the GitHub repository xinpengfei520/banana-image-mcp (0 stars, last pushed 2d ago), licensed MIT. It adds 1,866 tokens to every session, about $0.0075 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
banana-image-mcp CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| banana-image-mcp CLAUDE.mdxinpengfei520/banana-image-mcp | Instructions file | 0 | 2d ago | MIT | B | 1,866 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |