返回 CodeWhale
deny_server_wildcard.case.json
根目录 / crates / tui / tests / fixtures / conformance / mcp / deny_server_wildcard.case.json
1 {
2 "description": "A deny rule covering a whole server namespace (mcp_conformance_*). Pins Rust McpPool::server_denied_by / authorize_call: the server's tools and resource meta-tools leave the catalog, its tool calls are refused as unknown, and the resource tools refuse it as a server that cannot be found. Nothing reaches the server's side-effecting methods.",
3 "server_name": "conformance",
4 "disallowed_tools": [
5 "mcp_conformance_*"
6 ],
7 "server": {
8 "initialize": {
9 "result": {
10 "protocolVersion": "2025-06-18",
11 "serverInfo": {
12 "name": "deny-fixture",
13 "version": "1.0.0"
14 },
15 "capabilities": {
16 "tools": {},
17 "resources": {},
18 "prompts": {}
19 }
20 }
21 },
22 "tools/list": {
23 "result": {
24 "tools": [
25 {
26 "name": "echo",
27 "inputSchema": {
28 "type": "object"
29 }
30 },
31 {
32 "name": "fails",
33 "inputSchema": {
34 "type": "object"
35 }
36 }
37 ]
38 }
39 },
40 "resources/list": {
41 "result": {
42 "resources": [
43 {
44 "uri": "fixture://readme",
45 "name": "readme",
46 "mimeType": "text/plain"
47 }
48 ]
49 }
50 },
51 "prompts/list": {
52 "result": {
53 "prompts": [
54 {
55 "name": "summarize",
56 "description": "Summarize."
57 }
58 ]
59 }
60 },
61 "resources/read": [
62 {
63 "match": {
64 "uri": "fixture://readme"
65 },
66 "result": {
67 "contents": [
68 {
69 "uri": "fixture://readme",
70 "mimeType": "text/plain",
71 "text": "readme\n"
72 }
73 ]
74 }
75 }
76 ],
77 "prompts/get": [
78 {
79 "match": {
80 "name": "summarize"
81 },
82 "result": {
83 "messages": [
84 {
85 "role": "user",
86 "content": {
87 "type": "text",
88 "text": "Summarize."
89 }
90 }
91 ]
92 }
93 }
94 ],
95 "tools/call": [
96 {
97 "match": {
98 "name": "echo"
99 },
100 "result": {
101 "content": [
102 {
103 "type": "text",
104 "text": "echo"
105 }
106 ]
107 }
108 },
109 {
110 "match": {
111 "name": "fails"
112 },
113 "result": {
114 "content": [
115 {
116 "type": "text",
117 "text": "ran"
118 }
119 ]
120 }
121 }
122 ]
123 },
124 "steps": [
125 {
126 "op": "catalog"
127 },
128 {
129 "op": "call",
130 "tool": "mcp_conformance_echo",
131 "input": {}
132 },
133 {
134 "op": "call",
135 "tool": "mcp_read_resource",
136 "input": {
137 "server": "conformance",
138 "uri": "fixture://readme"
139 }
140 },
141 {
142 "op": "call",
143 "tool": "mcp_get_prompt",
144 "input": {
145 "server": "conformance",
146 "name": "summarize"
147 }
148 }
149 ]
150 }
151
151 lines JSON