返回 CodeWhale
deny_tool_rules.golden.json
根目录 / crates / tui / tests / fixtures / conformance / mcp / deny_tool_rules.golden.json
1 {
2 "server_received": [
3 {
4 "arguments": {},
5 "method": "tools/call",
6 "name": "echo"
7 },
8 {
9 "method": "resources/read",
10 "uri": "fixture://readme"
11 }
12 ],
13 "steps": [
14 {
15 "op": "boot",
16 "outcome": "ok"
17 },
18 {
19 "op": "catalog",
20 "tools": [
21 {
22 "allowed_callers": [
23 "direct"
24 ],
25 "defer_loading": false,
26 "description": "List available MCP resources across servers (optionally filtered by server).",
27 "input_schema": {
28 "properties": {
29 "server": {
30 "description": "Optional MCP server name to filter by",
31 "type": "string"
32 }
33 },
34 "type": "object"
35 },
36 "name": "list_mcp_resources"
37 },
38 {
39 "allowed_callers": [
40 "direct"
41 ],
42 "defer_loading": false,
43 "description": "",
44 "input_schema": {
45 "properties": {},
46 "type": "object"
47 },
48 "name": "mcp_conformance_echo"
49 },
50 {
51 "allowed_callers": [
52 "direct"
53 ],
54 "defer_loading": false,
55 "description": "Read a resource from an MCP server using its URI",
56 "input_schema": {
57 "properties": {
58 "server": {
59 "description": "The name of the MCP server",
60 "type": "string"
61 },
62 "uri": {
63 "description": "The URI of the resource to read",
64 "type": "string"
65 }
66 },
67 "required": [
68 "server",
69 "uri"
70 ],
71 "type": "object"
72 },
73 "name": "mcp_read_resource"
74 },
75 {
76 "allowed_callers": [
77 "direct"
78 ],
79 "defer_loading": false,
80 "description": "Alias for mcp_read_resource.",
81 "input_schema": {
82 "properties": {
83 "server": {
84 "description": "The name of the MCP server",
85 "type": "string"
86 },
87 "uri": {
88 "description": "The URI of the resource to read",
89 "type": "string"
90 }
91 },
92 "required": [
93 "server",
94 "uri"
95 ],
96 "type": "object"
97 },
98 "name": "read_mcp_resource"
99 }
100 ]
101 },
102 {
103 "op": "call",
104 "outcome": {
105 "ok": {
106 "content": {
107 "content": [
108 {
109 "text": "echo",
110 "type": "text"
111 }
112 ]
113 },
114 "content_blocks": [],
115 "metadata": null,
116 "success": true
117 }
118 },
119 "tool": "mcp_conformance_echo"
120 },
121 {
122 "op": "call",
123 "outcome": {
124 "err": {
125 "detail": "Failed to locate tool: Unknown MCP tool name: mcp_conformance_fails",
126 "kind": "not_available"
127 }
128 },
129 "tool": "mcp_conformance_fails"
130 },
131 {
132 "op": "call",
133 "outcome": {
134 "err": {
135 "detail": "Failed to locate tool: Unknown MCP tool name: mcp_get_prompt",
136 "kind": "not_available"
137 }
138 },
139 "tool": "mcp_get_prompt"
140 },
141 {
142 "op": "call",
143 "outcome": {
144 "ok": {
145 "content": {
146 "contents": [
147 {
148 "mimeType": "text/plain",
149 "text": "readme\n",
150 "uri": "fixture://readme"
151 }
152 ]
153 },
154 "content_blocks": [],
155 "metadata": null,
156 "success": true
157 }
158 },
159 "tool": "mcp_read_resource"
160 }
161 ]
162 }
163
163 lines JSON