Repository navigation
feat: MCP server so AI agents can proof colors - #42
Merged
Merged
Conversation
Adds the npm package hueproof-mcp in mcp/, a pnpm workspace package that runs over stdio and reuses src/lib/color/. Tools: check_contrast, analyze_palette, fix_contrast, simulate_vision, color_info. Server instructions ask agents to check colors before presenting them; prompts review-palette, audit-project-colors and chart-palette. The site stays a static export. Refs #39 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #39 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # pnpm-lock.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #39
What
hueproof-mcp, an MCP server that brings Hueproof's checks to AI agents(Claude Code, Claude Desktop, Codex, Cursor and other MCP clients). It lives in
mcp/as a pnpm workspacepackage, runs on the agent's machine over stdio and reuses
src/lib/color/without color logic of its own.The site stays a static export.
check_contrastanalyze_palettefix_contrastsimulate_visioncolor_infoServer instructions ask the agent to check colors before it presents them. Prompts:
review-palette,audit-project-colors,chart-palette.Notes
src/lib/site.tsgetsLIVE_SITE_URLfor the palette link, sinceSITE_URLfalls back to localhost outside asite build.
tsdownbundles the package; dependencies stay regular npm dependencies, exceptcolor-name-list(19 MB),of which only the list the server reads is bundled.
docs/recipes.mdnow bumps both and publishes withpnpm --filter hueproof-mcp publish;npx -y hueproof-mcpworks after that first publish.Testing
mcp/src/server.test.tscalls every tool and prompt through an in-memory client, including invalid input.2025-06-18.called
analyze_palette,check_contrast,fix_contrastandsimulate_visionon its own and returned thelink.
🤖 Generated with Claude Code