Build MCP servers and clients for PHP applications with the official PHP SDK
Use the official Model Context Protocol PHP SDK to expose PHP application capabilities as MCP tools, resources, and prompts for agent workflows.
npx skills add agentskillexchange/skills --skill build-mcp-servers-and-clients-for-php-applications-with-the-official-php-sdk
The official MCP PHP SDK gives PHP teams a concrete way to turn existing application capabilities into agent-callable tools, resources, prompts, and client integrations. Invoke this when an operator needs to connect a PHP business system to MCP-capable agents without rewriting the service in another language. The scope boundary is MCP implementation for PHP servers and clients; it is not a general PHP library listing or a broad MCP explainer.
What this skill actually does
Inputs and prerequisites: PHP, Composer, MCP-compatible host/client.
Setup notes: Install the SDK using the Composer instructions in the repository README, then implement the MCP server or client pattern that matches the PHP application capability being exposed.
Source and verification boundary: use https://github.com/modelcontextprotocol/php-sdk as the canonical reference before running the workflow; keep commands, API calls, CLI usage, and generated outputs reviewable against that upstream source.
Framework fit: publish this as a MCP workflow only when the operator can invoke the documented toolchain directly, rather than treating the upstream project as a generic product listing.