返回 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 "type": "object"
46 },
47 "name": "mcp_conformance_echo"
48 },
49 {
50 "allowed_callers": [
51 "direct"
52 ],
53 "defer_loading": false,
54 "description": "Read a resource from an MCP server using its URI",
55 "input_schema": {
56 "properties": {
57 "server": {
58 "description": "The name of the MCP server",
59 "type": "string"
60 },
61 "uri": {
62 "description": "The URI of the resource to read",
63 "type": "string"
64 }
65 },
66 "required": [
67 "server",
68 "uri"
69 ],
70 "type": "object"
71 },
72 "name": "mcp_read_resource"
73 },
74 {
75 "allowed_callers": [
76 "direct"
77 ],
78 "defer_loading": false,
79 "description": "Alias for mcp_read_resource.",
80 "input_schema": {
81 "properties": {
82 "server": {
83 "description": "The name of the MCP server",
84 "type": "string"
85 },
86 "uri": {
87 "description": "The URI of the resource to read",
88 "type": "string"
89 }
90 },
91 "required": [
92 "server",
93 "uri"
94 ],
95 "type": "object"
96 },
97 "name": "read_mcp_resource"
98 }
99 ]
100 },
101 {
102 "op": "call",
103 "outcome": {
104 "ok": {
105 "content": {
106 "content": [
107 {
108 "text": "echo",
109 "type": "text"
110 }
111 ]
112 },
113 "content_blocks": [],
114 "metadata": null,
115 "success": true
116 }
117 },
118 "tool": "mcp_conformance_echo"
119 },
120 {
121 "op": "call",
122 "outcome": {
123 "err": {
124 "detail": "Failed to locate tool: Unknown MCP tool name: mcp_conformance_fails",
125 "kind": "not_available"
126 }
127 },
128 "tool": "mcp_conformance_fails"
129 },
130 {
131 "op": "call",
132 "outcome": {
133 "err": {
134 "detail": "Failed to locate tool: Unknown MCP tool name: mcp_get_prompt",
135 "kind": "not_available"
136 }
137 },
138 "tool": "mcp_get_prompt"
139 },
140 {
141 "op": "call",
142 "outcome": {
143 "ok": {
144 "content": {
145 "contents": [
146 {
147 "mimeType": "text/plain",
148 "text": "readme\n",
149 "uri": "fixture://readme"
150 }
151 ]
152 },
153 "content_blocks": [],
154 "metadata": null,
155 "success": true
156 }
157 },
158 "tool": "mcp_read_resource"
159 }
160 ]
161 }
162
162 lines JSON