seedream-mcp-server: Instructions file for Claude Code

CLAUDE.md

seedream-mcp-server CLAUDE.md is an instructions file for Claude Code from syh52/seedream-mcp-server. It costs 1,273 tokens per session, scanned A, original, MIT.

An MCP server that lets Claude Code use BytePlus SeeDream 4.5 to generate and edit images. It also supports combining images, creating variations, submitting jobs, and checking service status.

In plain words
What is it for?
Use it to create images from text, edit existing images, blend multiple images, make image variations, submit longer jobs, or check the server.
Why use it?
It gives Claude Code documented image-generation tools and setup instructions, including the required API key and connection modes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is syh52/seedream-mcp-server's own configuration. It tells Claude Code how to work on seedream-mcp-server 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 seedream-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to syh52/seedream-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.

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

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 seedream-mcp-server CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/syh52/seedream-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/syh52/seedream-mcp-server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,273 This file is loaded in full into every session.
When invoked 1,273 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 original No closer match found 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.01273 $0.01273
Opus 5 $0.00636 $0.00636
Sonnet 5 $0.00255 $0.00255
Haiku 4.5 $0.00127 $0.00127

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

Security

Grade A, and why

seedream-mcp-server 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 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.

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.

CLAUDE.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 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

SeeDream MCP Server - 让 Claude 直接生成图片的 MCP 服务器,基于 BytePlus SeeDream 4.5 模型。

部署地址: https://seedream-mcp-server-production.up.railway.app

可用工具 (6 个):

工具 用途 Claude Code Claude.ai
seedream_generate 文本生成图片 ❌ 超时
seedream_edit 编辑现有图片 ❌ 超时
seedream_blend 多图融合 (2-14 张) ❌ 超时
seedream_variations 批量变体 (2-15 张) ❌ 超时
seedream_submit 提交任务,Web App 查看
seedream_status 服务状态检查

Commands

npm run dev      # 开发模式(tsx watch)
npm run build    # TypeScript 编译到 dist/
npm start        # 运行编译后的服务器

# 环境变量(必需)
ARK_API_KEY="your-key"           # SeeDream API 密钥

# 环境变量(传输模式)
TRANSPORT="stdio"                 # stdio(默认)或 http
PORT=3000                         # HTTP 模式端口

# 环境变量(Firebase 同步)
FIREBASE_SERVICE_ACCOUNT='{"type":"service_account",...}'
FIREBASE_USER_ID="your-uid"
FIREBASE_USER_NAME="Your Name"

Architecture

src/
├── index.ts              # 入口点(stdio + http 双模式)
├── services/
│   ├── seedream.ts       # SeeDream API 客户端(流式响应、并行下载)
│   └── firebase.ts       # Firebase Admin SDK(Storage + Firestore)
├── schemas/
│   └── index.ts          # Zod 验证 schema(输入 + 输出)
└── tools/
    ├── generate.ts       # 文本生成图片(Claude Code 专用)
    ├── edit.ts           # 图片编辑
    ├── blend.ts          # 多图融合
    ├── variations.ts     # 批量变体
    ├── submit.ts         # 异步提交(Claude.ai 专用)
    └── status.ts         # 健康检查

两种使用模式

Claude Code (本地):

seedream_generate → 同步返回图片 URL → 自动同步到 Firebase

Claude.ai / MCP Submit:

seedream_submit → 创建任务到 Firestore (status='pending')
                           ↓
        Cloud Function (processGenerationTask) 处理
                           ↓
        生成图片 → 上传 Storage → 更新任务状态
                           ↓
        前端通过 Firestore 实时订阅获取更新
                           ↓
        https://seedream-gallery.firebaseapp.com

Read the full file on GitHub · 147 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. 8d ago First seen · 147 lines · 1,273 tokens per session scan A c9f1085e9bd0

Subscribe to this mod's changes

seedream-mcp-server CLAUDE.md is an instructions file published in the GitHub repository syh52/seedream-mcp-server (0 stars, last pushed 6mo ago), licensed MIT. It adds 1,273 tokens to every session, about $0.0064 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

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

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.

github/spec-kit · 7,104 tokens