返回 CodeWhale
tools_only.case.json
根目录 / crates / tui / tests / fixtures / conformance / mcp / tools_only.case.json
1 {
2 "description": "A tools-only server on an older protocol revision: no resource or prompt meta-tools may be advertised, and one call succeeds exactly once.",
3 "server_name": "conformance",
4 "server": {
5 "initialize": {
6 "result": {
7 "protocolVersion": "2024-11-05",
8 "serverInfo": {
9 "name": "tools-only",
10 "version": "0.1.0"
11 },
12 "capabilities": {
13 "tools": {}
14 }
15 }
16 },
17 "tools/list": {
18 "result": {
19 "tools": [
20 {
21 "name": "act",
22 "description": "Do the one thing.",
23 "inputSchema": {
24 "type": "object",
25 "properties": {
26 "target": {
27 "type": "string"
28 }
29 }
30 }
31 }
32 ]
33 }
34 },
35 "tools/call": [
36 {
37 "match": {
38 "name": "act"
39 },
40 "result": {
41 "content": [
42 {
43 "type": "text",
44 "text": "acted"
45 }
46 ]
47 }
48 }
49 ]
50 },
51 "steps": [
52 {
53 "op": "catalog"
54 },
55 {
56 "op": "call",
57 "tool": "mcp_conformance_act",
58 "input": {
59 "target": "fixture"
60 }
61 }
62 ]
63 }
64
64 lines JSON