What are the prerequisites for using this SDK?
PHP 8.1 or higher and Composer for dependency management are required.
@james2037
基本信息
A PHP Server Framework for Model Context Protocol (MCP)
工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
This project provides a PHP implementation of the Model Context Protocol (MCP), enabling you to build servers that can provide context (data and tools) to Large Language Models (LLMs). It is designed for PHP developers who want to expose custom functionalities and data to LLMs using the standardized MCP protocol.
Install the SDK via Composer with composer require james2037/mcp-php-server. Requires PHP 8.1 or higher. Define tools and resources using PHP attributes, then instantiate a Server, add capabilities (ToolsCapability, ResourcesCapability), connect a transport (StdioTransport or HttpTransport), and call $server->run(). Example scripts are provided in the examples/ directory.
PHP 8.1 or higher and Composer for dependency management are required.
The SDK provides StdioTransport for command-line based servers and HttpTransport for HTTP-based servers (compatible with standard PHP web server environments like Apache/Nginx with PHP-FPM/mod_php).
For development, start PHP’s built-in server: `php -S localhost:8000 examples/http_server.php`. For production, configure your web server (e.g., Nginx or Apache) to route requests to the `http_server.php` script.
Send JSON-RPC requests via curl, for example: `curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"echo","arguments":{"message":"Hello"}},"id":1}' http://localhost:8000/`.
Use PHP attributes such as `#[Tool]`, `#[Parameter]`, and `#[ResourceUri]` on classes that extend the base Tool or Resource classes.

ArtiBot Cloud MCP (Zhijiangyun 智匠云) — cloud MCP server for robot manipulation data & GPU workloads. 15 tools: robot fleet management, data collection & video recording, post-processing pipelines, and benchmark evaluation

AdsMCP is the MCP entry point into the Adgentek Ad Server. Call ads_serve with the conversation context and get back a native ad matched to user intent, or no ad when one does not fit. Publishers earn on a CPM basis. Fre

Testiny is a test case management platform. Its remote MCP server lets AI assistants such as Claude, ChatGPT, GitHub Copilot, Cursor and other MCP clients work directly with your Testiny data. Browse and search projects,
CronWatch records every run of your scheduled jobs in your own database, and speaks up when one is missed, fails, gets stuck, runs slow or costs too much. CronWatch is free and open-source.

评论