FaceTransformMCP CLAUDE.md

FaceTransformMCP CLAUDE.md is an instructions file for coding agents 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

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/acedatacloud/facetransformmcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/AceDataCloud/FaceTransformMCP

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.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.svg" alt="Measured on agentmods" 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. 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.00521 $0.00521
Opus 5 $0.00260 $0.00260
Sonnet 5 $0.00104 $0.00104
Haiku 4.5 $0.00052 $0.00052

Measured 4d ago against content hash ee4e7e6cc653, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 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. 4d 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 (0 stars, last pushed 12d ago), licensed MIT. It adds 521 tokens to every session, about $0.0026 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.