mcpField
M
mcp-php-schema

mcp-php-schema

github.com/wordpressDevelopment1539 installsUpdated 7w ago
Repository

About mcp-php-schema

mcp-php-schema is a reference for MCP PHP types and RPC methods, aimed at PHP developers. It organizes 164 types across common, server, and client domains, with JSON data files and scripts for querying types and methods.

Key features

  1. 01Covers common, server, and client types
  2. 02Maps RPC requests to results
  3. 03Documents factory classes
  4. 04Provides schema data as JSON
  5. 05Includes type and RPC search scripts

Use cases

  1. 01Look up MCP type definitions
  2. 02Check request and result types for an RPC method
  3. 03Read schemas programmatically from JSON files
  4. 04Search types or methods from the command line

MCP support

The project documents MCP protocol types, JSON-RPC, and server and client structures. Its coverage includes tools, resources, prompts, sampling, and roots.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/wordpress/php-mcp-schema --skill mcp-php-schema

After installing, type/mcp-php-schemain Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

data/
schema-index.json
schema-server.json
schema-client.json
schema-common.json
reference/
factories.md
server.md
client.md
common.md
rpc-methods.md
overview.md
scripts/
find-rpc.sh
search-types.sh
get-type.sh

Details

From the project README

MCP PHP Schema Reference

Quick Navigation

Schema Structure

3 domains, 17 subdomains, 164 types total.

Domains Overview
DomainTypesPurpose
Common59Protocol base, JSON-RPC, content blocks
Server59Tools, resources, prompts, logging
Client46Sampling, elicitation, roots, tasks

Common Patterns

Finding a Request/Result Pair
  1. Check rpc-methods.md for method name
  2. Look up request type in domain file
  3. 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 index
  • data/schema-common.json - Common domain types
  • data/schema-server.json - Server domain types
  • data/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"

Comments

Markdown supported