返回 CodeWhale
stdio_tools_and_exit.golden.json
根目录 / crates / tui / tests / fixtures / conformance / mcp / stdio_tools_and_exit.golden.json
1 {
2 "server_received": [
3 {
4 "arguments": {
5 "text": "hi"
6 },
7 "method": "tools/call",
8 "name": "echo"
9 },
10 {
11 "arguments": {},
12 "method": "tools/call",
13 "name": "fails"
14 },
15 {
16 "arguments": {},
17 "method": "tools/call",
18 "name": "rpc-error"
19 },
20 {
21 "arguments": {},
22 "method": "tools/call",
23 "name": "dies"
24 },
25 {
26 "arguments": {
27 "text": "after the child died"
28 },
29 "method": "tools/call",
30 "name": "echo"
31 }
32 ],
33 "steps": [
34 {
35 "op": "boot",
36 "outcome": "ok"
37 },
38 {
39 "op": "catalog",
40 "tools": [
41 {
42 "allowed_callers": [
43 "direct"
44 ],
45 "defer_loading": false,
46 "description": "Exits after reading the call, without answering.",
47 "input_schema": {
48 "type": "object"
49 },
50 "name": "mcp_conformance_dies"
51 },
52 {
53 "allowed_callers": [
54 "direct"
55 ],
56 "defer_loading": false,
57 "description": "Echo the text argument.",
58 "input_schema": {
59 "properties": {
60 "text": {
61 "type": "string"
62 }
63 },
64 "type": "object"
65 },
66 "name": "mcp_conformance_echo"
67 },
68 {
69 "allowed_callers": [
70 "direct"
71 ],
72 "defer_loading": false,
73 "description": "Always reports a tool-level error.",
74 "input_schema": {
75 "type": "object"
76 },
77 "name": "mcp_conformance_fails"
78 },
79 {
80 "allowed_callers": [
81 "direct"
82 ],
83 "defer_loading": false,
84 "description": "",
85 "input_schema": {
86 "type": "object"
87 },
88 "name": "mcp_conformance_rpc-error"
89 }
90 ]
91 },
92 {
93 "op": "call",
94 "outcome": {
95 "ok": {
96 "content": {
97 "content": [
98 {
99 "text": "echo from stdio",
100 "type": "text"
101 }
102 ]
103 },
104 "content_blocks": [],
105 "metadata": null,
106 "success": true
107 }
108 },
109 "tool": "mcp_conformance_echo"
110 },
111 {
112 "op": "call",
113 "outcome": {
114 "ok": {
115 "content": "the stdio fixture tool failed on purpose",
116 "content_blocks": [],
117 "metadata": null,
118 "success": false
119 }
120 },
121 "tool": "mcp_conformance_fails"
122 },
123 {
124 "op": "call",
125 "outcome": {
126 "err": {
127 "detail": "Failed to execute tool: MCP tool failed: MCP error in 'tools/call': {\n \"code\": -32602,\n \"message\": \"invalid params: stdio\"\n}",
128 "kind": "execution_failed"
129 }
130 },
131 "tool": "mcp_conformance_rpc-error"
132 },
133 {
134 "op": "call",
135 "outcome": {
136 "err": {
137 "detail": "Failed to execute tool: MCP tool failed: MCP server 'conformance' connection closed during tool call 'dies'; outcome unknown, not retried",
138 "kind": "execution_failed"
139 }
140 },
141 "tool": "mcp_conformance_dies"
142 },
143 {
144 "op": "call",
145 "outcome": {
146 "ok": {
147 "content": {
148 "content": [
149 {
150 "text": "echo from stdio",
151 "type": "text"
152 }
153 ]
154 },
155 "content_blocks": [],
156 "metadata": null,
157 "success": true
158 }
159 },
160 "tool": "mcp_conformance_echo"
161 },
162 {
163 "op": "catalog",
164 "tools": [
165 {
166 "allowed_callers": [
167 "direct"
168 ],
169 "defer_loading": false,
170 "description": "Exits after reading the call, without answering.",
171 "input_schema": {
172 "type": "object"
173 },
174 "name": "mcp_conformance_dies"
175 },
176 {
177 "allowed_callers": [
178 "direct"
179 ],
180 "defer_loading": false,
181 "description": "Echo the text argument.",
182 "input_schema": {
183 "properties": {
184 "text": {
185 "type": "string"
186 }
187 },
188 "type": "object"
189 },
190 "name": "mcp_conformance_echo"
191 },
192 {
193 "allowed_callers": [
194 "direct"
195 ],
196 "defer_loading": false,
197 "description": "Always reports a tool-level error.",
198 "input_schema": {
199 "type": "object"
200 },
201 "name": "mcp_conformance_fails"
202 },
203 {
204 "allowed_callers": [
205 "direct"
206 ],
207 "defer_loading": false,
208 "description": "",
209 "input_schema": {
210 "type": "object"
211 },
212 "name": "mcp_conformance_rpc-error"
213 }
214 ]
215 }
216 ]
217 }
218
218 lines JSON