返回 CodeWhale
auth_needs_login.case.json
根目录 / crates / tui / tests / fixtures / conformance / mcp / auth_needs_login.case.json
1 {
2 "description": "A URL server that answers 401 to initialize and no credential is configured. Pins Rust McpPool::note_connect_failure / error_needs_oauth_login / to_api_tools: boot reports the rejection with the /mcp login recovery, the server lands in the needs-auth state, the catalog offers exactly the synthetic mcp_<server>_authenticate tool, and a call to one of the server's real tool names fails with the auth-required hint instead of a bare unknown-tool error. Only unauthenticated initialize POSTs reach the server (the summary does not pin how many connect attempts the call makes).",
3 "server_name": "conformance",
4 "expect_boot": "error",
5 "record_requests": "summary",
6 "server": {
7 "initialize": {
8 "http": {
9 "status": 401,
10 "headers": {
11 "WWW-Authenticate": "Bearer realm=\"conformance\""
12 },
13 "body": "{\"error\":\"unauthorized\"}"
14 }
15 }
16 },
17 "steps": [
18 {
19 "op": "catalog"
20 },
21 {
22 "op": "call",
23 "tool": "mcp_conformance_echo",
24 "input": {}
25 }
26 ]
27 }
28
28 lines JSON