pixel-mcp CLAUDE.md

pixel-mcp CLAUDE.md is an instructions file for coding agents from willibrandon/pixel-mcp. It costs 2,726 tokens per session, scanned A, original, MIT.

A project guide for Pixel MCP, a Go server that lets AI assistants work with Aseprite, a pixel-art and animation editor. It covers building, testing, configuration, and integration checks that require a real Aseprite installation.

In plain words
What is it for?
It helps build and install the server, run tests and linters, generate coverage reports, and connect it to Aseprite for sprite and animation work.
Why use it?
It explains the required configuration and commands, avoiding failed builds or attempts to run the server without its editor connection.

Instructions file

Install

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.

agentmods
npx agentmods add instructions/willibrandon/pixel-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/willibrandon/pixel-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/willibrandon/pixel-mcp/claude-md.svg)](https://agentmods.dev/instructions/willibrandon/pixel-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/willibrandon/pixel-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/willibrandon/pixel-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,726 This file is loaded in full into every session.
When invoked 2,726 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02726 $0.02726
Opus 5 $0.01363 $0.01363
Sonnet 5 $0.00545 $0.00545
Haiku 4.5 $0.00273 $0.00273

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

Security

Grade A, and why

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

CLAUDE.md · 228 lines

How it starts

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

An MCP (Model Context Protocol) server implementation in Go that exposes Aseprite's pixel art and animation capabilities through programmatic access. The server integrates with Aseprite's command-line interface and Lua scripting API to enable AI assistants to create and manipulate sprites.

Build Commands

# Build the server binary
make build
# or: go build -o bin/pixel-mcp ./cmd/pixel-mcp

# Run tests
make test
# or: go test -v -race -cover ./...

# Run integration tests (requires real Aseprite)
go test -tags=integration ./...

# Generate test coverage report
make test-coverage

# Run linters
make lint

# Clean build artifacts
make clean

# Install binary
make install

Configuration Requirements

CRITICAL: This project requires explicit configuration - no automatic discovery or environment variables.

All operations require a configuration file at ~/.config/pixel-mcp/config.json:

{
  "aseprite_path": "/absolute/path/to/aseprite",
  "temp_dir": "/tmp/pixel-mcp",
  "timeout": 30,
  "log_level": "info",
  "log_file": "",
  "enable_timing": false
}

Configuration fields:

  • aseprite_path (required): Absolute path to Aseprite executable
  • temp_dir (optional): Temporary directory, defaults to /tmp/pixel-mcp
  • timeout (optional): Command timeout in seconds, defaults to 30
  • log_level (optional): Verbosity level (debug, info, warn, error), defaults to info
  • log_file (optional): Path to persistent log file, empty means stderr only
  • enable_timing (optional): Enable request tracking/timing, defaults to false

The aseprite_path MUST be an absolute path to a real Aseprite executable. The project does NOT:

  • Auto-discover Aseprite installations
  • Use environment variables for Aseprite path
  • Search system PATH for Aseprite

Testing Philosophy

ALL tests use real Aseprite - no mocks, stubs, or fakes for Aseprite integration.

Read the full file on GitHub · 228 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. 4d ago First seen · 228 lines · 2,726 tokens per session scan A bfbac2c4ab98

Subscribe to this mod's changes

pixel-mcp CLAUDE.md is an instructions file published in the GitHub repository willibrandon/pixel-mcp (135 stars, last pushed 10mo ago), licensed MIT. It adds 2,726 tokens to every session, about $0.0136 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-30.