返回 CodeWhale
catalog_pagination.case.json
根目录 / crates / tui / tests / fixtures / conformance / mcp / catalog_pagination.case.json
1 {
2 "description": "A paginated tools/list. Pins Rust McpConnection::discover_tools under McpCatalogBudget: pages are followed by nextCursor, a malformed tool entry is skipped without dropping its page, and the merged catalog is sorted by name regardless of server order.",
3 "server_name": "conformance",
4 "server": {
5 "initialize": {
6 "result": {
7 "protocolVersion": "2025-06-18",
8 "serverInfo": {
9 "name": "catalog-fixture",
10 "version": "1.0.0"
11 },
12 "capabilities": {
13 "tools": {}
14 }
15 }
16 },
17 "tools/list": [
18 {
19 "match": {
20 "cursor": "page-3"
21 },
22 "result": {
23 "tools": [
24 {
25 "name": "alpha",
26 "inputSchema": {
27 "type": "object"
28 }
29 }
30 ]
31 }
32 },
33 {
34 "match": {
35 "cursor": "page-2"
36 },
37 "result": {
38 "tools": [
39 {
40 "description": "no name: malformed, skipped",
41 "inputSchema": {
42 "type": "object"
43 }
44 },
45 {
46 "name": "mid",
47 "description": "Second page.",
48 "inputSchema": {
49 "type": "object"
50 }
51 }
52 ],
53 "nextCursor": "page-3"
54 }
55 },
56 {
57 "result": {
58 "tools": [
59 {
60 "name": "zulu",
61 "description": "First page, listed first.",
62 "inputSchema": {
63 "type": "object"
64 }
65 }
66 ],
67 "nextCursor": "page-2"
68 }
69 }
70 ]
71 },
72 "steps": [
73 {
74 "op": "catalog"
75 }
76 ]
77 }
78
78 lines JSON