Agent skill
mcp-php-schema
Navigate and understand the MCP PHP schema. Use when implementing MCP clients/servers, understanding protocol types, or finding the right DTO for a task.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/skill-wordpress-php-mcp-schema
SKILL.md
MCP PHP Schema Reference
Quick Navigation
- Server types (resources, tools, prompts): reference/server.md
- Client types (sampling, elicitation, roots): reference/client.md
- Common types (protocol, JSON-RPC): reference/common.md
- RPC methods: reference/rpc-methods.md
- Factories: reference/factories.md
Schema Structure
3 domains, 17 subdomains, 164 types total.
Domains Overview
| Domain | Types | Purpose |
|---|---|---|
| Common | 59 | Protocol base, JSON-RPC, content blocks |
| Server | 59 | Tools, resources, prompts, logging |
| Client | 46 | Sampling, elicitation, roots, tasks |
Common Patterns
Finding a Request/Result Pair
- Check rpc-methods.md for method name
- Look up request type in domain file
- Find corresponding result type
Using Factory Classes
Factories create the correct DTO from discriminator values. See factories.md for patterns.
JSON Data Files
For programmatic access:
data/schema-index.json- Lightweight discovery indexdata/schema-common.json- Common domain typesdata/schema-server.json- Server domain typesdata/schema-client.json- Client domain types
Search Scripts
# Search types by name
./scripts/search-types.sh "Resource"
# Get type details
./scripts/get-type.sh "CallToolRequest"
# Find RPC method
./scripts/find-rpc.sh "tools/call"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?