mcp4openapi 0.3.1 → 0.3.3
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.
- package/README.md +7 -0
- package/dist/src/core/cli-config.d.ts.map +1 -1
- package/dist/src/core/cli-config.js +2 -0
- package/dist/src/core/cli-config.js.map +1 -1
- package/dist/src/core/index.d.ts.map +1 -1
- package/dist/src/core/index.js +18 -3
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/index.js +0 -0
- package/dist/src/profile/profile-allowlist.d.ts +18 -0
- package/dist/src/profile/profile-allowlist.d.ts.map +1 -0
- package/dist/src/profile/profile-allowlist.js +68 -0
- package/dist/src/profile/profile-allowlist.js.map +1 -0
- package/dist/src/profile/profile-registry.d.ts +5 -0
- package/dist/src/profile/profile-registry.d.ts.map +1 -1
- package/dist/src/profile/profile-registry.js +38 -14
- package/dist/src/profile/profile-registry.js.map +1 -1
- package/package.json +2 -2
- package/profiles/gitlab/developer-profile-oauth.json +243 -41
- package/profiles/gitlab/developer-profile-oauth.test.json +1009 -5
- package/profiles/gitlab/openapi.yaml +1419 -164
- package/profiles/gitlab/profile-optimized-oauth.json +785 -0
- package/profiles/gitlab/profile-optimized-oauth.test.json +1566 -0
- package/profiles/grafana/openapi.json +28078 -0
- package/profiles/grafana/profile.json +1083 -0
- package/profiles/grafana/profile.test.json +235 -0
- package/profiles/mattermost/openapi.yaml +27434 -0
- package/profiles/mattermost/profile.json +463 -0
- package/profiles/mattermost/profile.test.json +607 -0
- package/profiles/n8n/profile-optimized.json +1002 -364
- package/profiles/n8n/profile-optimized.test.json +43 -43
- package/dist/src/argument-normalizer.d.ts +0 -5
- package/dist/src/argument-normalizer.d.ts.map +0 -1
- package/dist/src/argument-normalizer.js +0 -61
- package/dist/src/argument-normalizer.js.map +0 -1
- package/dist/src/cli-config.d.ts +0 -9
- package/dist/src/cli-config.d.ts.map +0 -1
- package/dist/src/cli-config.js +0 -111
- package/dist/src/cli-config.js.map +0 -1
- package/dist/src/composite-executor.d.ts +0 -77
- package/dist/src/composite-executor.d.ts.map +0 -1
- package/dist/src/composite-executor.js +0 -193
- package/dist/src/composite-executor.js.map +0 -1
- package/dist/src/constants.d.ts +0 -85
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/constants.js +0 -85
- package/dist/src/constants.js.map +0 -1
- package/dist/src/dag-executor.d.ts +0 -49
- package/dist/src/dag-executor.d.ts.map +0 -1
- package/dist/src/dag-executor.js +0 -138
- package/dist/src/dag-executor.js.map +0 -1
- package/dist/src/errors.d.ts +0 -59
- package/dist/src/errors.d.ts.map +0 -1
- package/dist/src/errors.js +0 -119
- package/dist/src/errors.js.map +0 -1
- package/dist/src/filtering.d.ts +0 -19
- package/dist/src/filtering.d.ts.map +0 -1
- package/dist/src/filtering.js +0 -292
- package/dist/src/filtering.js.map +0 -1
- package/dist/src/http-client-factory.d.ts +0 -62
- package/dist/src/http-client-factory.d.ts.map +0 -1
- package/dist/src/http-client-factory.js +0 -133
- package/dist/src/http-client-factory.js.map +0 -1
- package/dist/src/http-transport-config.d.ts +0 -6
- package/dist/src/http-transport-config.d.ts.map +0 -1
- package/dist/src/http-transport-config.js +0 -47
- package/dist/src/http-transport-config.js.map +0 -1
- package/dist/src/http-transport.d.ts +0 -316
- package/dist/src/http-transport.d.ts.map +0 -1
- package/dist/src/http-transport.js +0 -2412
- package/dist/src/http-transport.js.map +0 -1
- package/dist/src/interceptors.d.ts +0 -116
- package/dist/src/interceptors.d.ts.map +0 -1
- package/dist/src/interceptors.js +0 -392
- package/dist/src/interceptors.js.map +0 -1
- package/dist/src/jsonrpc-validator.d.ts +0 -27
- package/dist/src/jsonrpc-validator.d.ts.map +0 -1
- package/dist/src/jsonrpc-validator.js +0 -58
- package/dist/src/jsonrpc-validator.js.map +0 -1
- package/dist/src/logger.d.ts +0 -59
- package/dist/src/logger.d.ts.map +0 -1
- package/dist/src/logger.js +0 -177
- package/dist/src/logger.js.map +0 -1
- package/dist/src/mcp-server-manager.d.ts +0 -20
- package/dist/src/mcp-server-manager.d.ts.map +0 -1
- package/dist/src/mcp-server-manager.js +0 -38
- package/dist/src/mcp-server-manager.js.map +0 -1
- package/dist/src/mcp-server.d.ts +0 -203
- package/dist/src/mcp-server.d.ts.map +0 -1
- package/dist/src/mcp-server.js +0 -1369
- package/dist/src/mcp-server.js.map +0 -1
- package/dist/src/metrics.d.ts +0 -97
- package/dist/src/metrics.d.ts.map +0 -1
- package/dist/src/metrics.js +0 -273
- package/dist/src/metrics.js.map +0 -1
- package/dist/src/naming-warnings.d.ts +0 -23
- package/dist/src/naming-warnings.d.ts.map +0 -1
- package/dist/src/naming-warnings.js +0 -83
- package/dist/src/naming-warnings.js.map +0 -1
- package/dist/src/naming.d.ts +0 -58
- package/dist/src/naming.d.ts.map +0 -1
- package/dist/src/naming.js +0 -510
- package/dist/src/naming.js.map +0 -1
- package/dist/src/oauth-provider.d.ts +0 -131
- package/dist/src/oauth-provider.d.ts.map +0 -1
- package/dist/src/oauth-provider.js +0 -836
- package/dist/src/oauth-provider.js.map +0 -1
- package/dist/src/openapi-parser.d.ts +0 -70
- package/dist/src/openapi-parser.d.ts.map +0 -1
- package/dist/src/openapi-parser.js +0 -436
- package/dist/src/openapi-parser.js.map +0 -1
- package/dist/src/profile-loader.d.ts +0 -78
- package/dist/src/profile-loader.d.ts.map +0 -1
- package/dist/src/profile-loader.js +0 -483
- package/dist/src/profile-loader.js.map +0 -1
- package/dist/src/profile-registry.d.ts +0 -18
- package/dist/src/profile-registry.d.ts.map +0 -1
- package/dist/src/profile-registry.js +0 -26
- package/dist/src/profile-registry.js.map +0 -1
- package/dist/src/profile-resolver.d.ts +0 -19
- package/dist/src/profile-resolver.d.ts.map +0 -1
- package/dist/src/profile-resolver.js +0 -167
- package/dist/src/profile-resolver.js.map +0 -1
- package/dist/src/proxy-executor.d.ts +0 -86
- package/dist/src/proxy-executor.d.ts.map +0 -1
- package/dist/src/proxy-executor.js +0 -497
- package/dist/src/proxy-executor.js.map +0 -1
- package/dist/src/schema-validator.d.ts +0 -30
- package/dist/src/schema-validator.d.ts.map +0 -1
- package/dist/src/schema-validator.js +0 -128
- package/dist/src/schema-validator.js.map +0 -1
- package/dist/src/startup-profile.d.ts +0 -17
- package/dist/src/startup-profile.d.ts.map +0 -1
- package/dist/src/startup-profile.js +0 -30
- package/dist/src/startup-profile.js.map +0 -1
- package/dist/src/startup-validation.d.ts +0 -11
- package/dist/src/startup-validation.d.ts.map +0 -1
- package/dist/src/startup-validation.js +0 -21
- package/dist/src/startup-validation.js.map +0 -1
- package/dist/src/tool-filter.d.ts +0 -65
- package/dist/src/tool-filter.d.ts.map +0 -1
- package/dist/src/tool-filter.js +0 -471
- package/dist/src/tool-filter.js.map +0 -1
- package/dist/src/tool-generator.d.ts +0 -67
- package/dist/src/tool-generator.d.ts.map +0 -1
- package/dist/src/tool-generator.js +0 -182
- package/dist/src/tool-generator.js.map +0 -1
- package/dist/src/validation-utils.d.ts +0 -49
- package/dist/src/validation-utils.d.ts.map +0 -1
- package/dist/src/validation-utils.js +0 -138
- package/dist/src/validation-utils.js.map +0 -1
- package/profiles/gitlab/developer-profile.json +0 -1508
- package/profiles/gitlab/developer-profile.test.json +0 -3432
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../src/testing/test-schema.ts",
|
|
3
|
+
"profile_name": "grafana-optimized",
|
|
4
|
+
"scenarios": [
|
|
5
|
+
{
|
|
6
|
+
"name": "Create Folder",
|
|
7
|
+
"tool": "create_content",
|
|
8
|
+
"arguments": {
|
|
9
|
+
"action": "create_folder",
|
|
10
|
+
"title": "Team Dashboards",
|
|
11
|
+
"uid": "team-dashboards",
|
|
12
|
+
"description": "Team folder"
|
|
13
|
+
},
|
|
14
|
+
"mocks": [
|
|
15
|
+
{
|
|
16
|
+
"operationId": "createFolder",
|
|
17
|
+
"response": {
|
|
18
|
+
"body": {
|
|
19
|
+
"uid": "team-dashboards",
|
|
20
|
+
"title": "Team Dashboards"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"expect": {
|
|
26
|
+
"success": true,
|
|
27
|
+
"result": {
|
|
28
|
+
"uid": "team-dashboards"
|
|
29
|
+
},
|
|
30
|
+
"request": {
|
|
31
|
+
"method": "POST",
|
|
32
|
+
"path": "/folders",
|
|
33
|
+
"body": {
|
|
34
|
+
"title": "Team Dashboards",
|
|
35
|
+
"uid": "team-dashboards",
|
|
36
|
+
"description": "Team folder"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "Search Dashboards",
|
|
43
|
+
"tool": "retrieve_content",
|
|
44
|
+
"arguments": {
|
|
45
|
+
"action": "search",
|
|
46
|
+
"query": "cpu"
|
|
47
|
+
},
|
|
48
|
+
"mocks": [
|
|
49
|
+
{
|
|
50
|
+
"operationId": "search",
|
|
51
|
+
"response": {
|
|
52
|
+
"body": [
|
|
53
|
+
{
|
|
54
|
+
"id": 1,
|
|
55
|
+
"title": "CPU Utilization"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"expect": {
|
|
62
|
+
"success": true,
|
|
63
|
+
"result": [
|
|
64
|
+
{
|
|
65
|
+
"title": "CPU Utilization"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"request": {
|
|
69
|
+
"method": "GET",
|
|
70
|
+
"path": "/search",
|
|
71
|
+
"query": {
|
|
72
|
+
"query": "cpu"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "Update Folder",
|
|
79
|
+
"tool": "update_content",
|
|
80
|
+
"arguments": {
|
|
81
|
+
"action": "update_folder",
|
|
82
|
+
"folder_uid": "team-dashboards",
|
|
83
|
+
"title": "Team Dashboards",
|
|
84
|
+
"description": "Updated description"
|
|
85
|
+
},
|
|
86
|
+
"mocks": [
|
|
87
|
+
{
|
|
88
|
+
"operationId": "updateFolder",
|
|
89
|
+
"response": {
|
|
90
|
+
"body": {
|
|
91
|
+
"uid": "team-dashboards",
|
|
92
|
+
"title": "Team Dashboards"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"expect": {
|
|
98
|
+
"success": true,
|
|
99
|
+
"result": {
|
|
100
|
+
"uid": "team-dashboards"
|
|
101
|
+
},
|
|
102
|
+
"request": {
|
|
103
|
+
"method": "PUT",
|
|
104
|
+
"path": "/folders/team-dashboards",
|
|
105
|
+
"body": {
|
|
106
|
+
"title": "Team Dashboards",
|
|
107
|
+
"description": "Updated description"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "Delete Folder",
|
|
114
|
+
"tool": "delete_content",
|
|
115
|
+
"arguments": {
|
|
116
|
+
"action": "delete_folder",
|
|
117
|
+
"folder_uid": "team-dashboards"
|
|
118
|
+
},
|
|
119
|
+
"mocks": [
|
|
120
|
+
{
|
|
121
|
+
"operationId": "deleteFolder",
|
|
122
|
+
"response": {
|
|
123
|
+
"body": {}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"expect": {
|
|
128
|
+
"success": true,
|
|
129
|
+
"request": {
|
|
130
|
+
"method": "DELETE",
|
|
131
|
+
"path": "/folders/team-dashboards"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"coverage": {
|
|
137
|
+
"require_all_actions": true,
|
|
138
|
+
"require_request_assertions": true,
|
|
139
|
+
"skip_actions": {
|
|
140
|
+
"create_content.create_dashboard": "Not covered in minimal smoke test.",
|
|
141
|
+
"create_content.import_dashboard": "Not covered in minimal smoke test.",
|
|
142
|
+
"create_content.create_datasource": "Not covered in minimal smoke test.",
|
|
143
|
+
"create_content.create_annotation": "Not covered in minimal smoke test.",
|
|
144
|
+
"create_content.create_graphite_annotation": "Not covered in minimal smoke test.",
|
|
145
|
+
"create_content.create_snapshot": "Not covered in minimal smoke test.",
|
|
146
|
+
"create_content.create_service_account": "Not covered in minimal smoke test.",
|
|
147
|
+
"create_content.create_service_account_token": "Not covered in minimal smoke test.",
|
|
148
|
+
"create_content.create_team": "Not covered in minimal smoke test.",
|
|
149
|
+
"create_content.add_team_member": "Not covered in minimal smoke test.",
|
|
150
|
+
"create_content.create_public_dashboard": "Not covered in minimal smoke test.",
|
|
151
|
+
"create_content.create_correlation": "Not covered in minimal smoke test.",
|
|
152
|
+
"retrieve_content.list_dashboards_tags": "Not covered in minimal smoke test.",
|
|
153
|
+
"retrieve_content.get_dashboard_home": "Not covered in minimal smoke test.",
|
|
154
|
+
"retrieve_content.get_dashboard_by_uid": "Not covered in minimal smoke test.",
|
|
155
|
+
"retrieve_content.get_dashboard_versions_by_uid": "Not covered in minimal smoke test.",
|
|
156
|
+
"retrieve_content.get_dashboard_version_by_uid": "Not covered in minimal smoke test.",
|
|
157
|
+
"retrieve_content.list_public_dashboards": "Not covered in minimal smoke test.",
|
|
158
|
+
"retrieve_content.get_public_dashboard": "Not covered in minimal smoke test.",
|
|
159
|
+
"retrieve_content.view_public_dashboard": "Not covered in minimal smoke test.",
|
|
160
|
+
"retrieve_content.get_public_annotations": "Not covered in minimal smoke test.",
|
|
161
|
+
"retrieve_content.list_folders": "Not covered in minimal smoke test.",
|
|
162
|
+
"retrieve_content.get_folder_by_uid": "Not covered in minimal smoke test.",
|
|
163
|
+
"retrieve_content.get_folder_by_id": "Not covered in minimal smoke test.",
|
|
164
|
+
"retrieve_content.get_folder_counts": "Not covered in minimal smoke test.",
|
|
165
|
+
"retrieve_content.list_datasources": "Not covered in minimal smoke test.",
|
|
166
|
+
"retrieve_content.get_datasource_by_id": "Not covered in minimal smoke test.",
|
|
167
|
+
"retrieve_content.get_datasource_by_uid": "Not covered in minimal smoke test.",
|
|
168
|
+
"retrieve_content.get_datasource_by_name": "Not covered in minimal smoke test.",
|
|
169
|
+
"retrieve_content.get_datasource_id_by_name": "Not covered in minimal smoke test.",
|
|
170
|
+
"retrieve_content.check_datasource_health_by_id": "Not covered in minimal smoke test.",
|
|
171
|
+
"retrieve_content.check_datasource_health_by_uid": "Not covered in minimal smoke test.",
|
|
172
|
+
"retrieve_content.get_datasource_resource_by_id": "Not covered in minimal smoke test.",
|
|
173
|
+
"retrieve_content.get_datasource_resource_by_uid": "Not covered in minimal smoke test.",
|
|
174
|
+
"retrieve_content.query_metrics": "Not covered in minimal smoke test.",
|
|
175
|
+
"retrieve_content.get_annotations": "Not covered in minimal smoke test.",
|
|
176
|
+
"retrieve_content.get_annotation_by_id": "Not covered in minimal smoke test.",
|
|
177
|
+
"retrieve_content.get_annotation_tags": "Not covered in minimal smoke test.",
|
|
178
|
+
"retrieve_content.get_snapshot": "Not covered in minimal smoke test.",
|
|
179
|
+
"retrieve_content.search_snapshots": "Not covered in minimal smoke test.",
|
|
180
|
+
"retrieve_content.get_snapshot_sharing_options": "Not covered in minimal smoke test.",
|
|
181
|
+
"retrieve_content.list_service_accounts": "Not covered in minimal smoke test.",
|
|
182
|
+
"retrieve_content.get_service_account": "Not covered in minimal smoke test.",
|
|
183
|
+
"retrieve_content.list_service_account_tokens": "Not covered in minimal smoke test.",
|
|
184
|
+
"retrieve_content.search_users": "Not covered in minimal smoke test.",
|
|
185
|
+
"retrieve_content.search_users_paged": "Not covered in minimal smoke test.",
|
|
186
|
+
"retrieve_content.get_user_by_id": "Not covered in minimal smoke test.",
|
|
187
|
+
"retrieve_content.get_user_by_login_or_email": "Not covered in minimal smoke test.",
|
|
188
|
+
"retrieve_content.get_user_orgs": "Not covered in minimal smoke test.",
|
|
189
|
+
"retrieve_content.get_user_teams": "Not covered in minimal smoke test.",
|
|
190
|
+
"retrieve_content.search_teams": "Not covered in minimal smoke test.",
|
|
191
|
+
"retrieve_content.get_team_by_id": "Not covered in minimal smoke test.",
|
|
192
|
+
"retrieve_content.list_team_members": "Not covered in minimal smoke test.",
|
|
193
|
+
"retrieve_content.get_team_preferences": "Not covered in minimal smoke test.",
|
|
194
|
+
"retrieve_content.get_dashboard_permissions_by_uid": "Not covered in minimal smoke test.",
|
|
195
|
+
"retrieve_content.get_dashboard_permissions_by_id": "Not covered in minimal smoke test.",
|
|
196
|
+
"retrieve_content.get_folder_permissions": "Not covered in minimal smoke test.",
|
|
197
|
+
"retrieve_content.get_correlations": "Not covered in minimal smoke test.",
|
|
198
|
+
"retrieve_content.get_correlations_by_source_uid": "Not covered in minimal smoke test.",
|
|
199
|
+
"retrieve_content.get_correlation": "Not covered in minimal smoke test.",
|
|
200
|
+
"update_content.update_dashboard": "Not covered in minimal smoke test.",
|
|
201
|
+
"update_content.move_folder": "Not covered in minimal smoke test.",
|
|
202
|
+
"update_content.update_folder_permissions": "Not covered in minimal smoke test.",
|
|
203
|
+
"update_content.update_datasource_by_id": "Not covered in minimal smoke test.",
|
|
204
|
+
"update_content.update_datasource_by_uid": "Not covered in minimal smoke test.",
|
|
205
|
+
"update_content.update_annotation": "Not covered in minimal smoke test.",
|
|
206
|
+
"update_content.patch_annotation": "Not covered in minimal smoke test.",
|
|
207
|
+
"update_content.update_service_account": "Not covered in minimal smoke test.",
|
|
208
|
+
"update_content.update_team": "Not covered in minimal smoke test.",
|
|
209
|
+
"update_content.set_team_memberships": "Not covered in minimal smoke test.",
|
|
210
|
+
"update_content.update_team_member": "Not covered in minimal smoke test.",
|
|
211
|
+
"update_content.update_team_preferences": "Not covered in minimal smoke test.",
|
|
212
|
+
"update_content.update_user": "Not covered in minimal smoke test.",
|
|
213
|
+
"update_content.update_public_dashboard": "Not covered in minimal smoke test.",
|
|
214
|
+
"update_content.update_dashboard_permissions_by_uid": "Not covered in minimal smoke test.",
|
|
215
|
+
"update_content.update_dashboard_permissions_by_id": "Not covered in minimal smoke test.",
|
|
216
|
+
"update_content.restore_dashboard_version": "Not covered in minimal smoke test.",
|
|
217
|
+
"update_content.update_correlation": "Not covered in minimal smoke test.",
|
|
218
|
+
"delete_content.delete_dashboard": "Not covered in minimal smoke test.",
|
|
219
|
+
"delete_content.delete_datasource_by_id": "Not covered in minimal smoke test.",
|
|
220
|
+
"delete_content.delete_datasource_by_uid": "Not covered in minimal smoke test.",
|
|
221
|
+
"delete_content.delete_datasource_by_name": "Not covered in minimal smoke test.",
|
|
222
|
+
"delete_content.delete_annotation": "Not covered in minimal smoke test.",
|
|
223
|
+
"delete_content.delete_snapshot": "Not covered in minimal smoke test.",
|
|
224
|
+
"delete_content.delete_snapshot_by_delete_key": "Not covered in minimal smoke test.",
|
|
225
|
+
"delete_content.delete_service_account": "Not covered in minimal smoke test.",
|
|
226
|
+
"delete_content.delete_service_account_token": "Not covered in minimal smoke test.",
|
|
227
|
+
"delete_content.delete_team": "Not covered in minimal smoke test.",
|
|
228
|
+
"delete_content.remove_team_member": "Not covered in minimal smoke test.",
|
|
229
|
+
"delete_content.delete_public_dashboard": "Not covered in minimal smoke test.",
|
|
230
|
+
"delete_content.delete_correlation": "Not covered in minimal smoke test.",
|
|
231
|
+
"delete_content.delete_datasource_proxy_by_id": "Not covered in minimal smoke test.",
|
|
232
|
+
"delete_content.delete_datasource_proxy_by_uid": "Not covered in minimal smoke test."
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|