| 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": "slow" |
| 24 | }, |
| 25 | { |
| 26 | "arguments": {}, |
| 27 | "method": "tools/call", |
| 28 | "name": "image" |
| 29 | }, |
| 30 | { |
| 31 | "arguments": {}, |
| 32 | "method": "tools/call", |
| 33 | "name": "hangs" |
| 34 | }, |
| 35 | { |
| 36 | "arguments": { |
| 37 | "text": "after cancel" |
| 38 | }, |
| 39 | "method": "tools/call", |
| 40 | "name": "echo" |
| 41 | }, |
| 42 | { |
| 43 | "method": "resources/read", |
| 44 | "uri": "fixture://readme" |
| 45 | }, |
| 46 | { |
| 47 | "method": "prompts/get", |
| 48 | "name": "summarize" |
| 49 | } |
| 50 | ], |
| 51 | "steps": [ |
| 52 | { |
| 53 | "op": "boot", |
| 54 | "outcome": "ok" |
| 55 | }, |
| 56 | { |
| 57 | "op": "catalog", |
| 58 | "tools": [ |
| 59 | { |
| 60 | "allowed_callers": [ |
| 61 | "direct" |
| 62 | ], |
| 63 | "defer_loading": false, |
| 64 | "description": "List available MCP resource templates across servers (optionally filtered by server).", |
| 65 | "input_schema": { |
| 66 | "properties": { |
| 67 | "server": { |
| 68 | "description": "Optional MCP server name to filter by", |
| 69 | "type": "string" |
| 70 | } |
| 71 | }, |
| 72 | "type": "object" |
| 73 | }, |
| 74 | "name": "list_mcp_resource_templates" |
| 75 | }, |
| 76 | { |
| 77 | "allowed_callers": [ |
| 78 | "direct" |
| 79 | ], |
| 80 | "defer_loading": false, |
| 81 | "description": "List available MCP resources across servers (optionally filtered by server).", |
| 82 | "input_schema": { |
| 83 | "properties": { |
| 84 | "server": { |
| 85 | "description": "Optional MCP server name to filter by", |
| 86 | "type": "string" |
| 87 | } |
| 88 | }, |
| 89 | "type": "object" |
| 90 | }, |
| 91 | "name": "list_mcp_resources" |
| 92 | }, |
| 93 | { |
| 94 | "allowed_callers": [ |
| 95 | "direct" |
| 96 | ], |
| 97 | "defer_loading": false, |
| 98 | "description": "Echo the text argument.\nSecond description line.", |
| 99 | "input_schema": { |
| 100 | "properties": { |
| 101 | "text": { |
| 102 | "type": "string" |
| 103 | } |
| 104 | }, |
| 105 | "required": [ |
| 106 | "text" |
| 107 | ], |
| 108 | "type": "object" |
| 109 | }, |
| 110 | "name": "mcp_conformance_echo" |
| 111 | }, |
| 112 | { |
| 113 | "allowed_callers": [ |
| 114 | "direct" |
| 115 | ], |
| 116 | "defer_loading": false, |
| 117 | "description": "Always reports a tool-level error.", |
| 118 | "input_schema": { |
| 119 | "properties": {}, |
| 120 | "type": "object" |
| 121 | }, |
| 122 | "name": "mcp_conformance_fails" |
| 123 | }, |
| 124 | { |
| 125 | "allowed_callers": [ |
| 126 | "direct" |
| 127 | ], |
| 128 | "defer_loading": false, |
| 129 | "description": "Never answers until the caller goes away.", |
| 130 | "input_schema": { |
| 131 | "properties": {}, |
| 132 | "type": "object" |
| 133 | }, |
| 134 | "name": "mcp_conformance_hangs" |
| 135 | }, |
| 136 | { |
| 137 | "allowed_callers": [ |
| 138 | "direct" |
| 139 | ], |
| 140 | "defer_loading": false, |
| 141 | "description": "Returns text and an image block.", |
| 142 | "input_schema": { |
| 143 | "properties": {}, |
| 144 | "type": "object" |
| 145 | }, |
| 146 | "name": "mcp_conformance_image" |
| 147 | }, |
| 148 | { |
| 149 | "allowed_callers": [ |
| 150 | "direct" |
| 151 | ], |
| 152 | "defer_loading": false, |
| 153 | "description": "", |
| 154 | "input_schema": { |
| 155 | "properties": {}, |
| 156 | "type": "object" |
| 157 | }, |
| 158 | "name": "mcp_conformance_rpc-error" |
| 159 | }, |
| 160 | { |
| 161 | "allowed_callers": [ |
| 162 | "direct" |
| 163 | ], |
| 164 | "defer_loading": false, |
| 165 | "description": "Sends progress notifications before its result.", |
| 166 | "input_schema": { |
| 167 | "properties": {}, |
| 168 | "type": "object" |
| 169 | }, |
| 170 | "name": "mcp_conformance_slow" |
| 171 | }, |
| 172 | { |
| 173 | "allowed_callers": [ |
| 174 | "direct" |
| 175 | ], |
| 176 | "defer_loading": false, |
| 177 | "description": "Listed first by the server; the catalog sorts by name.", |
| 178 | "input_schema": { |
| 179 | "properties": {}, |
| 180 | "type": "object" |
| 181 | }, |
| 182 | "name": "mcp_conformance_z_last" |
| 183 | }, |
| 184 | { |
| 185 | "allowed_callers": [ |
| 186 | "direct" |
| 187 | ], |
| 188 | "defer_loading": false, |
| 189 | "description": "Get a prompt from an MCP server", |
| 190 | "input_schema": { |
| 191 | "properties": { |
| 192 | "arguments": { |
| 193 | "additionalProperties": { |
| 194 | "type": "string" |
| 195 | }, |
| 196 | "description": "Optional arguments for the prompt", |
| 197 | "type": "object" |
| 198 | }, |
| 199 | "name": { |
| 200 | "description": "The name of the prompt", |
| 201 | "type": "string" |
| 202 | }, |
| 203 | "server": { |
| 204 | "description": "The name of the MCP server", |
| 205 | "type": "string" |
| 206 | } |
| 207 | }, |
| 208 | "required": [ |
| 209 | "server", |
| 210 | "name" |
| 211 | ], |
| 212 | "type": "object" |
| 213 | }, |
| 214 | "name": "mcp_get_prompt" |
| 215 | }, |
| 216 | { |
| 217 | "allowed_callers": [ |
| 218 | "direct" |
| 219 | ], |
| 220 | "defer_loading": false, |
| 221 | "description": "Read a resource from an MCP server using its URI", |
| 222 | "input_schema": { |
| 223 | "properties": { |
| 224 | "server": { |
| 225 | "description": "The name of the MCP server", |
| 226 | "type": "string" |
| 227 | }, |
| 228 | "uri": { |
| 229 | "description": "The URI of the resource to read", |
| 230 | "type": "string" |
| 231 | } |
| 232 | }, |
| 233 | "required": [ |
| 234 | "server", |
| 235 | "uri" |
| 236 | ], |
| 237 | "type": "object" |
| 238 | }, |
| 239 | "name": "mcp_read_resource" |
| 240 | }, |
| 241 | { |
| 242 | "allowed_callers": [ |
| 243 | "direct" |
| 244 | ], |
| 245 | "defer_loading": false, |
| 246 | "description": "Alias for mcp_read_resource.", |
| 247 | "input_schema": { |
| 248 | "properties": { |
| 249 | "server": { |
| 250 | "description": "The name of the MCP server", |
| 251 | "type": "string" |
| 252 | }, |
| 253 | "uri": { |
| 254 | "description": "The URI of the resource to read", |
| 255 | "type": "string" |
| 256 | } |
| 257 | }, |
| 258 | "required": [ |
| 259 | "server", |
| 260 | "uri" |
| 261 | ], |
| 262 | "type": "object" |
| 263 | }, |
| 264 | "name": "read_mcp_resource" |
| 265 | } |
| 266 | ] |
| 267 | }, |
| 268 | { |
| 269 | "op": "call", |
| 270 | "outcome": { |
| 271 | "ok": { |
| 272 | "content": { |
| 273 | "content": [ |
| 274 | { |
| 275 | "text": "echo: hi", |
| 276 | "type": "text" |
| 277 | } |
| 278 | ], |
| 279 | "structuredContent": { |
| 280 | "echoed": "hi" |
| 281 | } |
| 282 | }, |
| 283 | "content_blocks": [], |
| 284 | "metadata": null, |
| 285 | "success": true |
| 286 | } |
| 287 | }, |
| 288 | "tool": "mcp_conformance_echo" |
| 289 | }, |
| 290 | { |
| 291 | "op": "call", |
| 292 | "outcome": { |
| 293 | "ok": { |
| 294 | "content": "the fixture tool failed on purpose", |
| 295 | "content_blocks": [], |
| 296 | "metadata": null, |
| 297 | "success": false |
| 298 | } |
| 299 | }, |
| 300 | "tool": "mcp_conformance_fails" |
| 301 | }, |
| 302 | { |
| 303 | "op": "call", |
| 304 | "outcome": { |
| 305 | "err": { |
| 306 | "detail": "Failed to execute tool: MCP tool failed: MCP error in 'tools/call': {\n \"code\": -32602,\n \"message\": \"invalid params: conformance\"\n}", |
| 307 | "kind": "execution_failed" |
| 308 | } |
| 309 | }, |
| 310 | "tool": "mcp_conformance_rpc-error" |
| 311 | }, |
| 312 | { |
| 313 | "op": "call", |
| 314 | "outcome": { |
| 315 | "ok": { |
| 316 | "content": { |
| 317 | "content": [ |
| 318 | { |
| 319 | "text": "slow done", |
| 320 | "type": "text" |
| 321 | } |
| 322 | ] |
| 323 | }, |
| 324 | "content_blocks": [], |
| 325 | "metadata": null, |
| 326 | "success": true |
| 327 | } |
| 328 | }, |
| 329 | "tool": "mcp_conformance_slow" |
| 330 | }, |
| 331 | { |
| 332 | "op": "call", |
| 333 | "outcome": { |
| 334 | "ok": { |
| 335 | "content": { |
| 336 | "content": [ |
| 337 | { |
| 338 | "text": "one pixel", |
| 339 | "type": "text" |
| 340 | }, |
| 341 | { |
| 342 | "data": "[MCP image payload removed from text output]", |
| 343 | "mimeType": "image/png", |
| 344 | "type": "image" |
| 345 | } |
| 346 | ] |
| 347 | }, |
| 348 | "content_blocks": [ |
| 349 | { |
| 350 | "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DwHwAFBQIAX8jx0gAAAABJRU5ErkJggg==", |
| 351 | "mime_type": "image/png", |
| 352 | "type": "image" |
| 353 | } |
| 354 | ], |
| 355 | "metadata": null, |
| 356 | "success": true |
| 357 | } |
| 358 | }, |
| 359 | "tool": "mcp_conformance_image" |
| 360 | }, |
| 361 | { |
| 362 | "op": "call", |
| 363 | "outcome": { |
| 364 | "err": { |
| 365 | "detail": "Tool execution cancelled: tool call interrupted by the host", |
| 366 | "kind": "cancelled" |
| 367 | } |
| 368 | }, |
| 369 | "tool": "mcp_conformance_hangs" |
| 370 | }, |
| 371 | { |
| 372 | "op": "call", |
| 373 | "outcome": { |
| 374 | "ok": { |
| 375 | "content": { |
| 376 | "content": [ |
| 377 | { |
| 378 | "text": "echo: hi", |
| 379 | "type": "text" |
| 380 | } |
| 381 | ], |
| 382 | "structuredContent": { |
| 383 | "echoed": "hi" |
| 384 | } |
| 385 | }, |
| 386 | "content_blocks": [], |
| 387 | "metadata": null, |
| 388 | "success": true |
| 389 | } |
| 390 | }, |
| 391 | "tool": "mcp_conformance_echo" |
| 392 | }, |
| 393 | { |
| 394 | "op": "call", |
| 395 | "outcome": { |
| 396 | "ok": { |
| 397 | "content": { |
| 398 | "resources": [ |
| 399 | { |
| 400 | "description": "The fixture readme.", |
| 401 | "mime_type": "text/plain", |
| 402 | "name": "readme", |
| 403 | "server": "conformance", |
| 404 | "uri": "fixture://readme" |
| 405 | } |
| 406 | ] |
| 407 | }, |
| 408 | "content_blocks": [], |
| 409 | "metadata": null, |
| 410 | "success": true |
| 411 | } |
| 412 | }, |
| 413 | "tool": "list_mcp_resources" |
| 414 | }, |
| 415 | { |
| 416 | "op": "call", |
| 417 | "outcome": { |
| 418 | "ok": { |
| 419 | "content": { |
| 420 | "templates": [ |
| 421 | { |
| 422 | "description": null, |
| 423 | "mime_type": "text/plain", |
| 424 | "name": "note", |
| 425 | "server": "conformance", |
| 426 | "uri_template": "fixture://notes/{id}" |
| 427 | } |
| 428 | ] |
| 429 | }, |
| 430 | "content_blocks": [], |
| 431 | "metadata": null, |
| 432 | "success": true |
| 433 | } |
| 434 | }, |
| 435 | "tool": "list_mcp_resource_templates" |
| 436 | }, |
| 437 | { |
| 438 | "op": "call", |
| 439 | "outcome": { |
| 440 | "ok": { |
| 441 | "content": { |
| 442 | "contents": [ |
| 443 | { |
| 444 | "mimeType": "text/plain", |
| 445 | "text": "conformance fixture\n", |
| 446 | "uri": "fixture://readme" |
| 447 | } |
| 448 | ] |
| 449 | }, |
| 450 | "content_blocks": [], |
| 451 | "metadata": null, |
| 452 | "success": true |
| 453 | } |
| 454 | }, |
| 455 | "tool": "mcp_read_resource" |
| 456 | }, |
| 457 | { |
| 458 | "op": "call", |
| 459 | "outcome": { |
| 460 | "ok": { |
| 461 | "content": { |
| 462 | "description": "Summarize a note.", |
| 463 | "messages": [ |
| 464 | { |
| 465 | "content": { |
| 466 | "text": "Summarize note 7.", |
| 467 | "type": "text" |
| 468 | }, |
| 469 | "role": "user" |
| 470 | } |
| 471 | ] |
| 472 | }, |
| 473 | "content_blocks": [], |
| 474 | "metadata": null, |
| 475 | "success": true |
| 476 | } |
| 477 | }, |
| 478 | "tool": "mcp_get_prompt" |
| 479 | }, |
| 480 | { |
| 481 | "op": "call", |
| 482 | "outcome": { |
| 483 | "err": { |
| 484 | "detail": "Failed to execute tool: MCP tool failed: Unknown MCP tool name: mcp_conformance_not_advertised", |
| 485 | "kind": "execution_failed" |
| 486 | } |
| 487 | }, |
| 488 | "tool": "mcp_conformance_not_advertised" |
| 489 | } |
| 490 | ] |
| 491 | } |
| 492 |