Allow MCP handshake methods without Authorization.

Claude probes initialize/tools/list before sending the bearer; only tools/call stays 401-protected.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-11-02 22:46:16 -06:00
co-authored by Cursor
parent ab1d6acb2d
commit e83ef1c6c2
2 changed files with 6 additions and 5 deletions
+1
View File
@@ -84,6 +84,7 @@ test('aigen routes exist, stay on the studio-2 enqueue path, and 404 on xAIGen',
assert.match(mcp, /tools\/list/)
assert.match(mcp, /tools\/call/)
assert.match(mcp, /resolveMcpProtocolVersion/)
assert.match(mcp, /tools\/call[\s\S]*mcpBearerOk|mcpBearerOk[\s\S]*tools\/call/)
assert.doesNotMatch(mcp, /405.*GET|Method Not Allowed[\s\S]*GET/)
assert.match(mcpUtil, /aigen_engines/)
assert.match(mcpUtil, /aigen_generate/)