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:
@@ -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/)
|
||||
|
||||
Reference in New Issue
Block a user