rasuvaeff/yii3-mcp
The core package: MCP server integration for Yii3 over the official mcp/sdk — a PSR-15 Streamable HTTP endpoint, a stdio transport, and a DI-resolved tool registry.
bash
composer require rasuvaeff/yii3-mcp| Namespace | Rasuvaeff\Yii3Mcp |
| Repository | github.com/rasuvaeff/yii3-mcp |
| Requirements | PHP 8.3 – 8.5, mcp/sdk ~0.7.0, ext-fileinfo |
Where to start
- What is MCP and Getting started
- Architecture — how
McpServerFactoryassembles the server - Capabilities, Security, Interceptors, Visibility
- OpenAPI bridge, MCP Apps, Multi-tenant serving
- Operations —
mcp:list/mcp:doctor - Framework-agnostic usage
Key classes
| Class | Role |
|---|---|
McpServerFactory | List of tool FQCNs → configured SDK Server. |
McpAction | PSR-15 handler running the Streamable HTTP transport; enforces session ownership. |
SharedSecretMiddleware | Fail-closed shared-secret guard; resolves client identity. |
McpServeCommand | mcp:serve — stdio transport. |
McpListCommand | mcp:list — introspection. |
McpDoctorCommand | mcp:doctor — configuration health check. |
Testing\McpTester | In-process test client. |
Testing\SchemaSnapshot | Committed-snapshot contract-drift guard. |
See the full API reference for every @api class.
Bridges
Three companion packages extend this core without any special-casing — see Bridges: overview: audit log, RBAC, telemetry.
Roadmap
See Roadmap for planned work beyond v1.0/v2.0, in dependency order.