返回 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 "properties": {},
49 "type": "object"
50 },
51 "name": "mcp_conformance_dies"
52 },
53 {
54 "allowed_callers": [
55 "direct"
56 ],
57 "defer_loading": false,
58 "description": "Echo the text argument.",
59 "input_schema": {
60 "properties": {
61 "text": {
62 "type": "string"
63 }
64 },
65 "type": "object"
66 },
67 "name": "mcp_conformance_echo"
68 },
69 {
70 "allowed_callers": [
71 "direct"
72 ],
73 "defer_loading": false,
74 "description": "Always reports a tool-level error.",
75 "input_schema": {
76 "properties": {},
77 "type": "object"
78 },
79 "name": "mcp_conformance_fails"
80 },
81 {
82 "allowed_callers": [
83 "direct"
84 ],
85 "defer_loading": false,
86 "description": "",
87 "input_schema": {
88 "properties": {},
89 "type": "object"
90 },
91 "name": "mcp_conformance_rpc-error"
92 }
93 ]
94 },
95 {
96 "op": "call",
97 "outcome": {
98 "ok": {
99 "content": {
100 "content": [
101 {
102 "text": "echo from stdio",
103 "type": "text"
104 }
105 ]
106 },
107 "content_blocks": [],
108 "metadata": null,
109 "success": true
110 }
111 },
112 "tool": "mcp_conformance_echo"
113 },
114 {
115 "op": "call",
116 "outcome": {
117 "ok": {
118 "content": "the stdio fixture tool failed on purpose",
119 "content_blocks": [],
120 "metadata": null,
121 "success": false
122 }
123 },
124 "tool": "mcp_conformance_fails"
125 },
126 {
127 "op": "call",
128 "outcome": {
129 "err": {
130 "detail": "Failed to execute tool: MCP tool failed: MCP error in 'tools/call': {\n \"code\": -32602,\n \"message\": \"invalid params: stdio\"\n}",
131 "kind": "execution_failed"
132 }
133 },
134 "tool": "mcp_conformance_rpc-error"
135 },
136 {
137 "op": "call",
138 "outcome": {
139 "err": {
140 "detail": "Failed to execute tool: MCP tool failed: MCP server 'conformance' connection closed during tool call 'dies'; outcome unknown, not retried",
141 "kind": "execution_failed"
142 }
143 },
144 "tool": "mcp_conformance_dies"
145 },
146 {
147 "op": "call",
148 "outcome": {
149 "ok": {
150 "content": {
151 "content": [
152 {
153 "text": "echo from stdio",
154 "type": "text"
155 }
156 ]
157 },
158 "content_blocks": [],
159 "metadata": null,
160 "success": true
161 }
162 },
163 "tool": "mcp_conformance_echo"
164 },
165 {
166 "op": "catalog",
167 "tools": [
168 {
169 "allowed_callers": [
170 "direct"
171 ],
172 "defer_loading": false,
173 "description": "Exits after reading the call, without answering.",
174 "input_schema": {
175 "properties": {},
176 "type": "object"
177 },
178 "name": "mcp_conformance_dies"
179 },
180 {
181 "allowed_callers": [
182 "direct"
183 ],
184 "defer_loading": false,
185 "description": "Echo the text argument.",
186 "input_schema": {
187 "properties": {
188 "text": {
189 "type": "string"
190 }
191 },
192 "type": "object"
193 },
194 "name": "mcp_conformance_echo"
195 },
196 {
197 "allowed_callers": [
198 "direct"
199 ],
200 "defer_loading": false,
201 "description": "Always reports a tool-level error.",
202 "input_schema": {
203 "properties": {},
204 "type": "object"
205 },
206 "name": "mcp_conformance_fails"
207 },
208 {
209 "allowed_callers": [
210 "direct"
211 ],
212 "defer_loading": false,
213 "description": "",
214 "input_schema": {
215 "properties": {},
216 "type": "object"
217 },
218 "name": "mcp_conformance_rpc-error"
219 }
220 ]
221 }
222 ]
223 }
224
224 lines JSON