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.
npx agentmods add skills/gerard-labs/superpowers-api-platform/api-platform-mcpnpx skills add gerard-labs/superpowers-api-platform --skill api-platform-mcpgit clone --depth 1 https://github.com/gerard-labs/superpowers-api-platformWrote 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.
[](https://agentmods.dev/skills/gerard-labs/superpowers-api-platform/api-platform-mcp)<a href="https://agentmods.dev/skills/gerard-labs/superpowers-api-platform/api-platform-mcp"><img src="https://agentmods.dev/badge/skills/gerard-labs/superpowers-api-platform/api-platform-mcp.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00801 |
| Opus 5 | $0.00000 | $0.00400 |
| Sonnet 5 | $0.00000 | $0.00160 |
| Haiku 4.5 | $0.00000 | $0.00080 |
Grade A, and why
api-platform-mcp 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.
How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Platform 4.3 — MCP (Model Context Protocol) — @experimental
Use when
- An AI agent (Claude, ChatGPT, Cursor, …) needs to call the API as a tool.
- Specific operations should be exposed only to agents (no HTTP route).
- The agent should consume Hydra-aware structured content for better context.
Default workflow
- Install
api-platform/mcp+symfony/mcp-bundlewith a pinned exact version (composer require api-platform/mcp:4.3.x). - Configure
mcp.yaml(transports, session store) and enable inapi_platform.yaml. - Define tools — either standalone with
#[McpTool], or on existing resources via themcp:keyword. - For collections, use
McpToolCollection(structuredContent: true). - Enable validation explicitly (
validate: true) on tools that mutate state. - Add audit logging + dedicated rate limiting on
/mcp.
Guardrails
@experimental: the API surface may change between minor releases. Pin the exact version.- Restricted tool set: expose only tools that are safe for an agent. No Delete without explicit confirmation flow.
- Schema strict: explicitly declare input schemas via
#[ApiProperty(schema: ...)]for LLMs that reject union types. - Audit log: trace every MCP call (who, what, when) — an AI agent is not a human user.
- Rate limiting: a dedicated limiter on
/mcp(cf.gerard:rate-limiting). - No PII leakage: review every tool's response payload — assume the AI may use it in a prompt that goes to a third party.
Progressive disclosure
SKILL.mdcovers posture and rules.reference.mdcarries the full install, configuration, both declaration patterns (#[McpTool]standalone andmcp:on#[ApiResource]),McpToolCollection, validation, schema override, and bonnes pratiques.
Output contract
- A pinned
api-platform/mcpversion. - Tools declared with
#[McpTool]and / or viamcp:on resources. - Schemas overridden where needed for LLM compatibility.
- Audit logging configured for
/mcp. - Dedicated rate limit on the
/mcpendpoint.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 4d ago First seen · 50 lines · 0 tokens per session scan A 2353f78515ac
api-platform-mcp is a skill published in the GitHub repository gerard-labs/superpowers-api-platform (2 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 801 tokens. 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.
Other skills, from other repositories
symfony:doctrine-events
React to Doctrine entity lifecycle in Symfony with attribute listeners (#[AsDoctrineListener]/#[AsEntityListener], ORM 3) and lifecycle callbacks.
symfony:api-platform-dto-resources
Map entities to API DTOs in API Platform v4 with the Symfony Object Mapper (#[Map], stateOptions) for decoupled input/output contracts.
symfony:api-platform-filters
Implement API Platform filters - v4 Parameters API (QueryParameter) and legacy.
symfony:api-platform-versioning
Evolve API Platform APIs via deprecation (deprecationReason/sunset, RFC 8594/9745), the recommended alternative to versioning; plus path/header strategies.
symfony:config-env-parameters
Manage Symfony configuration with .env files, parameters, secrets vault, and environment-specific settings.
symfony:doctrine-fixtures-foundry
Create test data with Zenstruck Foundry v2 factories (PersistentObjectFactory, real objects); define states, sequences, and relationships.