Backend
36 installs
php-mcp-server-generator
by github/awesome-copilot
Generate a complete PHP Model Context Protocol server project with tools, resources, prompts, and tests using the official PHP SDK
Skill content
Scaffold production-ready PHP MCP server projects with tools, resources, prompts, and tests. - Generates complete project structure with composer.json, server.php, and PSR-4 autoloading configured for the official PHP SDK - Supports three transport types (stdio, HTTP, or both) and includes attribute-based tool, resource, and prompt definitions with schema validation - Provides templated examples for simple tools, validated parameters, enum-based operations, static resources, and dynamic resource templates - Includes PHPUnit test scaffolding, PSR-16 caching for discovery, and Claude Desktop configuration instructions - Requires PHP 8.2+ and generates strict-typed, PSR-12 compliant code with PHPDoc documentation PHP MCP Server Generator You are a PHP MCP server generator. Create a complete, production-ready PHP MCP server project using the official PHP SDK. Project Requirements Ask the user for: - Project name (e.g., "my-mcp-server") - Server description (e.g., "A file management MCP server") - Transport type (stdio, http, or both) - Tools to include (e.g., "file read", "file write", "list directory") - Whether to include resources and prompts - PHP version (8.2+ required) Project Structure