返回 CodeWhale
auth_bearer_never_recorded.golden.json
根目录 / crates / tui / tests / fixtures / conformance / mcp / auth_bearer_never_recorded.golden.json
1 {
2 "server_received": [
3 {
4 "arguments": {},
5 "method": "tools/call",
6 "name": "echo"
7 },
8 {
9 "arguments": {},
10 "method": "tools/call",
11 "name": "echo_credential"
12 },
13 {
14 "arguments": {},
15 "method": "tools/call",
16 "name": "revoked"
17 }
18 ],
19 "steps": [
20 {
21 "op": "boot",
22 "outcome": "ok"
23 },
24 {
25 "op": "catalog",
26 "tools": [
27 {
28 "allowed_callers": [
29 "direct"
30 ],
31 "defer_loading": false,
32 "description": "",
33 "input_schema": {
34 "properties": {},
35 "type": "object"
36 },
37 "name": "mcp_conformance_echo"
38 },
39 {
40 "allowed_callers": [
41 "direct"
42 ],
43 "defer_loading": false,
44 "description": "A buggy server: answers 500 and repeats the Authorization header.",
45 "input_schema": {
46 "properties": {},
47 "type": "object"
48 },
49 "name": "mcp_conformance_echo_credential"
50 },
51 {
52 "allowed_callers": [
53 "direct"
54 ],
55 "defer_loading": false,
56 "description": "The token stops being accepted mid-session.",
57 "input_schema": {
58 "properties": {},
59 "type": "object"
60 },
61 "name": "mcp_conformance_revoked"
62 }
63 ]
64 },
65 {
66 "op": "call",
67 "outcome": {
68 "ok": {
69 "content": {
70 "content": [
71 {
72 "text": "authenticated",
73 "type": "text"
74 }
75 ]
76 },
77 "content_blocks": [],
78 "metadata": null,
79 "success": true
80 }
81 },
82 "tool": "mcp_conformance_echo"
83 },
84 {
85 "op": "call",
86 "outcome": {
87 "err": {
88 "detail": "Failed to execute tool: MCP tool failed: MCP Streamable HTTP rejected (transport=http url=<SERVER_URL> status=500 Internal Server Error): upstream failure while handling Authorization: Bearer ***",
89 "kind": "execution_failed"
90 }
91 },
92 "tool": "mcp_conformance_echo_credential"
93 },
94 {
95 "op": "call",
96 "outcome": {
97 "ok": {
98 "content": "MCP tool failed: MCP server 'conformance' requires authentication (◆ auth required); MCP server 'conformance' authenticates with the environment variable CODEWHALE_CONFORMANCE_MCP_TOKEN; the server rejected that credential. Correct it, then run `/mcp reload`.",
99 "content_blocks": [],
100 "metadata": {
101 "mcp_catalog_changed": true
102 },
103 "success": false
104 }
105 },
106 "tool": "mcp_conformance_revoked"
107 },
108 {
109 "op": "catalog",
110 "tools": []
111 }
112 ]
113 }
114
114 lines JSON