Download the PHP package monkeyscloud/monkeyslegion-mcp without Composer
On this page you can find all versions of the php package monkeyscloud/monkeyslegion-mcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download monkeyscloud/monkeyslegion-mcp
More information about monkeyscloud/monkeyslegion-mcp
Files in monkeyscloud/monkeyslegion-mcp
Download monkeyscloud/monkeyslegion-mcp
More information about monkeyscloud/monkeyslegion-mcp
Files in monkeyscloud/monkeyslegion-mcp
Vendor monkeyscloud
Package monkeyslegion-mcp
Short Description Production-grade MCP (Model Context Protocol) server and client for PHP 8.4 with attribute-based tool registration, stdio + Streamable HTTP transports, and JSON-RPC 2.0 engine.
License MIT
Package monkeyslegion-mcp
Short Description Production-grade MCP (Model Context Protocol) server and client for PHP 8.4 with attribute-based tool registration, stdio + Streamable HTTP transports, and JSON-RPC 2.0 engine.
License MIT
Please rate this library. Is it a good library?
Informations about the package monkeyslegion-mcp
MonkeysLegion MCP
Production-grade Model Context Protocol (MCP) server and client for PHP 8.4+.
MonkeysLegion ships native MCP support — the first PHP framework to do so.
Features
- JSON-RPC 2.0 engine with full batch support
- Three MCP primitives: Tools, Resources, and Prompts
- Attribute-based discovery:
#[McpTool],#[McpResource],#[McpPrompt],#[McpParam] - Two transports: Stdio (local AI tools) and Streamable HTTP (remote)
- PSR-15 Middleware: Drop-in HTTP integration for any PSR-15 framework
- DI Provider: Bootstrap the full MCP stack from MLC configuration
- MCP Client: HTTP and Stdio clients for connecting to external MCP servers
- Schema generation from PHP method signatures via reflection
- Schema validation for tool arguments (types, enums, ranges)
- Protocol negotiation:
2024-11-05and2025-03-26 - Session management via
MCP-Session-Idheader - PSR-3/PSR-7/PSR-15 integration
Installation
Requirements
- PHP 8.4+
psr/log ^3.0psr/http-message ^2.0psr/http-server-handler ^1.0psr/http-server-middleware ^1.0ext-curl(for HTTP client transport, optional)
Quick Start
1. Create an MCP Server
2. Register Tools
3. Attribute-Based Registration (Recommended)
Scan and register:
4. Choose a Transport
Stdio (Local AI Tools — Claude Desktop, etc.)
Streamable HTTP (Remote)
Or use it directly in a controller:
PSR-15 Middleware (Recommended for Frameworks)
5. Resources & Templates
MCP Client
HTTP Client
Stdio Client (Subprocess)
MLC Configuration
Claude Desktop Integration
Add to your Claude Desktop config (claude_desktop_config.json):
Create mcp-server.php:
Protocol Support
| Feature | 2024-11-05 | 2025-03-26 |
|---|---|---|
| Tools | ✅ | ✅ |
| Resources | ✅ | ✅ |
| Prompts | ❌ | ✅ |
| Streamable HTTP | ❌ | ✅ |
| Session management | ❌ | ✅ |
| Stdio transport | ✅ | ✅ |
Testing
196 tests, 354 assertions covering:
- JSON-RPC 2.0 engine (messages, responses, errors)
- All MCP handlers (initialize, ping, tools, resources, prompts)
- Schema generation and validation
- Attribute scanning and discovery
- PSR-15 middleware (routing, headers, POST/GET/DELETE)
- DI provider (factories, singletons, config, discovery)
- Stdio transport with in-memory streams
- Full server integration
License
MIT — see LICENSE.
All versions of monkeyslegion-mcp with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^3.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^3.0
The package monkeyscloud/monkeyslegion-mcp contains the following files
Loading the files please wait ...