yamayuski/php-mcp-server-sdk

Model Context Protocol Server SDK for PHP

0.1.1 2025-05-06 05:58 UTC

This package is auto-updated.

Last update: 2025-05-06 06:02:12 UTC


README

Requirements

  • PHP 8.2+

Overview

  • Build MCP servers that expose resources, prompts and tools on PHP
  • Use standard transports like stdio and Streamable HTTP(SSE)
  • Handle all MCP protocol messages and lifecycle events

Installation

$ composer require yamayuski/php-mcp-server-sdk

Development

You need Development containers with vscode or PhpStorm

$ composer install

# Unit test
$ composer test

# Inspector test
$ ./start-inspector.sh

LICENSE

Under Apache-2.0.