mcp-proxy-adapter 6.4.44__py3-none-any.whl → 6.4.46__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mcp_proxy_adapter/core/proxy_registration.py +100 -68
- mcp_proxy_adapter/custom_openapi.py +294 -2
- mcp_proxy_adapter/examples/bugfix_certificate_config.py +284 -0
- mcp_proxy_adapter/examples/cert_manager_bugfix.py +203 -0
- mcp_proxy_adapter/examples/config_builder.py +574 -0
- mcp_proxy_adapter/examples/config_cli.py +283 -0
- mcp_proxy_adapter/examples/create_test_configs.py +169 -266
- mcp_proxy_adapter/examples/generate_certificates_bugfix.py +374 -0
- mcp_proxy_adapter/examples/generate_certificates_cli.py +406 -0
- mcp_proxy_adapter/examples/generate_certificates_fixed.py +313 -0
- mcp_proxy_adapter/examples/generate_certificates_framework.py +366 -0
- mcp_proxy_adapter/examples/generate_certificates_openssl.py +391 -0
- mcp_proxy_adapter/examples/required_certificates.py +210 -0
- mcp_proxy_adapter/examples/run_full_test_suite.py +117 -13
- mcp_proxy_adapter/examples/run_security_tests_fixed.py +42 -26
- mcp_proxy_adapter/examples/security_test_client.py +332 -85
- mcp_proxy_adapter/examples/test_config_builder.py +450 -0
- mcp_proxy_adapter/examples/update_config_certificates.py +136 -0
- mcp_proxy_adapter/schemas/base_schema.json +114 -0
- mcp_proxy_adapter/schemas/openapi_schema.json +314 -0
- mcp_proxy_adapter/schemas/roles.json +37 -0
- mcp_proxy_adapter/schemas/roles_schema.json +162 -0
- mcp_proxy_adapter/version.py +1 -1
- {mcp_proxy_adapter-6.4.44.dist-info → mcp_proxy_adapter-6.4.46.dist-info}/METADATA +81 -1
- {mcp_proxy_adapter-6.4.44.dist-info → mcp_proxy_adapter-6.4.46.dist-info}/RECORD +28 -12
- mcp_proxy_adapter-6.4.46.dist-info/entry_points.txt +12 -0
- mcp_proxy_adapter-6.4.44.dist-info/entry_points.txt +0 -2
- {mcp_proxy_adapter-6.4.44.dist-info → mcp_proxy_adapter-6.4.46.dist-info}/WHEEL +0 -0
- {mcp_proxy_adapter-6.4.44.dist-info → mcp_proxy_adapter-6.4.46.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"title": "Base Schema",
|
4
|
+
"description": "Basic schema for validating commands and results",
|
5
|
+
"definitions": {
|
6
|
+
"command": {
|
7
|
+
"type": "object",
|
8
|
+
"properties": {
|
9
|
+
"jsonrpc": {
|
10
|
+
"type": "string",
|
11
|
+
"enum": ["2.0"],
|
12
|
+
"description": "JSON-RPC version"
|
13
|
+
},
|
14
|
+
"method": {
|
15
|
+
"type": "string",
|
16
|
+
"description": "Command name"
|
17
|
+
},
|
18
|
+
"params": {
|
19
|
+
"type": "object",
|
20
|
+
"description": "Command parameters"
|
21
|
+
},
|
22
|
+
"id": {
|
23
|
+
"oneOf": [
|
24
|
+
{"type": "string"},
|
25
|
+
{"type": "integer"},
|
26
|
+
{"type": "null"}
|
27
|
+
],
|
28
|
+
"description": "Request ID"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"required": ["jsonrpc", "method"]
|
32
|
+
},
|
33
|
+
"success_response": {
|
34
|
+
"type": "object",
|
35
|
+
"properties": {
|
36
|
+
"jsonrpc": {
|
37
|
+
"type": "string",
|
38
|
+
"enum": ["2.0"],
|
39
|
+
"description": "JSON-RPC version"
|
40
|
+
},
|
41
|
+
"result": {
|
42
|
+
"type": "object",
|
43
|
+
"properties": {
|
44
|
+
"success": {
|
45
|
+
"type": "boolean",
|
46
|
+
"enum": [true],
|
47
|
+
"description": "Success flag"
|
48
|
+
},
|
49
|
+
"data": {
|
50
|
+
"type": "object",
|
51
|
+
"description": "Response data"
|
52
|
+
},
|
53
|
+
"message": {
|
54
|
+
"type": "string",
|
55
|
+
"description": "Response message"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"required": ["success"]
|
59
|
+
},
|
60
|
+
"id": {
|
61
|
+
"oneOf": [
|
62
|
+
{"type": "string"},
|
63
|
+
{"type": "integer"},
|
64
|
+
{"type": "null"}
|
65
|
+
],
|
66
|
+
"description": "Request ID"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"required": ["jsonrpc", "result"]
|
70
|
+
},
|
71
|
+
"error_response": {
|
72
|
+
"type": "object",
|
73
|
+
"properties": {
|
74
|
+
"jsonrpc": {
|
75
|
+
"type": "string",
|
76
|
+
"enum": ["2.0"],
|
77
|
+
"description": "JSON-RPC version"
|
78
|
+
},
|
79
|
+
"error": {
|
80
|
+
"type": "object",
|
81
|
+
"properties": {
|
82
|
+
"code": {
|
83
|
+
"type": "integer",
|
84
|
+
"description": "Error code"
|
85
|
+
},
|
86
|
+
"message": {
|
87
|
+
"type": "string",
|
88
|
+
"description": "Error message"
|
89
|
+
},
|
90
|
+
"details": {
|
91
|
+
"type": "object",
|
92
|
+
"description": "Detailed error information"
|
93
|
+
}
|
94
|
+
},
|
95
|
+
"required": ["code", "message"]
|
96
|
+
},
|
97
|
+
"id": {
|
98
|
+
"oneOf": [
|
99
|
+
{"type": "string"},
|
100
|
+
{"type": "integer"},
|
101
|
+
{"type": "null"}
|
102
|
+
],
|
103
|
+
"description": "Request ID"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"required": ["jsonrpc", "error"]
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"oneOf": [
|
110
|
+
{"$ref": "#/definitions/command"},
|
111
|
+
{"$ref": "#/definitions/success_response"},
|
112
|
+
{"$ref": "#/definitions/error_response"}
|
113
|
+
]
|
114
|
+
}
|
@@ -0,0 +1,314 @@
|
|
1
|
+
{
|
2
|
+
"openapi": "3.0.2",
|
3
|
+
"info": {
|
4
|
+
"title": "MCP Microservice API",
|
5
|
+
"description": "API для выполнения команд микросервиса",
|
6
|
+
"version": "1.0.0"
|
7
|
+
},
|
8
|
+
"paths": {
|
9
|
+
"/cmd": {
|
10
|
+
"post": {
|
11
|
+
"summary": "Execute Command",
|
12
|
+
"description": "Executes a command via JSON-RPC protocol.",
|
13
|
+
"operationId": "execute_command",
|
14
|
+
"requestBody": {
|
15
|
+
"content": {
|
16
|
+
"application/json": {
|
17
|
+
"schema": {
|
18
|
+
"oneOf": [
|
19
|
+
{ "$ref": "#/components/schemas/CommandRequest" },
|
20
|
+
{ "$ref": "#/components/schemas/JsonRpcRequest" }
|
21
|
+
]
|
22
|
+
}
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"required": true
|
26
|
+
},
|
27
|
+
"responses": {
|
28
|
+
"200": {
|
29
|
+
"description": "Successful Response",
|
30
|
+
"content": {
|
31
|
+
"application/json": {
|
32
|
+
"schema": {
|
33
|
+
"oneOf": [
|
34
|
+
{ "$ref": "#/components/schemas/CommandResponse" },
|
35
|
+
{ "$ref": "#/components/schemas/JsonRpcResponse" }
|
36
|
+
]
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"422": {
|
42
|
+
"description": "Validation Error",
|
43
|
+
"content": {
|
44
|
+
"application/json": {
|
45
|
+
"schema": {
|
46
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"/health": {
|
55
|
+
"get": {
|
56
|
+
"summary": "Проверить работоспособность сервиса",
|
57
|
+
"description": "Возвращает информацию о состоянии сервиса",
|
58
|
+
"operationId": "health_check",
|
59
|
+
"responses": {
|
60
|
+
"200": {
|
61
|
+
"description": "Информация о состоянии сервиса",
|
62
|
+
"content": {
|
63
|
+
"application/json": {
|
64
|
+
"schema": {
|
65
|
+
"$ref": "#/components/schemas/HealthResponse"
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"/openapi.json": {
|
74
|
+
"get": {
|
75
|
+
"summary": "Get Openapi Schema",
|
76
|
+
"description": "Returns OpenAPI schema.",
|
77
|
+
"operationId": "get_openapi_schema_openapi_json_get",
|
78
|
+
"responses": {
|
79
|
+
"200": {
|
80
|
+
"description": "Successful Response",
|
81
|
+
"content": {
|
82
|
+
"application/json": {
|
83
|
+
"schema": {}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
},
|
90
|
+
"/api/commands": {
|
91
|
+
"get": {
|
92
|
+
"summary": "Get Commands",
|
93
|
+
"description": "Returns list of available commands with their descriptions.",
|
94
|
+
"operationId": "get_commands_api_commands_get",
|
95
|
+
"responses": {
|
96
|
+
"200": {
|
97
|
+
"description": "Successful Response",
|
98
|
+
"content": {
|
99
|
+
"application/json": {
|
100
|
+
"schema": {}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"components": {
|
109
|
+
"schemas": {
|
110
|
+
"CommandRequest": {
|
111
|
+
"title": "CommandRequest",
|
112
|
+
"description": "Запрос на выполнение команды",
|
113
|
+
"type": "object",
|
114
|
+
"required": [
|
115
|
+
"command"
|
116
|
+
],
|
117
|
+
"properties": {
|
118
|
+
"command": {
|
119
|
+
"title": "Command",
|
120
|
+
"description": "Команда для выполнения",
|
121
|
+
"type": "string"
|
122
|
+
},
|
123
|
+
"params": {
|
124
|
+
"title": "Parameters",
|
125
|
+
"description": "Параметры команды, зависят от типа команды",
|
126
|
+
"type": "object",
|
127
|
+
"additionalProperties": true
|
128
|
+
}
|
129
|
+
}
|
130
|
+
},
|
131
|
+
"CommandResponse": {
|
132
|
+
"title": "CommandResponse",
|
133
|
+
"description": "Ответ на выполнение команды",
|
134
|
+
"type": "object",
|
135
|
+
"required": [
|
136
|
+
"result"
|
137
|
+
],
|
138
|
+
"properties": {
|
139
|
+
"result": {
|
140
|
+
"title": "Result",
|
141
|
+
"description": "Результат выполнения команды"
|
142
|
+
}
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"JsonRpcRequest": {
|
146
|
+
"properties": {
|
147
|
+
"jsonrpc": {
|
148
|
+
"type": "string",
|
149
|
+
"title": "Jsonrpc",
|
150
|
+
"description": "JSON-RPC version",
|
151
|
+
"default": "2.0"
|
152
|
+
},
|
153
|
+
"method": {
|
154
|
+
"type": "string",
|
155
|
+
"title": "Method",
|
156
|
+
"description": "Method name to call"
|
157
|
+
},
|
158
|
+
"params": {
|
159
|
+
"additionalProperties": true,
|
160
|
+
"type": "object",
|
161
|
+
"title": "Params",
|
162
|
+
"description": "Method parameters",
|
163
|
+
"default": {}
|
164
|
+
},
|
165
|
+
"id": {
|
166
|
+
"anyOf": [
|
167
|
+
{
|
168
|
+
"type": "string"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"type": "integer"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"type": "null"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"title": "Id",
|
178
|
+
"description": "Request identifier"
|
179
|
+
}
|
180
|
+
},
|
181
|
+
"type": "object",
|
182
|
+
"required": [
|
183
|
+
"method"
|
184
|
+
],
|
185
|
+
"title": "JsonRpcRequest",
|
186
|
+
"description": "Base model for JSON-RPC requests."
|
187
|
+
},
|
188
|
+
"JsonRpcResponse": {
|
189
|
+
"properties": {
|
190
|
+
"jsonrpc": {
|
191
|
+
"type": "string",
|
192
|
+
"title": "Jsonrpc",
|
193
|
+
"description": "JSON-RPC version",
|
194
|
+
"default": "2.0"
|
195
|
+
},
|
196
|
+
"result": {
|
197
|
+
"anyOf": [
|
198
|
+
{},
|
199
|
+
{
|
200
|
+
"type": "null"
|
201
|
+
}
|
202
|
+
],
|
203
|
+
"title": "Result",
|
204
|
+
"description": "Method execution result"
|
205
|
+
},
|
206
|
+
"error": {
|
207
|
+
"anyOf": [
|
208
|
+
{
|
209
|
+
"additionalProperties": true,
|
210
|
+
"type": "object"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"type": "null"
|
214
|
+
}
|
215
|
+
],
|
216
|
+
"title": "Error",
|
217
|
+
"description": "Error information"
|
218
|
+
},
|
219
|
+
"id": {
|
220
|
+
"anyOf": [
|
221
|
+
{
|
222
|
+
"type": "string"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"type": "integer"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"type": "null"
|
229
|
+
}
|
230
|
+
],
|
231
|
+
"title": "Id",
|
232
|
+
"description": "Request identifier"
|
233
|
+
}
|
234
|
+
},
|
235
|
+
"type": "object",
|
236
|
+
"title": "JsonRpcResponse",
|
237
|
+
"description": "Base model for JSON-RPC responses."
|
238
|
+
},
|
239
|
+
"HealthResponse": {
|
240
|
+
"title": "HealthResponse",
|
241
|
+
"description": "Информация о состоянии сервиса",
|
242
|
+
"type": "object",
|
243
|
+
"required": [
|
244
|
+
"status",
|
245
|
+
"model",
|
246
|
+
"version"
|
247
|
+
],
|
248
|
+
"properties": {
|
249
|
+
"status": {
|
250
|
+
"title": "Status",
|
251
|
+
"description": "Статус сервиса (ok/error)",
|
252
|
+
"type": "string"
|
253
|
+
},
|
254
|
+
"model": {
|
255
|
+
"title": "Model",
|
256
|
+
"description": "Текущая активная модель",
|
257
|
+
"type": "string"
|
258
|
+
},
|
259
|
+
"version": {
|
260
|
+
"title": "Version",
|
261
|
+
"description": "Версия сервиса",
|
262
|
+
"type": "string"
|
263
|
+
}
|
264
|
+
}
|
265
|
+
},
|
266
|
+
"HTTPValidationError": {
|
267
|
+
"properties": {
|
268
|
+
"detail": {
|
269
|
+
"items": {
|
270
|
+
"$ref": "#/components/schemas/ValidationError"
|
271
|
+
},
|
272
|
+
"type": "array",
|
273
|
+
"title": "Detail"
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"type": "object",
|
277
|
+
"title": "HTTPValidationError"
|
278
|
+
},
|
279
|
+
"ValidationError": {
|
280
|
+
"properties": {
|
281
|
+
"loc": {
|
282
|
+
"items": {
|
283
|
+
"anyOf": [
|
284
|
+
{
|
285
|
+
"type": "string"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"type": "integer"
|
289
|
+
}
|
290
|
+
]
|
291
|
+
},
|
292
|
+
"type": "array",
|
293
|
+
"title": "Location"
|
294
|
+
},
|
295
|
+
"msg": {
|
296
|
+
"type": "string",
|
297
|
+
"title": "Message"
|
298
|
+
},
|
299
|
+
"type": {
|
300
|
+
"type": "string",
|
301
|
+
"title": "Error Type"
|
302
|
+
}
|
303
|
+
},
|
304
|
+
"type": "object",
|
305
|
+
"required": [
|
306
|
+
"loc",
|
307
|
+
"msg",
|
308
|
+
"type"
|
309
|
+
],
|
310
|
+
"title": "ValidationError"
|
311
|
+
}
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"roles": {
|
3
|
+
"admin": {
|
4
|
+
"description": "Administrator role with full access",
|
5
|
+
"permissions": ["*"]
|
6
|
+
},
|
7
|
+
"user": {
|
8
|
+
"description": "Regular user role",
|
9
|
+
"permissions": [
|
10
|
+
"commands:read",
|
11
|
+
"commands:execute",
|
12
|
+
"health:read"
|
13
|
+
]
|
14
|
+
},
|
15
|
+
"readonly": {
|
16
|
+
"description": "Read-only user role",
|
17
|
+
"permissions": [
|
18
|
+
"commands:read",
|
19
|
+
"health:read"
|
20
|
+
]
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"api_keys": {
|
24
|
+
"admin_secret_key_123": {
|
25
|
+
"role": "admin",
|
26
|
+
"description": "Admin API key"
|
27
|
+
},
|
28
|
+
"user_secret_key_456": {
|
29
|
+
"role": "user",
|
30
|
+
"description": "User API key"
|
31
|
+
},
|
32
|
+
"readonly_secret_key_789": {
|
33
|
+
"role": "readonly",
|
34
|
+
"description": "Read-only API key"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,162 @@
|
|
1
|
+
{
|
2
|
+
"roles": {
|
3
|
+
"admin": {
|
4
|
+
"description": "Administrator with full access",
|
5
|
+
"allowed_servers": ["*"],
|
6
|
+
"allowed_clients": ["*"],
|
7
|
+
"permissions": ["read", "write", "delete", "admin"],
|
8
|
+
"priority": 100
|
9
|
+
},
|
10
|
+
"super-admin": {
|
11
|
+
"description": "Super administrator with system-level access",
|
12
|
+
"allowed_servers": ["*"],
|
13
|
+
"allowed_clients": ["*"],
|
14
|
+
"permissions": ["read", "write", "delete", "admin", "system"],
|
15
|
+
"priority": 200
|
16
|
+
},
|
17
|
+
"kubernetes_service": {
|
18
|
+
"description": "Kubernetes service with cluster management access",
|
19
|
+
"allowed_servers": ["kubernetes_manager", "kubernetes_api", "cluster_monitor", "k8s_operator"],
|
20
|
+
"allowed_clients": ["admin", "super-admin", "kubernetes_service", "ca_root", "ca_intermediate"],
|
21
|
+
"permissions": ["read", "write", "system"],
|
22
|
+
"priority": 120
|
23
|
+
},
|
24
|
+
"ca_root": {
|
25
|
+
"description": "Root Certificate Authority with full certificate management",
|
26
|
+
"allowed_servers": ["*"],
|
27
|
+
"allowed_clients": ["admin", "super-admin", "ca_root", "ca_intermediate"],
|
28
|
+
"permissions": ["read", "write", "delete", "admin", "system"],
|
29
|
+
"priority": 180
|
30
|
+
},
|
31
|
+
"ca_intermediate": {
|
32
|
+
"description": "Intermediate Certificate Authority with delegated certificate management",
|
33
|
+
"allowed_servers": ["certificate_manager", "ssl_manager", "tls_manager"],
|
34
|
+
"allowed_clients": ["admin", "super-admin", "ca_root", "ca_intermediate", "kubernetes_service"],
|
35
|
+
"permissions": ["read", "write", "admin"],
|
36
|
+
"priority": 140
|
37
|
+
},
|
38
|
+
"operator": {
|
39
|
+
"description": "Operator with limited access",
|
40
|
+
"allowed_servers": ["kubernetes_manager", "docker_manager", "monitor", "aiadm"],
|
41
|
+
"allowed_clients": ["admin", "super-admin", "operator"],
|
42
|
+
"permissions": ["read", "write"],
|
43
|
+
"priority": 50
|
44
|
+
},
|
45
|
+
"user": {
|
46
|
+
"description": "Regular user with basic access",
|
47
|
+
"allowed_servers": ["basic_commands", "info_commands"],
|
48
|
+
"allowed_clients": ["admin", "super-admin", "operator", "user"],
|
49
|
+
"permissions": ["read"],
|
50
|
+
"priority": 10
|
51
|
+
},
|
52
|
+
"guest": {
|
53
|
+
"description": "Guest user with minimal access",
|
54
|
+
"allowed_servers": ["help", "info"],
|
55
|
+
"allowed_clients": ["admin", "super-admin", "operator", "user", "guest"],
|
56
|
+
"permissions": ["read"],
|
57
|
+
"priority": 1
|
58
|
+
},
|
59
|
+
"system": {
|
60
|
+
"description": "System service with internal access",
|
61
|
+
"allowed_servers": ["*"],
|
62
|
+
"allowed_clients": ["admin", "super-admin", "system"],
|
63
|
+
"permissions": ["read", "write", "system"],
|
64
|
+
"priority": 150
|
65
|
+
}
|
66
|
+
},
|
67
|
+
"default_policy": {
|
68
|
+
"deny_by_default": true,
|
69
|
+
"require_role_match": true,
|
70
|
+
"case_sensitive": false,
|
71
|
+
"allow_wildcard": true
|
72
|
+
},
|
73
|
+
"role_hierarchy": {
|
74
|
+
"super-admin": ["admin", "user"],
|
75
|
+
"admin": ["operator", "user"],
|
76
|
+
"kubernetes_service": ["operator", "user"],
|
77
|
+
"ca_root": ["admin", "ca_intermediate", "kubernetes_service"],
|
78
|
+
"ca_intermediate": ["operator", "user"],
|
79
|
+
"operator": ["user"],
|
80
|
+
"user": ["guest"],
|
81
|
+
"system": ["admin", "user"]
|
82
|
+
},
|
83
|
+
"permissions": {
|
84
|
+
"read": {
|
85
|
+
"description": "Read access to data and commands",
|
86
|
+
"level": 1
|
87
|
+
},
|
88
|
+
"write": {
|
89
|
+
"description": "Write access to data and commands",
|
90
|
+
"level": 2
|
91
|
+
},
|
92
|
+
"delete": {
|
93
|
+
"description": "Delete access to data and commands",
|
94
|
+
"level": 3
|
95
|
+
},
|
96
|
+
"admin": {
|
97
|
+
"description": "Administrative access",
|
98
|
+
"level": 4
|
99
|
+
},
|
100
|
+
"system": {
|
101
|
+
"description": "System-level access",
|
102
|
+
"level": 5
|
103
|
+
}
|
104
|
+
},
|
105
|
+
"server_roles": {
|
106
|
+
"kubernetes_manager": {
|
107
|
+
"description": "Kubernetes management server",
|
108
|
+
"required_roles": ["admin", "operator", "kubernetes_service"],
|
109
|
+
"allowed_commands": ["k8s_*", "system_monitor"]
|
110
|
+
},
|
111
|
+
"kubernetes_api": {
|
112
|
+
"description": "Kubernetes API server",
|
113
|
+
"required_roles": ["kubernetes_service", "admin"],
|
114
|
+
"allowed_commands": ["k8s_api_*", "cluster_*"]
|
115
|
+
},
|
116
|
+
"cluster_monitor": {
|
117
|
+
"description": "Kubernetes cluster monitoring server",
|
118
|
+
"required_roles": ["kubernetes_service", "admin"],
|
119
|
+
"allowed_commands": ["monitor_*", "metrics_*"]
|
120
|
+
},
|
121
|
+
"k8s_operator": {
|
122
|
+
"description": "Kubernetes operator server",
|
123
|
+
"required_roles": ["kubernetes_service", "admin"],
|
124
|
+
"allowed_commands": ["operator_*", "crd_*"]
|
125
|
+
},
|
126
|
+
"certificate_manager": {
|
127
|
+
"description": "Certificate management server",
|
128
|
+
"required_roles": ["ca_root", "ca_intermediate", "admin"],
|
129
|
+
"allowed_commands": ["cert_*", "ca_*", "ssl_*"]
|
130
|
+
},
|
131
|
+
"ssl_manager": {
|
132
|
+
"description": "SSL/TLS management server",
|
133
|
+
"required_roles": ["ca_intermediate", "admin"],
|
134
|
+
"allowed_commands": ["ssl_*", "tls_*", "cert_*"]
|
135
|
+
},
|
136
|
+
"tls_manager": {
|
137
|
+
"description": "TLS management server",
|
138
|
+
"required_roles": ["ca_intermediate", "admin"],
|
139
|
+
"allowed_commands": ["tls_*", "mtls_*", "cert_*"]
|
140
|
+
},
|
141
|
+
"docker_manager": {
|
142
|
+
"description": "Docker management server",
|
143
|
+
"required_roles": ["admin", "operator"],
|
144
|
+
"allowed_commands": ["docker_*", "system_monitor"]
|
145
|
+
},
|
146
|
+
"aiadm": {
|
147
|
+
"description": "AI Admin server",
|
148
|
+
"required_roles": ["admin", "operator"],
|
149
|
+
"allowed_commands": ["*"]
|
150
|
+
},
|
151
|
+
"basic_commands": {
|
152
|
+
"description": "Basic command server",
|
153
|
+
"required_roles": ["user", "admin", "operator"],
|
154
|
+
"allowed_commands": ["help", "config", "health", "info"]
|
155
|
+
},
|
156
|
+
"help": {
|
157
|
+
"description": "Help server",
|
158
|
+
"required_roles": ["guest", "user", "admin", "operator"],
|
159
|
+
"allowed_commands": ["help"]
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
mcp_proxy_adapter/version.py
CHANGED