├── .editorconfig ├── LICENSE ├── Makefile ├── README.md ├── composer.json └── src ├── Capability ├── Prompt │ ├── CollectionInterface.php │ ├── IdentifierInterface.php │ ├── MetadataInterface.php │ ├── PromptGet.php │ ├── PromptGetResult.php │ ├── PromptGetResultMessages.php │ └── PromptGetterInterface.php ├── PromptChain.php ├── Resource │ ├── CollectionInterface.php │ ├── IdentifierInterface.php │ ├── MetadataInterface.php │ ├── ResourceRead.php │ ├── ResourceReadResult.php │ └── ResourceReaderInterface.php ├── ResourceChain.php ├── Tool │ ├── CollectionInterface.php │ ├── IdentifierInterface.php │ ├── MetadataInterface.php │ ├── ToolCall.php │ ├── ToolCallResult.php │ ├── ToolCollectionInterface.php │ └── ToolExecutorInterface.php └── ToolChain.php ├── Exception ├── ExceptionInterface.php ├── NotFoundExceptionInterface.php ├── PromptGetException.php ├── PromptNotFoundException.php ├── ResourceNotFoundException.php ├── ResourceReadException.php ├── ToolExecutionException.php └── ToolNotFoundException.php ├── Message ├── Error.php ├── Factory.php ├── Notification.php ├── Request.php └── Response.php ├── Server.php └── Server ├── JsonRpcHandler.php ├── NotificationHandler ├── BaseNotificationHandler.php └── InitializedHandler.php ├── NotificationHandlerInterface.php ├── RequestHandler ├── BaseRequestHandler.php ├── InitializeHandler.php ├── PingHandler.php ├── PromptGetHandler.php ├── PromptListHandler.php ├── ResourceListHandler.php ├── ResourceReadHandler.php ├── ToolCallHandler.php └── ToolListHandler.php ├── RequestHandlerInterface.php ├── Transport ├── Sse │ ├── Store │ │ └── CachePoolStore.php │ ├── StoreInterface.php │ └── StreamTransport.php └── Stdio │ └── SymfonyConsoleTransport.php └── TransportInterface.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/.editorconfig -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/composer.json -------------------------------------------------------------------------------- /src/Capability/Prompt/CollectionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Prompt/CollectionInterface.php -------------------------------------------------------------------------------- /src/Capability/Prompt/IdentifierInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Prompt/IdentifierInterface.php -------------------------------------------------------------------------------- /src/Capability/Prompt/MetadataInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Prompt/MetadataInterface.php -------------------------------------------------------------------------------- /src/Capability/Prompt/PromptGet.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Prompt/PromptGet.php -------------------------------------------------------------------------------- /src/Capability/Prompt/PromptGetResult.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Prompt/PromptGetResult.php -------------------------------------------------------------------------------- /src/Capability/Prompt/PromptGetResultMessages.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Prompt/PromptGetResultMessages.php -------------------------------------------------------------------------------- /src/Capability/Prompt/PromptGetterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Prompt/PromptGetterInterface.php -------------------------------------------------------------------------------- /src/Capability/PromptChain.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/PromptChain.php -------------------------------------------------------------------------------- /src/Capability/Resource/CollectionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Resource/CollectionInterface.php -------------------------------------------------------------------------------- /src/Capability/Resource/IdentifierInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Resource/IdentifierInterface.php -------------------------------------------------------------------------------- /src/Capability/Resource/MetadataInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Resource/MetadataInterface.php -------------------------------------------------------------------------------- /src/Capability/Resource/ResourceRead.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Resource/ResourceRead.php -------------------------------------------------------------------------------- /src/Capability/Resource/ResourceReadResult.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Resource/ResourceReadResult.php -------------------------------------------------------------------------------- /src/Capability/Resource/ResourceReaderInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Resource/ResourceReaderInterface.php -------------------------------------------------------------------------------- /src/Capability/ResourceChain.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/ResourceChain.php -------------------------------------------------------------------------------- /src/Capability/Tool/CollectionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Tool/CollectionInterface.php -------------------------------------------------------------------------------- /src/Capability/Tool/IdentifierInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Tool/IdentifierInterface.php -------------------------------------------------------------------------------- /src/Capability/Tool/MetadataInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Tool/MetadataInterface.php -------------------------------------------------------------------------------- /src/Capability/Tool/ToolCall.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Tool/ToolCall.php -------------------------------------------------------------------------------- /src/Capability/Tool/ToolCallResult.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Tool/ToolCallResult.php -------------------------------------------------------------------------------- /src/Capability/Tool/ToolCollectionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Tool/ToolCollectionInterface.php -------------------------------------------------------------------------------- /src/Capability/Tool/ToolExecutorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/Tool/ToolExecutorInterface.php -------------------------------------------------------------------------------- /src/Capability/ToolChain.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Capability/ToolChain.php -------------------------------------------------------------------------------- /src/Exception/ExceptionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Exception/ExceptionInterface.php -------------------------------------------------------------------------------- /src/Exception/NotFoundExceptionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Exception/NotFoundExceptionInterface.php -------------------------------------------------------------------------------- /src/Exception/PromptGetException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Exception/PromptGetException.php -------------------------------------------------------------------------------- /src/Exception/PromptNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Exception/PromptNotFoundException.php -------------------------------------------------------------------------------- /src/Exception/ResourceNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Exception/ResourceNotFoundException.php -------------------------------------------------------------------------------- /src/Exception/ResourceReadException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Exception/ResourceReadException.php -------------------------------------------------------------------------------- /src/Exception/ToolExecutionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Exception/ToolExecutionException.php -------------------------------------------------------------------------------- /src/Exception/ToolNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Exception/ToolNotFoundException.php -------------------------------------------------------------------------------- /src/Message/Error.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Message/Error.php -------------------------------------------------------------------------------- /src/Message/Factory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Message/Factory.php -------------------------------------------------------------------------------- /src/Message/Notification.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Message/Notification.php -------------------------------------------------------------------------------- /src/Message/Request.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Message/Request.php -------------------------------------------------------------------------------- /src/Message/Response.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Message/Response.php -------------------------------------------------------------------------------- /src/Server.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server.php -------------------------------------------------------------------------------- /src/Server/JsonRpcHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/JsonRpcHandler.php -------------------------------------------------------------------------------- /src/Server/NotificationHandler/BaseNotificationHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/NotificationHandler/BaseNotificationHandler.php -------------------------------------------------------------------------------- /src/Server/NotificationHandler/InitializedHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/NotificationHandler/InitializedHandler.php -------------------------------------------------------------------------------- /src/Server/NotificationHandlerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/NotificationHandlerInterface.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/BaseRequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/BaseRequestHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/InitializeHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/InitializeHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/PingHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/PingHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/PromptGetHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/PromptGetHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/PromptListHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/PromptListHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/ResourceListHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/ResourceListHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/ResourceReadHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/ResourceReadHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/ToolCallHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/ToolCallHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandler/ToolListHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandler/ToolListHandler.php -------------------------------------------------------------------------------- /src/Server/RequestHandlerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/RequestHandlerInterface.php -------------------------------------------------------------------------------- /src/Server/Transport/Sse/Store/CachePoolStore.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/Transport/Sse/Store/CachePoolStore.php -------------------------------------------------------------------------------- /src/Server/Transport/Sse/StoreInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/Transport/Sse/StoreInterface.php -------------------------------------------------------------------------------- /src/Server/Transport/Sse/StreamTransport.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/Transport/Sse/StreamTransport.php -------------------------------------------------------------------------------- /src/Server/Transport/Stdio/SymfonyConsoleTransport.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/Transport/Stdio/SymfonyConsoleTransport.php -------------------------------------------------------------------------------- /src/Server/TransportInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-llm/mcp-sdk/HEAD/src/Server/TransportInterface.php --------------------------------------------------------------------------------