返回 CodeWhale
auth_needs_login.golden.json
根目录 / crates / tui / tests / fixtures / conformance / mcp / auth_needs_login.golden.json
1 {
2 "requests_summary": {
3 "authorization_shapes": [
4 null
5 ],
6 "rpcs": [
7 "initialize"
8 ],
9 "statuses": [
10 401
11 ]
12 },
13 "server_received": [],
14 "steps": [
15 {
16 "op": "boot",
17 "outcome": {
18 "err": "conformance: MCP server <SERVER_URL> rejected the request with 401 Unauthorized; the session is no longer accepted. Re-authorize this server (/mcp login <name>) to continue."
19 }
20 },
21 {
22 "op": "catalog",
23 "tools": [
24 {
25 "allowed_callers": [
26 "direct"
27 ],
28 "defer_loading": false,
29 "description": "Authenticate with MCP server \"conformance\" via OAuth.\n\nThis server requires an OAuth login that has not yet been completed, so its real tools are currently unavailable. Calling this tool starts the authorization flow:\n\n1. A browser window is opened for the user to sign in and approve the Codewhale client, and the exact authorization URL is shown to the user in the session status while this call waits. The same URL is returned in this call's result; if the user reports the browser did not open, show that URL to the user verbatim and ask them to complete the sign-in there.\n2. The call blocks (up to 5 minutes) until the browser flow completes on the local callback listener, is declined, or times out. Do not assume success before the call returns.\n3. On success the server reconnects and its real MCP tools replace this synthetic authenticate tool, becoming callable from the next model request in this session.\n\nTreat the URL as sensitive — do not modify it or strip query parameters. If the flow is declined, cancelled, or times out, the call returns an error; relay it truthfully and suggest `/mcp login conformance` in the TUI or `codewhale mcp login conformance` from a terminal.",
30 "input_schema": {
31 "properties": {},
32 "type": "object"
33 },
34 "name": "mcp_conformance_authenticate"
35 }
36 ]
37 },
38 {
39 "op": "call",
40 "outcome": {
41 "err": {
42 "detail": "Failed to execute tool: MCP tool failed: MCP server 'conformance' requires OAuth login (◆ auth required); call the `mcp_conformance_authenticate` tool to authenticate, or run `/mcp login conformance`",
43 "kind": "execution_failed"
44 }
45 },
46 "tool": "mcp_conformance_echo"
47 }
48 ]
49 }
50
50 lines JSON