mcp-php-schema

Navigate MCP PHP schema types and RPC method mappings.

14|5|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/WordPress/php-mcp-schema --skill mcp-php-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-php-schema
Source: https://github.com/WordPress/php-mcp-schema/tree/main/skill
Command: npx skills add https://github.com/WordPress/php-mcp-schema --skill mcp-php-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Provides a clear, navigable reference for the Model Context Protocol schema implemented in PHP so developers can quickly find type definitions, RPC methods, and factory mappings without reading the entire codebase.

Core Features & Use Cases

  • Type discovery: Human-readable domain references and JSON data files list classes, unions, namespaces, and properties for 164 types across Common, Server, and Client domains.
  • RPC mapping & factories: Indexed RPC method table and factory mappings make it easy to find request/result pairs and discriminator-based object instantiation patterns.
  • Search tooling: Helper shell scripts enable programmatic lookup of types and RPC methods for integration into development workflows.
  • Use Case: Integrate the schema into tooling to validate JSON-RPC messages, map incoming RPC requests to DTOs, or locate the correct DTO namespace when building MCP-compatible clients and servers.

Quick Start

Open the MCP PHP schema and use the included scripts to find the DTO details for CallToolRequest.

Frequently Asked Questions about mcp-php-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find PHP DTOs and RPC method mappings for the Model Context Protocol schema?

To find PHP DTOs and RPC method mappings for the Model Context Protocol schema, use the provided shell scripts and jq to search human-readable markdown references and programmatic JSON schema files, locating 164 types across Common, Server, and Client domains.

What is the best way to locate factory discriminators and type relationships in an MCP PHP codebase?

Locating factory discriminators and type relationships in an MCP PHP codebase is done by navigating indexed factory mappings and JSON data files, which provide discriminator-based object instantiation patterns and class unions without reading the entire codebase.

How do I search for a specific MCP RPC request and result pair like CallToolRequest using jq?

To search for an MCP RPC request and result pair like CallToolRequest using jq, open the MCP PHP schema and run the included helper shell scripts to programmatically query the indexed RPC method table and retrieve the corresponding DTO details.

Do I need jq installed to use the MCP PHP schema search scripts?

Yes, you need jq installed to use the MCP PHP schema search scripts, as the shell scripts rely on jq to programmatically query the JSON schema files and lookup specific types and RPC methods for development workflow integration.

Can I use these schema references to validate JSON-RPC messages when building MCP clients and servers?

Yes, you can use these schema references to validate JSON-RPC messages when building MCP clients and servers, because the programmatic JSON schema files map incoming RPC requests to DTOs and define the type relationships needed for accurate message validation.

What domains are covered by the MCP PHP schema type definitions?

The MCP PHP schema type definitions cover Common, Server, and Client domains, listing classes, unions, namespaces, and properties for 164 types to provide complete discovery and implementation guidance for developers.