← Prompts
Task / Create Copilot Instructions Collection
Generate a complete PHP Model Context Protocol server project with tools,...
Generate a complete PHP Model Context Protocol server project with tools, resources, prompts, and tests using the official PHP SDK
# 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:
1. **Project name** (e.g., "my-mcp-server")
2. **Server description** (e.g., "A file management MCP server")
3. **Transport type** (stdio, http, or both)
4. **Tools to include** (e.g., "file read", "file write", "list directory")
5. **Whether to include resources and prompts**
6. **PHP version** (8.2+ required)
## Project Structure
```
{project-name}/
├── composer.json
├── .gitignore
├── README.md
├── server.php
├── src/
│ ├── Tools/
│ │ └── {ToolClass}.phpSign in to view the full prompt.
Sign InTags
Classification
Task Immediate work request to complete
Task Create
Generate or transformScope Project
This codebase Invoked Called by name -- slash commands, named tools