FaceTransformMCP: Instructions file for Claude Code

CLAUDE.md

FaceTransformMCP CLAUDE.md is an instructions file for Claude Code from AceDataCloud/FaceTransformMCP. It costs 521 tokens per session, scanned A, original, MIT.

A project instruction file for FaceTransformMCP, an MCP server that connects an AI agent to AceDataCloud's face-processing API. The API provides tools for face analysis, beautification, transformations, face swapping, cartoonization, and liveness checks.

In plain words
What is it for?
Use it when adding or changing a face endpoint, updating the API client and types, maintaining authentication or error handling, and running the project's smoke tests.
Why use it?
It gives contributors the project structure and development rules needed to update face-related API endpoints consistently.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to AceDataCloud/FaceTransformMCP. 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/AceDataCloud/FaceTransformMCP/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/AceDataCloud/FaceTransformMCP

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 FaceTransformMCP CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/acedatacloud/facetransformmcp/claude-md"><img src="https://agentmods.dev/badge/instructions/acedatacloud/facetransformmcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 521 This file is loaded in full into every session.
When invoked 521 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.00521 $0.00521
Opus 5.5 $0.00208 $0.00208
Sonnet 5.5 $0.00104 $0.00104
Haiku 4.5 $0.00052 $0.00052

Measured 2mo ago against content hash ee4e7e6cc653, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

FaceTransformMCP 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 2mo 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 · 57 lines

What it actually says

FaceTransformMCP

MCP (Model Context Protocol) server for the AceDataCloud Face Transform API — seven face tools covering keypoint detection, beautification, age/gender transform, face swap, cartoonization, and liveness detection.

Project Structure

core/
  config.py     — Settings dataclass (API token, base URL, timeouts)
  server.py     — FastMCP server singleton + optional OAuth provider
  client.py     — FaceClient: async httpx wrapper for /face/* endpoints
  types.py      — Literal types (FaceAnalyzeMode, FaceModelVersion, ...)
  exceptions.py — Error classes (FaceAuthError, FaceAPIError, FaceTimeoutError)
  oauth.py      — Generic AceDataCloud OAuth 2.1 provider (PKCE)
  utils.py      — Shared response helpers (kept from template; unused by face)
tools/
  face_tools.py — All seven face tools + face_get_usage_guide
prompts/
  __init__.py   — face_guide, face_workflow_examples
tests/
  test_smoke.py — Smoke tests (settings, server import, tool registration)

Adding / updating a face endpoint

  1. Source of truth — the upstream OpenAPI spec lives at https://docs.acedata.cloud/openapi/face.json (or the matching file in the Docs/ submodule).
  2. Update client — add a method to FaceClient in core/client.py.
  3. Add tool — register a new @mcp.tool() function in tools/face_tools.py.
  4. Update prompts — extend face_guide and face_workflow_examples.
  5. Update server card — append the tool description to the server_card payload in main.py.
  6. Update README + CHANGELOG.
  7. Add tests — at minimum a smoke test that the tool is registered.
  8. Run ruff check . and pytest --cov=core --cov=tools before opening a PR.

Development

pip install -e ".[dev,test]"
pytest --cov=core --cov=tools
ruff check .

Local run

cp .env.example .env
# fill in ACEDATACLOUD_API_TOKEN
python main.py                          # stdio
python main.py --transport http         # HTTP on :8000
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. 2mo ago First seen · 57 lines · 521 tokens per session scan A ee4e7e6cc653

Subscribe to this mod's changes

FaceTransformMCP CLAUDE.md is an instructions file published in the GitHub repository AceDataCloud/FaceTransformMCP (1 stars, last pushed 5d ago), licensed MIT. It adds 521 tokens to every session, about $0.0021 per session on Opus 5.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

FaceTransformMCP CLAUDE.md compared with instructions from other repositories

FaceTransformMCP CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
FaceTransformMCP CLAUDE.mdAceDataCloud/FaceTransformMCPInstructions file15d agoMITA521Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode