Add MCP Client#149
Conversation
|
@pushpak1300 This is fantastic! We're in the marketing analytics space where GA, PostHog, Amplitude, MS Clarity etc all have first-party MCP servers and we need our Laravel app to be able to discover and call their tools directly. This opens up tonnes of potential for AI agent orchestration on Laravel ❤️ |
# Conflicts: # config/mcp.php # src/Facades/Mcp.php # src/Server/Transport/JsonRpcResponse.php
|
will this help in integrating other MCPs in our mcp? like integrate some tools from some other mcp in our mcp tools ? |
|
@pushpak1300 thank you, this is the missing piece for MCP, do you plan to merge this soon? How this integrates with Laravel ai sdk with agents? |
|
I'm getting an error when smoke testing this branch: I don't have this problem if I disable the cache, or the tool call is only used once (i.e., when the cache is filled). But if the tool call needs to be retrieved from the cache, I get this error. Does it make sense to cache the raw tool definitions and rehydrate ClientTool on read? |
# Conflicts: # src/Facades/Mcp.php # src/Server/McpServiceProvider.php
Usage
1. Configure a server connection
In
config/mcp.php:2. Fetch tools
3. Call a tool
4. Other client methods
5. Protocol version
The client sends
protocol_versionduring the initialize handshake. Defaults to'2025-11-25'. Override in config: