Download the PHP package he426100/mcp-sdk-php without Composer
On this page you can find all versions of the php package he426100/mcp-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download he426100/mcp-sdk-php
More information about he426100/mcp-sdk-php
Files in he426100/mcp-sdk-php
Download he426100/mcp-sdk-php
More information about he426100/mcp-sdk-php
Files in he426100/mcp-sdk-php
Vendor he426100
Package mcp-sdk-php
Short Description Model Context Protocol SDK for PHP
License MIT
Package mcp-sdk-php
Short Description Model Context Protocol SDK for PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package mcp-sdk-php
Installation
You can install the package via composer:
Requirements
- PHP 8.1 or higher
- ext-curl
- ext-pcntl (optional, recommended for CLI environments)
- ext-swow (for sse and websocket transport)
Basic Usage
Creating an MCP Server
Here's a complete example of creating an MCP server that provides prompts:
Save this as example_server.php
Using Annotations (Alternative Approach)
Sample Project
Documentation
For detailed information about the Model Context Protocol, visit the official documentation.
Credits
This PHP SDK was developed by:
- Josh Abbott
- he426100
- Claude 3.5 Sonnet (Anthropic AI model)
Additional debugging and refactoring done by Josh Abbott using OpenAI ChatGPT o1 pro mode.
Based on the original Python SDK for the Model Context Protocol.
License
The MIT License (MIT). Please see License File for more information.
All versions of mcp-sdk-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
psr/log Version ^3.0
ext-curl Version *
cboden/ratchet Version ^0.4
monolog/monolog Version ^3.0
symfony/console Version ^6.4
swow/swow Version ^1.5
swoole/ide-helper Version ^6.0
psr/log Version ^3.0
ext-curl Version *
cboden/ratchet Version ^0.4
monolog/monolog Version ^3.0
symfony/console Version ^6.4
swow/swow Version ^1.5
swoole/ide-helper Version ^6.0
The package he426100/mcp-sdk-php contains the following files
Loading the files please wait ....