├── .gitignore ├── LICENSE.md ├── README.md ├── _ide_helper.php ├── composer.json ├── composer.lock ├── config └── mcp.php ├── database └── migrations │ ├── 2024_12_18_000001_create_chats_table.php │ ├── 2024_12_18_100000_create_messages_table.php │ ├── 2024_12_18_100001_create_responses_table.php │ ├── 2024_12_18_100002_create_runners_table.php │ └── 2024_12_18_100003_create_logs_table.php ├── src ├── Contracts │ ├── LoggerInterface.php │ ├── McpServerInterface.php │ └── McpToolInterface.php ├── Enums │ ├── LogLevel.php │ ├── MessageRole.php │ ├── ResponseType.php │ └── RunnerStatus.php ├── Events │ ├── MessageCreatedEvent.php │ ├── MessageErrorEvent.php │ └── MessageProcessedEvent.php ├── Facades │ └── McpClient.php ├── Jobs │ ├── GenerateChatTitle.php │ └── RunTool.php ├── McpClient.php ├── McpClientServiceProvider.php ├── Models │ ├── Chat.php │ ├── Log.php │ ├── Message.php │ ├── Response.php │ └── Runner.php ├── Observers │ └── MessageObserver.php ├── Servers │ ├── BaseMcpApiServer.php │ └── BaseMcpServer.php ├── Tools │ └── ApiToolExecutor.php └── Traits │ └── HasUuid.php └── tests ├── Feature ├── McpClientTest.php └── Models │ ├── ChatTest.php │ └── MessageTest.php ├── TestCase.php └── Unit └── Tools └── ApiToolExecutorTest.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/README.md -------------------------------------------------------------------------------- /_ide_helper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/_ide_helper.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/composer.lock -------------------------------------------------------------------------------- /config/mcp.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/config/mcp.php -------------------------------------------------------------------------------- /database/migrations/2024_12_18_000001_create_chats_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/database/migrations/2024_12_18_000001_create_chats_table.php -------------------------------------------------------------------------------- /database/migrations/2024_12_18_100000_create_messages_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/database/migrations/2024_12_18_100000_create_messages_table.php -------------------------------------------------------------------------------- /database/migrations/2024_12_18_100001_create_responses_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/database/migrations/2024_12_18_100001_create_responses_table.php -------------------------------------------------------------------------------- /database/migrations/2024_12_18_100002_create_runners_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/database/migrations/2024_12_18_100002_create_runners_table.php -------------------------------------------------------------------------------- /database/migrations/2024_12_18_100003_create_logs_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/database/migrations/2024_12_18_100003_create_logs_table.php -------------------------------------------------------------------------------- /src/Contracts/LoggerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Contracts/LoggerInterface.php -------------------------------------------------------------------------------- /src/Contracts/McpServerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Contracts/McpServerInterface.php -------------------------------------------------------------------------------- /src/Contracts/McpToolInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Contracts/McpToolInterface.php -------------------------------------------------------------------------------- /src/Enums/LogLevel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Enums/LogLevel.php -------------------------------------------------------------------------------- /src/Enums/MessageRole.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Enums/MessageRole.php -------------------------------------------------------------------------------- /src/Enums/ResponseType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Enums/ResponseType.php -------------------------------------------------------------------------------- /src/Enums/RunnerStatus.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Enums/RunnerStatus.php -------------------------------------------------------------------------------- /src/Events/MessageCreatedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Events/MessageCreatedEvent.php -------------------------------------------------------------------------------- /src/Events/MessageErrorEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Events/MessageErrorEvent.php -------------------------------------------------------------------------------- /src/Events/MessageProcessedEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Events/MessageProcessedEvent.php -------------------------------------------------------------------------------- /src/Facades/McpClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Facades/McpClient.php -------------------------------------------------------------------------------- /src/Jobs/GenerateChatTitle.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Jobs/GenerateChatTitle.php -------------------------------------------------------------------------------- /src/Jobs/RunTool.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Jobs/RunTool.php -------------------------------------------------------------------------------- /src/McpClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/McpClient.php -------------------------------------------------------------------------------- /src/McpClientServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/McpClientServiceProvider.php -------------------------------------------------------------------------------- /src/Models/Chat.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Models/Chat.php -------------------------------------------------------------------------------- /src/Models/Log.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Models/Log.php -------------------------------------------------------------------------------- /src/Models/Message.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Models/Message.php -------------------------------------------------------------------------------- /src/Models/Response.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Models/Response.php -------------------------------------------------------------------------------- /src/Models/Runner.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Models/Runner.php -------------------------------------------------------------------------------- /src/Observers/MessageObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Observers/MessageObserver.php -------------------------------------------------------------------------------- /src/Servers/BaseMcpApiServer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Servers/BaseMcpApiServer.php -------------------------------------------------------------------------------- /src/Servers/BaseMcpServer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Servers/BaseMcpServer.php -------------------------------------------------------------------------------- /src/Tools/ApiToolExecutor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Tools/ApiToolExecutor.php -------------------------------------------------------------------------------- /src/Traits/HasUuid.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/src/Traits/HasUuid.php -------------------------------------------------------------------------------- /tests/Feature/McpClientTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/tests/Feature/McpClientTest.php -------------------------------------------------------------------------------- /tests/Feature/Models/ChatTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/tests/Feature/Models/ChatTest.php -------------------------------------------------------------------------------- /tests/Feature/Models/MessageTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/tests/Feature/Models/MessageTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/Unit/Tools/ApiToolExecutorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scriptoshi/laravel-mcp-client/HEAD/tests/Unit/Tools/ApiToolExecutorTest.php --------------------------------------------------------------------------------