Skip to content

Commit 1dbac58

Browse files
author
micha
committed
Fix clientId parameter inconsistency in SSE endpoint
- Changed route parameter from 'clientId' to 'client_id' in McpController line 104 - This fixes the inconsistency where the Laravel controller expects 'client_id' but the SSE endpoint was generating URLs with 'clientId' - Ensures consistency with OAuth standards and MCP client expectations
1 parent 6c7e399 commit 1dbac58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/McpController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function handleSse(Request $request): Response
101101
@set_time_limit(0);
102102

103103
try {
104-
$postEndpointUri = route('mcp.message', ['clientId' => $clientId], false);
104+
$postEndpointUri = route('mcp.message', ['client_id' => $clientId], false);
105105

106106
$this->sendSseEvent('endpoint', $postEndpointUri, "mcp-endpoint-{$clientId}");
107107
} catch (Throwable $e) {

0 commit comments

Comments
 (0)