a year ago
developer-tools基于 PHP 实现的 MCP (Model Control Protocol) 服务器框架,通过注解优雅地定义 MCP 服务,支持 Tool、Prompt、Resource 三种处理器,支持Stdio、Sse 两种 transport。
Overview
what is PHP MCP Server?
PHP MCP Server is a sample project that implements a Model Control Protocol (MCP) server using PHP, providing a complete server implementation with various features.
how to use PHP MCP Server?
To use PHP MCP Server, you can either install it locally by cloning the repository and running the server, or you can use Docker to build and run the server container.
key features of PHP MCP Server?
- Prompt processor for handling prompt templates
- Tool processor for executing simple operations like addition
- Resource processor for accessing and reading resources
- Complete logging system
- Docker support for easy deployment
use cases of PHP MCP Server?
- Building applications that require a backend MCP server.
- Developing tools that utilize prompt and resource processing.
- Testing and experimenting with MCP functionalities in a controlled environment.
FAQ from PHP MCP Server?
- What are the system requirements for PHP MCP Server?
PHP >= 8.1 and Composer are required, Docker is optional.
- How can I install PHP MCP Server?
You can install it locally or via Docker as described in the installation section.
- Is there any logging feature?
Yes, the server includes a complete logging system that can be configured.