php-mcp/schema
A PHP package for defining and working with Model Context Protocol (MCP) schemas. It provides typed schema objects and helpers for describing tools, resources, and prompts, making it easier to build and validate MCP servers cleanly in PHP applications.
php-mcp/schema is best treated as a domain contract package, not as a full MCP runtime. It can provide DTOs and enums for MCP request/response payloads inside a Laravel application, helping standardize serialization, validation boundaries, and domain types for tools, resources, prompts, and protocol messages. It should sit behind an application-owned adapter/service layer so Laravel code does not depend directly on package classes everywhere.McpPayloadMapper or McpSchemaValidator, then migrate existing array-based MCP code incrementally. Keep a compatibility shim until contract tests cover all supported message types.How can I help you explore Laravel packages today?