nexusphp / mcp-extensions
PHP SDK for the MCP specification - official extensions component.
Fund package maintenance!
Requires
- php: ^8.3
- amphp/amp: ^3.1.1
- amphp/http-client: ^5.0
- nexusphp/assert: ^1.5
- nexusphp/clock: ^1.0
- nexusphp/mcp-client: v1.0.0
- nexusphp/mcp-core: v1.0.0
- nexusphp/mcp-server: v1.0.0
- psr/log: ^3.0
Requires (Dev)
None
Suggests
- firebase/php-jwt: Required with ClientCredentialsGrant (^7.0).
Provides
None
Conflicts
None
Replaces
None
README
The official MCP extensions for the Nexus MCP SDK, each with its server and client halves: tasks, MCP Apps, and the OAuth extension grants.
Important
This repository is a read-only subtree split of NexusPHP/mcp. Open issues and pull requests there. Anything opened here is closed automatically with the same pointer.
Installation
composer require nexusphp/mcp-extensions
This package depends on both nexusphp/mcp-server and nexusphp/mcp-client, since every extension
ships both halves. The umbrella nexusphp/mcp includes it.
What is inside
| Namespace | Extension |
|---|---|
Nexus\Mcp\Extension\Tasks |
Long-running tool calls brokered into polled tasks (SEP-2663) |
Nexus\Mcp\Extension\Apps |
ui:// views linked to tools (SEP-1865) |
Nexus\Mcp\Extension\Auth |
Client credentials (SEP-1046) and enterprise-managed authorization (SEP-990) |
Each extension keeps its capability identifier and protocol literals on a vocabulary class (Tasks,
Apps, Auth\ClientCredentials\ClientCredentials, Auth\Enterprise\EnterpriseAuthorization), with
Server and Client subnamespaces for the two halves.
Documentation
- Server guides: Extensions, Tasks, Apps.
- Client guides: Extensions, Tasks, Apps.
- OAuth extension grants.
- API reference.
- Changelog and versioning policy, shared by every component.
License
Released under the MIT License.