MCP.so
登录

PHP MCP Server sdk

@yamayuski

基本信息

分类

开发工具

许可证

Apache-2.0 license

传输方式

stdio

作者

yamayuski

关于 PHP MCP Server sdk

PHP MCP Server SDK library

PHP MCP Server sdk 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

PHP MCP Server sdk 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is PHP MCP Server sdk?

PHP MCP Server sdk is a library for building MCP (Model Context Protocol) servers in PHP 8.2+. It exposes resources, prompts, and tools over standard transports (stdio and Streamable HTTP/SSE) and handles all MCP protocol messages and lifecycle events. It is intended for PHP developers who need to create MCP-compliant servers that can integrate with MCP clients.

How to use PHP MCP Server sdk?

Install the SDK via Composer: composer require yamayuski/php-mcp-server-sdk. Then write your server implementation to expose resources, prompts, and tools. The SDK manages all MCP protocol message handling and lifecycle events. For development, use Dev Containers with VS Code or PhpStorm; run composer install, then composer test for unit tests or ./start-inspector.sh for inspector testing.

Key features of PHP MCP Server sdk

  • Build MCP servers that expose resources, prompts, and tools
  • Use stdio or Streamable HTTP (SSE) transports
  • Handle all MCP protocol messages and lifecycle events
  • Requires PHP 8.2+
  • Licensed under Apache-2.0

Use cases of PHP MCP Server sdk

  • Create a custom MCP server for your application's data and tools
  • Build a bridge between existing PHP services and MCP clients
  • Implement a server that provides resources and prompts via HTTP streaming

常见问题

1

What PHP version is required?

PHP 8.2 or higher.

2

What transports does the SDK support?

It supports stdio and Streamable HTTP (SSE) transports.

3

How do I install the SDK?

Use Composer: `composer require yamayuski/php-mcp-server-sdk`.

4

Is there a way to test my server?

Yes, run `composer test` for unit tests or `./start-inspector.sh` for inspector testing.

5

What license does the SDK use?

It is licensed under the Apache-2.0 license.

评论

开发工具 分类下的更多 MCP 服务器