The client half of the Nexus MCP SDK: a ClientBuilder, a
Client with one typed method per MCP capability, transports for spawned stdio servers and
Streamable HTTP endpoints, and the OAuth authorization flow with pluggable token stores.
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.
composer require nexusphp/mcp-clientThis pulls in nexusphp/mcp-core. The umbrella nexusphp/mcp ships the server and the official
extensions alongside it.
| Namespace | Contents |
|---|---|
Nexus\Mcp\Client |
ClientBuilder, Client, and ClientContext |
Nexus\Mcp\Client\Transport |
StdioClientTransport, StreamableHttpClientTransport, and SupervisedTransport |
Nexus\Mcp\Client\Auth |
The authorization coordinator, grant strategies, PKCE, and the token and registration stores |
Nexus\Mcp\Client\Dispatch and Nexus\Mcp\Client\Handler |
Request deadlines, progress, and the notification handler registry |
Nexus\Mcp\Client\Subscription |
The subscriptions/listen consumer |
Nexus\Mcp\Client\Extension and Nexus\Mcp\Client\Time |
The outbound extension gate and the cancellable delay |
- Getting started and the Client API overview.
- Transports and the client authorization guide.
- API reference.
- Changelog and versioning policy, shared by every component.
Released under the MIT License.