@smartbear/mcp 0.29.0 → 0.30.0
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/dist/common/server.js +5 -1
- package/dist/package.json.js +1 -1
- package/dist/pactflow/client/tools.js +408 -0
- package/dist/pactflow/client.js +4 -11
- package/dist/reflect/client.js +5 -1
- package/dist/reflect/tool/tests/create-segment.js +18 -0
- package/dist/reflect/tool/tests/create-test.js +18 -0
- package/dist/reflect/tool/tests/definition.js +190 -0
- package/dist/swagger/client/functional-testing-api.js +107 -113
- package/dist/swagger/client/functional-testing-tools.js +10 -1
- package/dist/swagger/client/functional-testing-types.js +6 -0
- package/dist/swagger/client/portal-types.js +144 -10
- package/dist/swagger/client/registry-types.js +60 -1
- package/dist/swagger/client/tool-constants.js +20 -0
- package/dist/swagger/client/tools.js +87 -29
- package/dist/swagger/client/user-management-types.js +14 -0
- package/dist/swagger/client.js +8 -2
- package/package.json +1 -1
|
@@ -9,6 +9,10 @@ const TOOLS = [
|
|
|
9
9
|
purpose: "Generate Pact tests for API interactions",
|
|
10
10
|
inputSchema: GenerationInputSchema,
|
|
11
11
|
handler: "generate",
|
|
12
|
+
readOnly: true,
|
|
13
|
+
destructive: false,
|
|
14
|
+
idempotent: true,
|
|
15
|
+
openWorld: false,
|
|
12
16
|
clients: ["pactflow"],
|
|
13
17
|
// ONLY pactflow
|
|
14
18
|
enableElicitation: true,
|
|
@@ -21,6 +25,10 @@ const TOOLS = [
|
|
|
21
25
|
purpose: "Review Pact tests for API interactions",
|
|
22
26
|
inputSchema: RefineInputSchema,
|
|
23
27
|
handler: "review",
|
|
28
|
+
readOnly: true,
|
|
29
|
+
destructive: false,
|
|
30
|
+
idempotent: true,
|
|
31
|
+
openWorld: false,
|
|
24
32
|
clients: ["pactflow"],
|
|
25
33
|
enableElicitation: true,
|
|
26
34
|
tags: ["pactflow-ai"]
|
|
@@ -34,6 +42,10 @@ const TOOLS = [
|
|
|
34
42
|
provider: z.string().describe("name of the provider to retrieve states for")
|
|
35
43
|
}),
|
|
36
44
|
handler: "getProviderStates",
|
|
45
|
+
readOnly: true,
|
|
46
|
+
destructive: false,
|
|
47
|
+
idempotent: true,
|
|
48
|
+
openWorld: false,
|
|
37
49
|
clients: ["pactflow", "pact_broker"]
|
|
38
50
|
},
|
|
39
51
|
{
|
|
@@ -43,6 +55,10 @@ const TOOLS = [
|
|
|
43
55
|
purpose: "To serve as a deployment safety check within the PactBroker and PactFlow ecosystem, leveraging contract testing results to validate whether a specific service / pacticipant version is compatible with all integrated services. This feature prevents unsafe releases, reduces integration risks, and enables teams to confidently automate deployments across environments with a clear, auditable record of verification results.",
|
|
44
56
|
inputSchema: CanIDeploySchema,
|
|
45
57
|
handler: "canIDeploy",
|
|
58
|
+
readOnly: true,
|
|
59
|
+
destructive: false,
|
|
60
|
+
idempotent: true,
|
|
61
|
+
openWorld: false,
|
|
46
62
|
clients: ["pactflow", "pact_broker"]
|
|
47
63
|
},
|
|
48
64
|
{
|
|
@@ -60,6 +76,10 @@ const TOOLS = [
|
|
|
60
76
|
],
|
|
61
77
|
inputSchema: MatrixSchema,
|
|
62
78
|
handler: "getMatrix",
|
|
79
|
+
readOnly: true,
|
|
80
|
+
destructive: false,
|
|
81
|
+
idempotent: true,
|
|
82
|
+
openWorld: false,
|
|
63
83
|
clients: ["pactflow", "pact_broker"]
|
|
64
84
|
},
|
|
65
85
|
{
|
|
@@ -75,6 +95,10 @@ const TOOLS = [
|
|
|
75
95
|
"Provide detailed error context when PactFlow AI features are unavailable due to account limitations"
|
|
76
96
|
],
|
|
77
97
|
handler: "checkAIEntitlements",
|
|
98
|
+
readOnly: true,
|
|
99
|
+
destructive: false,
|
|
100
|
+
idempotent: true,
|
|
101
|
+
openWorld: false,
|
|
78
102
|
clients: ["pactflow"]
|
|
79
103
|
},
|
|
80
104
|
{
|
|
@@ -84,6 +108,10 @@ const TOOLS = [
|
|
|
84
108
|
purpose: "Fetch metrics across the workspace. Use this to get an overview of contract testing usage, resource consumption and account-wide statistics.",
|
|
85
109
|
inputSchema: z.object({}),
|
|
86
110
|
handler: "getMetrics",
|
|
111
|
+
readOnly: true,
|
|
112
|
+
destructive: false,
|
|
113
|
+
idempotent: true,
|
|
114
|
+
openWorld: false,
|
|
87
115
|
clients: ["pactflow", "pact_broker"]
|
|
88
116
|
},
|
|
89
117
|
{
|
|
@@ -93,6 +121,10 @@ const TOOLS = [
|
|
|
93
121
|
purpose: "Fetch metrics for all teams within PactFlow. Use this to get an overview of team-specific contract testing usage, resource consumption and usage statistics.",
|
|
94
122
|
inputSchema: z.object({}),
|
|
95
123
|
handler: "getTeamMetrics",
|
|
124
|
+
readOnly: true,
|
|
125
|
+
destructive: false,
|
|
126
|
+
idempotent: true,
|
|
127
|
+
openWorld: false,
|
|
96
128
|
clients: ["pactflow"]
|
|
97
129
|
},
|
|
98
130
|
{
|
|
@@ -105,6 +137,10 @@ const TOOLS = [
|
|
|
105
137
|
pageSize: z.number().optional().describe("Number of results per page")
|
|
106
138
|
}),
|
|
107
139
|
handler: "listPacticipants",
|
|
140
|
+
readOnly: true,
|
|
141
|
+
destructive: false,
|
|
142
|
+
idempotent: true,
|
|
143
|
+
openWorld: false,
|
|
108
144
|
clients: ["pactflow", "pact_broker"]
|
|
109
145
|
},
|
|
110
146
|
{
|
|
@@ -114,6 +150,10 @@ const TOOLS = [
|
|
|
114
150
|
purpose: "Fetch metadata for a single application/service including its display name, main branch, repository URL, and labels.",
|
|
115
151
|
inputSchema: GetPacticipantSchema,
|
|
116
152
|
handler: "getPacticipant",
|
|
153
|
+
readOnly: true,
|
|
154
|
+
destructive: false,
|
|
155
|
+
idempotent: true,
|
|
156
|
+
openWorld: false,
|
|
117
157
|
clients: ["pactflow", "pact_broker"]
|
|
118
158
|
},
|
|
119
159
|
{
|
|
@@ -123,6 +163,10 @@ const TOOLS = [
|
|
|
123
163
|
purpose: "Explore the branches that have published pacts or verifications. Useful for understanding the active development lines of a service and for identifying stale branches to clean up.",
|
|
124
164
|
inputSchema: ListBranchesSchema,
|
|
125
165
|
handler: "listBranches",
|
|
166
|
+
readOnly: true,
|
|
167
|
+
destructive: false,
|
|
168
|
+
idempotent: true,
|
|
169
|
+
openWorld: false,
|
|
126
170
|
clients: ["pactflow", "pact_broker"]
|
|
127
171
|
},
|
|
128
172
|
{
|
|
@@ -132,6 +176,10 @@ const TOOLS = [
|
|
|
132
176
|
purpose: "List all published versions of a service with their branch and tag associations. Useful for understanding which versions exist and tracing deployment history.",
|
|
133
177
|
inputSchema: ListVersionsSchema,
|
|
134
178
|
handler: "listVersions",
|
|
179
|
+
readOnly: true,
|
|
180
|
+
destructive: false,
|
|
181
|
+
idempotent: true,
|
|
182
|
+
openWorld: false,
|
|
135
183
|
clients: ["pactflow", "pact_broker"]
|
|
136
184
|
},
|
|
137
185
|
{
|
|
@@ -141,6 +189,10 @@ const TOOLS = [
|
|
|
141
189
|
purpose: "Fetch metadata for a single version including its branches, tags, and build URL.",
|
|
142
190
|
inputSchema: GetVersionSchema,
|
|
143
191
|
handler: "getVersion",
|
|
192
|
+
readOnly: true,
|
|
193
|
+
destructive: false,
|
|
194
|
+
idempotent: true,
|
|
195
|
+
openWorld: false,
|
|
144
196
|
clients: ["pactflow", "pact_broker"]
|
|
145
197
|
},
|
|
146
198
|
{
|
|
@@ -150,6 +202,10 @@ const TOOLS = [
|
|
|
150
202
|
purpose: "Quickly identify the most recent version of a service. When a tag is provided, returns the latest version that has that tag applied (e.g. the latest version tagged 'prod').",
|
|
151
203
|
inputSchema: GetLatestVersionSchema,
|
|
152
204
|
handler: "getLatestVersion",
|
|
205
|
+
readOnly: true,
|
|
206
|
+
destructive: false,
|
|
207
|
+
idempotent: true,
|
|
208
|
+
openWorld: false,
|
|
153
209
|
clients: ["pactflow", "pact_broker"]
|
|
154
210
|
},
|
|
155
211
|
{
|
|
@@ -159,6 +215,10 @@ const TOOLS = [
|
|
|
159
215
|
purpose: "Get the list of deployment environments (e.g. development, staging, production) so you can use their UUIDs in record-deployment and can-i-deploy operations.",
|
|
160
216
|
inputSchema: z.object({}),
|
|
161
217
|
handler: "listEnvironments",
|
|
218
|
+
readOnly: true,
|
|
219
|
+
destructive: false,
|
|
220
|
+
idempotent: true,
|
|
221
|
+
openWorld: false,
|
|
162
222
|
clients: ["pactflow", "pact_broker"]
|
|
163
223
|
},
|
|
164
224
|
{
|
|
@@ -168,6 +228,10 @@ const TOOLS = [
|
|
|
168
228
|
purpose: "Fetch metadata for a single environment including its name, display name, production flag, and associated teams.",
|
|
169
229
|
inputSchema: GetEnvironmentSchema,
|
|
170
230
|
handler: "getEnvironment",
|
|
231
|
+
readOnly: true,
|
|
232
|
+
destructive: false,
|
|
233
|
+
idempotent: true,
|
|
234
|
+
openWorld: false,
|
|
171
235
|
clients: ["pactflow", "pact_broker"]
|
|
172
236
|
},
|
|
173
237
|
{
|
|
@@ -177,6 +241,10 @@ const TOOLS = [
|
|
|
177
241
|
purpose: "Inform PactFlow/Pact Broker of a successful deployment so that can-i-deploy checks and contract verification can use real deployment state. This is a key step in the PactFlow deployment workflow — run it after each successful deploy to keep the deployment state accurate.",
|
|
178
242
|
inputSchema: RecordDeploymentSchema,
|
|
179
243
|
handler: "recordDeployment",
|
|
244
|
+
readOnly: false,
|
|
245
|
+
destructive: false,
|
|
246
|
+
idempotent: false,
|
|
247
|
+
openWorld: false,
|
|
180
248
|
clients: ["pactflow", "pact_broker"]
|
|
181
249
|
},
|
|
182
250
|
{
|
|
@@ -186,6 +254,10 @@ const TOOLS = [
|
|
|
186
254
|
purpose: "Check which versions of all services are currently running in an environment. Useful for auditing the state of an environment or for troubleshooting deployment issues.",
|
|
187
255
|
inputSchema: GetCurrentlyDeployedSchema,
|
|
188
256
|
handler: "getCurrentlyDeployed",
|
|
257
|
+
readOnly: true,
|
|
258
|
+
destructive: false,
|
|
259
|
+
idempotent: true,
|
|
260
|
+
openWorld: false,
|
|
189
261
|
clients: ["pactflow", "pact_broker"]
|
|
190
262
|
},
|
|
191
263
|
{
|
|
@@ -195,6 +267,10 @@ const TOOLS = [
|
|
|
195
267
|
purpose: "Use for services that are 'released' rather than 'deployed' — e.g. mobile apps, libraries, or multi-version APIs where multiple versions coexist simultaneously. Unlike record-deployment (which marks previous versions as no longer deployed), record-release marks a version as currently supported without replacing prior versions.",
|
|
196
268
|
inputSchema: RecordReleaseSchema,
|
|
197
269
|
handler: "recordRelease",
|
|
270
|
+
readOnly: false,
|
|
271
|
+
destructive: false,
|
|
272
|
+
idempotent: false,
|
|
273
|
+
openWorld: false,
|
|
198
274
|
clients: ["pactflow", "pact_broker"]
|
|
199
275
|
},
|
|
200
276
|
{
|
|
@@ -204,6 +280,10 @@ const TOOLS = [
|
|
|
204
280
|
purpose: "Check which released versions are still actively supported in an environment. Important for mobile or library workflows where multiple versions are simultaneously in use.",
|
|
205
281
|
inputSchema: GetCurrentlySupportedSchema,
|
|
206
282
|
handler: "getCurrentlySupported",
|
|
283
|
+
readOnly: true,
|
|
284
|
+
destructive: false,
|
|
285
|
+
idempotent: true,
|
|
286
|
+
openWorld: false,
|
|
207
287
|
clients: ["pactflow", "pact_broker"]
|
|
208
288
|
},
|
|
209
289
|
{
|
|
@@ -213,6 +293,10 @@ const TOOLS = [
|
|
|
213
293
|
purpose: "Upload consumer-driven contract files after running consumer tests. Associate each contract with a branch and version number so that PactFlow can match it to provider verification results and enable can-i-deploy checks.",
|
|
214
294
|
inputSchema: PublishConsumerContractsSchema,
|
|
215
295
|
handler: "publishContracts",
|
|
296
|
+
readOnly: false,
|
|
297
|
+
destructive: false,
|
|
298
|
+
idempotent: true,
|
|
299
|
+
openWorld: false,
|
|
216
300
|
clients: ["pactflow", "pact_broker"]
|
|
217
301
|
},
|
|
218
302
|
{
|
|
@@ -222,6 +306,10 @@ const TOOLS = [
|
|
|
222
306
|
purpose: "Upload an OpenAPI specification as a provider contract along with the results of running a tool (e.g. Dredd, Schemathesis) that verifies the provider implementation against the spec. This enables PactFlow to perform automated cross-contract verification without requiring the provider to run the consumer Pact tests.",
|
|
223
307
|
inputSchema: PublishProviderContractSchema,
|
|
224
308
|
handler: "publishProviderContract",
|
|
309
|
+
readOnly: false,
|
|
310
|
+
destructive: false,
|
|
311
|
+
idempotent: true,
|
|
312
|
+
openWorld: false,
|
|
225
313
|
clients: ["pactflow"]
|
|
226
314
|
},
|
|
227
315
|
{
|
|
@@ -231,6 +319,10 @@ const TOOLS = [
|
|
|
231
319
|
purpose: "Fetch the exact set of consumer pacts that a provider needs to verify in its current CI run. Use consumer version selectors to control which consumer branches and environments are included. Enable WIP pacts to get early feedback on new consumer interactions without breaking the provider build.",
|
|
232
320
|
inputSchema: GetPactsForVerificationSchema,
|
|
233
321
|
handler: "getPactsForVerification",
|
|
322
|
+
readOnly: true,
|
|
323
|
+
destructive: false,
|
|
324
|
+
idempotent: true,
|
|
325
|
+
openWorld: false,
|
|
234
326
|
clients: ["pactflow", "pact_broker"]
|
|
235
327
|
},
|
|
236
328
|
{
|
|
@@ -240,6 +332,10 @@ const TOOLS = [
|
|
|
240
332
|
purpose: "Retrieve the OpenAPI specification that was published as the provider contract for a specific version. Also returns the verification status of that contract against all consumer pacts.",
|
|
241
333
|
inputSchema: GetBiDirectionalProviderVersionSchema,
|
|
242
334
|
handler: "getBiDirectionalProviderContract",
|
|
335
|
+
readOnly: true,
|
|
336
|
+
destructive: false,
|
|
337
|
+
idempotent: true,
|
|
338
|
+
openWorld: false,
|
|
243
339
|
clients: ["pactflow"]
|
|
244
340
|
},
|
|
245
341
|
{
|
|
@@ -249,6 +345,10 @@ const TOOLS = [
|
|
|
249
345
|
purpose: "Retrieve the results of the tool (e.g. Dredd, Schemathesis) that verified the provider implementation against its own OpenAPI spec. Use this to understand whether the provider passed its self-verification step.",
|
|
250
346
|
inputSchema: GetBiDirectionalProviderVersionSchema,
|
|
251
347
|
handler: "getBiDirectionalProviderContractVerificationResults",
|
|
348
|
+
readOnly: true,
|
|
349
|
+
destructive: false,
|
|
350
|
+
idempotent: true,
|
|
351
|
+
openWorld: false,
|
|
252
352
|
clients: ["pactflow"]
|
|
253
353
|
},
|
|
254
354
|
{
|
|
@@ -258,6 +358,10 @@ const TOOLS = [
|
|
|
258
358
|
purpose: "Retrieve the consumer-side Pact contracts that PactFlow compared against the provider's OpenAPI spec for a specific provider version. Useful for understanding which consumer interactions triggered a cross-contract verification.",
|
|
259
359
|
inputSchema: GetBiDirectionalProviderVersionSchema,
|
|
260
360
|
handler: "getBiDirectionalConsumerContract",
|
|
361
|
+
readOnly: true,
|
|
362
|
+
destructive: false,
|
|
363
|
+
idempotent: true,
|
|
364
|
+
openWorld: false,
|
|
261
365
|
clients: ["pactflow"]
|
|
262
366
|
},
|
|
263
367
|
{
|
|
@@ -267,6 +371,10 @@ const TOOLS = [
|
|
|
267
371
|
purpose: "Retrieve the results of comparing all consumer Pact contracts against the provider's OpenAPI spec for a specific provider version. Shows whether each consumer interaction is covered by the spec.",
|
|
268
372
|
inputSchema: GetBiDirectionalProviderVersionSchema,
|
|
269
373
|
handler: "getBiDirectionalConsumerContractVerificationResults",
|
|
374
|
+
readOnly: true,
|
|
375
|
+
destructive: false,
|
|
376
|
+
idempotent: true,
|
|
377
|
+
openWorld: false,
|
|
270
378
|
clients: ["pactflow"]
|
|
271
379
|
},
|
|
272
380
|
{
|
|
@@ -276,6 +384,10 @@ const TOOLS = [
|
|
|
276
384
|
purpose: "Retrieve the combined results of PactFlow's automated cross-contract comparison for a specific provider version — the outcome of comparing the provider's OpenAPI spec against all relevant consumer Pact files. This is the key result that determines whether can-i-deploy will pass.",
|
|
277
385
|
inputSchema: GetBiDirectionalProviderVersionSchema,
|
|
278
386
|
handler: "getBiDirectionalCrossContractVerificationResults",
|
|
387
|
+
readOnly: true,
|
|
388
|
+
destructive: false,
|
|
389
|
+
idempotent: true,
|
|
390
|
+
openWorld: false,
|
|
279
391
|
clients: ["pactflow"]
|
|
280
392
|
},
|
|
281
393
|
{
|
|
@@ -285,6 +397,10 @@ const TOOLS = [
|
|
|
285
397
|
purpose: "Retrieve the Pact contract published by a specific consumer version, in the context of a specific provider version. Use this when you need the exact consumer contract that was compared against a given provider spec.",
|
|
286
398
|
inputSchema: GetBiDirectionalConsumerProviderVersionSchema,
|
|
287
399
|
handler: "getBiDirectionalConsumerContractByConsumer",
|
|
400
|
+
readOnly: true,
|
|
401
|
+
destructive: false,
|
|
402
|
+
idempotent: true,
|
|
403
|
+
openWorld: false,
|
|
288
404
|
clients: ["pactflow"]
|
|
289
405
|
},
|
|
290
406
|
{
|
|
@@ -294,6 +410,10 @@ const TOOLS = [
|
|
|
294
410
|
purpose: "Retrieve the provider's OpenAPI spec in the context of a specific consumer version pair. Useful when investigating why a particular consumer-provider combination failed cross-contract verification.",
|
|
295
411
|
inputSchema: GetBiDirectionalConsumerProviderVersionSchema,
|
|
296
412
|
handler: "getBiDirectionalProviderContractByConsumer",
|
|
413
|
+
readOnly: true,
|
|
414
|
+
destructive: false,
|
|
415
|
+
idempotent: true,
|
|
416
|
+
openWorld: false,
|
|
297
417
|
clients: ["pactflow"]
|
|
298
418
|
},
|
|
299
419
|
{
|
|
@@ -303,6 +423,10 @@ const TOOLS = [
|
|
|
303
423
|
purpose: "Retrieve the provider's self-verification results in the context of a specific consumer version pair. Use when diagnosing failures for a particular consumer-provider combination.",
|
|
304
424
|
inputSchema: GetBiDirectionalConsumerProviderVersionSchema,
|
|
305
425
|
handler: "getBiDirectionalProviderContractVerificationResultsByConsumer",
|
|
426
|
+
readOnly: true,
|
|
427
|
+
destructive: false,
|
|
428
|
+
idempotent: true,
|
|
429
|
+
openWorld: false,
|
|
306
430
|
clients: ["pactflow"]
|
|
307
431
|
},
|
|
308
432
|
{
|
|
@@ -312,6 +436,10 @@ const TOOLS = [
|
|
|
312
436
|
purpose: "Retrieve the results of comparing a specific consumer version's Pact against the provider's OpenAPI spec. Shows exactly which interactions passed or failed the cross-contract comparison.",
|
|
313
437
|
inputSchema: GetBiDirectionalConsumerProviderVersionSchema,
|
|
314
438
|
handler: "getBiDirectionalConsumerContractVerificationResultsByConsumer",
|
|
439
|
+
readOnly: true,
|
|
440
|
+
destructive: false,
|
|
441
|
+
idempotent: true,
|
|
442
|
+
openWorld: false,
|
|
315
443
|
clients: ["pactflow"]
|
|
316
444
|
},
|
|
317
445
|
{
|
|
@@ -321,6 +449,10 @@ const TOOLS = [
|
|
|
321
449
|
purpose: "Retrieve the precise cross-contract comparison outcome between a specific consumer version and provider version. This is the most granular BDCT result — use it to understand exactly why a specific consumer-provider pairing succeeded or failed, and which interactions were incompatible.",
|
|
322
450
|
inputSchema: GetBiDirectionalConsumerProviderVersionSchema,
|
|
323
451
|
handler: "getBiDirectionalCrossContractVerificationResultsByConsumer",
|
|
452
|
+
readOnly: true,
|
|
453
|
+
destructive: false,
|
|
454
|
+
idempotent: true,
|
|
455
|
+
openWorld: false,
|
|
324
456
|
clients: ["pactflow"]
|
|
325
457
|
},
|
|
326
458
|
{
|
|
@@ -330,6 +462,10 @@ const TOOLS = [
|
|
|
330
462
|
purpose: "Get a high-level view of all the consumer-provider pairings that have pacts published. An integration is automatically created when a consumer publishes a pact for a provider.",
|
|
331
463
|
inputSchema: z.object({}),
|
|
332
464
|
handler: "listIntegrations",
|
|
465
|
+
readOnly: true,
|
|
466
|
+
destructive: false,
|
|
467
|
+
idempotent: true,
|
|
468
|
+
openWorld: false,
|
|
333
469
|
clients: ["pactflow", "pact_broker"]
|
|
334
470
|
},
|
|
335
471
|
{
|
|
@@ -339,6 +475,10 @@ const TOOLS = [
|
|
|
339
475
|
purpose: "Visualise all the consumer-provider relationships for a service — both the services it consumes and the consumers that depend on it. Use this to understand the blast radius of changes to a service.",
|
|
340
476
|
inputSchema: GetPacticipantNetworkSchema,
|
|
341
477
|
handler: "getPacticipantNetwork",
|
|
478
|
+
readOnly: true,
|
|
479
|
+
destructive: false,
|
|
480
|
+
idempotent: true,
|
|
481
|
+
openWorld: false,
|
|
342
482
|
clients: ["pactflow", "pact_broker"]
|
|
343
483
|
},
|
|
344
484
|
{
|
|
@@ -351,6 +491,10 @@ const TOOLS = [
|
|
|
351
491
|
pageSize: z.number().optional().describe("Results per page")
|
|
352
492
|
}),
|
|
353
493
|
handler: "listLabels",
|
|
494
|
+
readOnly: true,
|
|
495
|
+
destructive: false,
|
|
496
|
+
idempotent: true,
|
|
497
|
+
openWorld: false,
|
|
354
498
|
clients: ["pactflow", "pact_broker"]
|
|
355
499
|
},
|
|
356
500
|
{
|
|
@@ -360,6 +504,10 @@ const TOOLS = [
|
|
|
360
504
|
purpose: "Verify that a label exists on a pacticipant. Returns 404 if the label is not applied.",
|
|
361
505
|
inputSchema: GetLabelSchema,
|
|
362
506
|
handler: "getPacticipantLabel",
|
|
507
|
+
readOnly: true,
|
|
508
|
+
destructive: false,
|
|
509
|
+
idempotent: true,
|
|
510
|
+
openWorld: false,
|
|
363
511
|
clients: ["pactflow", "pact_broker"]
|
|
364
512
|
},
|
|
365
513
|
{
|
|
@@ -369,6 +517,10 @@ const TOOLS = [
|
|
|
369
517
|
purpose: "Filter the pacticipant list by label. Useful for querying services by team ownership, technology, or any custom grouping you have applied via labels.",
|
|
370
518
|
inputSchema: LabelByNameSchema,
|
|
371
519
|
handler: "listPacticipantsByLabel",
|
|
520
|
+
readOnly: true,
|
|
521
|
+
destructive: false,
|
|
522
|
+
idempotent: true,
|
|
523
|
+
openWorld: false,
|
|
372
524
|
clients: ["pactflow", "pact_broker"]
|
|
373
525
|
},
|
|
374
526
|
{
|
|
@@ -378,6 +530,10 @@ const TOOLS = [
|
|
|
378
530
|
purpose: "Update a service's metadata with a full replacement. All fields not provided will be cleared. Use Patch Pacticipant instead if you only want to update specific fields.",
|
|
379
531
|
inputSchema: UpdatePacticipantSchema,
|
|
380
532
|
handler: "updatePacticipant",
|
|
533
|
+
readOnly: false,
|
|
534
|
+
destructive: false,
|
|
535
|
+
idempotent: true,
|
|
536
|
+
openWorld: false,
|
|
381
537
|
clients: ["pactflow", "pact_broker"]
|
|
382
538
|
},
|
|
383
539
|
{
|
|
@@ -387,6 +543,10 @@ const TOOLS = [
|
|
|
387
543
|
purpose: "Update one or more properties of a service without affecting the others. Prefer this over Update Pacticipant when you only need to change a specific field such as the main branch.",
|
|
388
544
|
inputSchema: UpdatePacticipantSchema,
|
|
389
545
|
handler: "patchPacticipant",
|
|
546
|
+
readOnly: false,
|
|
547
|
+
destructive: false,
|
|
548
|
+
idempotent: false,
|
|
549
|
+
openWorld: false,
|
|
390
550
|
clients: ["pactflow", "pact_broker"]
|
|
391
551
|
},
|
|
392
552
|
{
|
|
@@ -396,6 +556,10 @@ const TOOLS = [
|
|
|
396
556
|
purpose: "Set or update the build URL for an existing version. This is useful when the build URL was not available at publish time.",
|
|
397
557
|
inputSchema: UpdateVersionSchema,
|
|
398
558
|
handler: "updateVersion",
|
|
559
|
+
readOnly: false,
|
|
560
|
+
destructive: false,
|
|
561
|
+
idempotent: true,
|
|
562
|
+
openWorld: false,
|
|
399
563
|
clients: ["pactflow", "pact_broker"]
|
|
400
564
|
},
|
|
401
565
|
{
|
|
@@ -405,6 +569,10 @@ const TOOLS = [
|
|
|
405
569
|
purpose: "List the history of versions for a particular branch. Useful for understanding which versions were created on a feature branch before it was merged.",
|
|
406
570
|
inputSchema: GetBranchVersionsSchema,
|
|
407
571
|
handler: "getBranchVersions",
|
|
572
|
+
readOnly: true,
|
|
573
|
+
destructive: false,
|
|
574
|
+
idempotent: true,
|
|
575
|
+
openWorld: false,
|
|
408
576
|
clients: ["pactflow", "pact_broker"]
|
|
409
577
|
},
|
|
410
578
|
{
|
|
@@ -414,6 +582,10 @@ const TOOLS = [
|
|
|
414
582
|
purpose: "Check the deployment history for a particular version in a given environment. Returns all deployment records including whether each is currently active.",
|
|
415
583
|
inputSchema: GetVersionDeployedSchema,
|
|
416
584
|
handler: "getDeployedVersions",
|
|
585
|
+
readOnly: true,
|
|
586
|
+
destructive: false,
|
|
587
|
+
idempotent: true,
|
|
588
|
+
openWorld: false,
|
|
417
589
|
clients: ["pactflow", "pact_broker"]
|
|
418
590
|
},
|
|
419
591
|
{
|
|
@@ -423,6 +595,10 @@ const TOOLS = [
|
|
|
423
595
|
purpose: "Check the release history for a particular version in a given environment. Used in mobile/library workflows to see all release records for a version.",
|
|
424
596
|
inputSchema: GetVersionDeployedSchema,
|
|
425
597
|
handler: "getReleasedVersions",
|
|
598
|
+
readOnly: true,
|
|
599
|
+
destructive: false,
|
|
600
|
+
idempotent: true,
|
|
601
|
+
openWorld: false,
|
|
426
602
|
clients: ["pactflow", "pact_broker"]
|
|
427
603
|
},
|
|
428
604
|
{
|
|
@@ -432,6 +608,10 @@ const TOOLS = [
|
|
|
432
608
|
purpose: "Register a new environment (e.g. 'staging', 'production') so it can be used in record-deployment and can-i-deploy workflows.",
|
|
433
609
|
inputSchema: CreateEnvironmentSchema,
|
|
434
610
|
handler: "createEnvironment",
|
|
611
|
+
readOnly: false,
|
|
612
|
+
destructive: false,
|
|
613
|
+
idempotent: false,
|
|
614
|
+
openWorld: false,
|
|
435
615
|
clients: ["pactflow", "pact_broker"]
|
|
436
616
|
},
|
|
437
617
|
{
|
|
@@ -441,6 +621,10 @@ const TOOLS = [
|
|
|
441
621
|
purpose: "Rename an environment, change its production flag, or update team assignments.",
|
|
442
622
|
inputSchema: UpdateEnvironmentSchema,
|
|
443
623
|
handler: "updateEnvironment",
|
|
624
|
+
readOnly: false,
|
|
625
|
+
destructive: false,
|
|
626
|
+
idempotent: true,
|
|
627
|
+
openWorld: false,
|
|
444
628
|
clients: ["pactflow", "pact_broker"]
|
|
445
629
|
},
|
|
446
630
|
{
|
|
@@ -450,6 +634,10 @@ const TOOLS = [
|
|
|
450
634
|
purpose: "Remove an environment that is no longer needed. This will also remove all deployed and released version records for this environment.",
|
|
451
635
|
inputSchema: GetEnvironmentSchema,
|
|
452
636
|
handler: "deleteEnvironment",
|
|
637
|
+
readOnly: false,
|
|
638
|
+
destructive: true,
|
|
639
|
+
idempotent: true,
|
|
640
|
+
openWorld: false,
|
|
453
641
|
clients: ["pactflow", "pact_broker"]
|
|
454
642
|
},
|
|
455
643
|
{
|
|
@@ -459,6 +647,10 @@ const TOOLS = [
|
|
|
459
647
|
purpose: "Create a pacticipant entry before publishing contracts or recording deployments. The name cannot be changed after creation.",
|
|
460
648
|
inputSchema: CreatePacticipantSchema,
|
|
461
649
|
handler: "createPacticipant",
|
|
650
|
+
readOnly: false,
|
|
651
|
+
destructive: false,
|
|
652
|
+
idempotent: false,
|
|
653
|
+
openWorld: false,
|
|
462
654
|
clients: ["pactflow", "pact_broker"]
|
|
463
655
|
},
|
|
464
656
|
{
|
|
@@ -468,6 +660,10 @@ const TOOLS = [
|
|
|
468
660
|
purpose: "Remove a service from the workspace, including all its pacts, verifications, deployments, and version records.",
|
|
469
661
|
inputSchema: DeletePacticipantSchema,
|
|
470
662
|
handler: "deletePacticipant",
|
|
663
|
+
readOnly: false,
|
|
664
|
+
destructive: true,
|
|
665
|
+
idempotent: true,
|
|
666
|
+
openWorld: false,
|
|
471
667
|
clients: ["pactflow", "pact_broker"]
|
|
472
668
|
},
|
|
473
669
|
{
|
|
@@ -477,6 +673,10 @@ const TOOLS = [
|
|
|
477
673
|
purpose: "Fetch metadata for a single branch, including its latest version.",
|
|
478
674
|
inputSchema: GetBranchSchema,
|
|
479
675
|
handler: "getBranch",
|
|
676
|
+
readOnly: true,
|
|
677
|
+
destructive: false,
|
|
678
|
+
idempotent: true,
|
|
679
|
+
openWorld: false,
|
|
480
680
|
clients: ["pactflow", "pact_broker"]
|
|
481
681
|
},
|
|
482
682
|
{
|
|
@@ -486,6 +686,10 @@ const TOOLS = [
|
|
|
486
686
|
purpose: "Remove a stale branch record. This does not delete the versions or pacts published from the branch.",
|
|
487
687
|
inputSchema: DeleteBranchSchema,
|
|
488
688
|
handler: "deleteBranch",
|
|
689
|
+
readOnly: false,
|
|
690
|
+
destructive: true,
|
|
691
|
+
idempotent: true,
|
|
692
|
+
openWorld: false,
|
|
489
693
|
clients: ["pactflow", "pact_broker"]
|
|
490
694
|
},
|
|
491
695
|
{
|
|
@@ -495,6 +699,10 @@ const TOOLS = [
|
|
|
495
699
|
purpose: "Tag a service with a label for grouping and filtering. Creates the label if it does not already exist.",
|
|
496
700
|
inputSchema: ManageLabelSchema,
|
|
497
701
|
handler: "addLabel",
|
|
702
|
+
readOnly: false,
|
|
703
|
+
destructive: false,
|
|
704
|
+
idempotent: false,
|
|
705
|
+
openWorld: false,
|
|
498
706
|
clients: ["pactflow", "pact_broker"]
|
|
499
707
|
},
|
|
500
708
|
{
|
|
@@ -504,6 +712,10 @@ const TOOLS = [
|
|
|
504
712
|
purpose: "Delete the label association from a pacticipant. Does not affect other pacticipants that have the same label.",
|
|
505
713
|
inputSchema: ManageLabelSchema,
|
|
506
714
|
handler: "removeLabel",
|
|
715
|
+
readOnly: false,
|
|
716
|
+
destructive: true,
|
|
717
|
+
idempotent: true,
|
|
718
|
+
openWorld: false,
|
|
507
719
|
clients: ["pactflow", "pact_broker"]
|
|
508
720
|
},
|
|
509
721
|
{
|
|
@@ -513,6 +725,10 @@ const TOOLS = [
|
|
|
513
725
|
purpose: "Filter the integration list by team ownership to see only the pairings relevant to a given team.",
|
|
514
726
|
inputSchema: GetIntegrationsByTeamSchema,
|
|
515
727
|
handler: "getIntegrationsByTeam",
|
|
728
|
+
readOnly: true,
|
|
729
|
+
destructive: false,
|
|
730
|
+
idempotent: true,
|
|
731
|
+
openWorld: false,
|
|
516
732
|
clients: ["pactflow"]
|
|
517
733
|
},
|
|
518
734
|
{
|
|
@@ -522,6 +738,10 @@ const TOOLS = [
|
|
|
522
738
|
purpose: "Remove the integration record between a consumer and provider. Use with caution — this removes the link even if pacts exist.",
|
|
523
739
|
inputSchema: DeleteIntegrationSchema,
|
|
524
740
|
handler: "deleteIntegration",
|
|
741
|
+
readOnly: false,
|
|
742
|
+
destructive: true,
|
|
743
|
+
idempotent: true,
|
|
744
|
+
openWorld: false,
|
|
525
745
|
clients: ["pactflow", "pact_broker"]
|
|
526
746
|
},
|
|
527
747
|
{
|
|
@@ -531,6 +751,10 @@ const TOOLS = [
|
|
|
531
751
|
purpose: "Bulk-remove all integration records. This is a destructive operation — use only when resetting the workspace.",
|
|
532
752
|
inputSchema: z.object({}),
|
|
533
753
|
handler: "deleteAllIntegrations",
|
|
754
|
+
readOnly: false,
|
|
755
|
+
destructive: true,
|
|
756
|
+
idempotent: true,
|
|
757
|
+
openWorld: false,
|
|
534
758
|
clients: ["pactflow", "pact_broker"]
|
|
535
759
|
},
|
|
536
760
|
{
|
|
@@ -540,6 +764,10 @@ const TOOLS = [
|
|
|
540
764
|
purpose: "Get an overview of all webhook triggers, their target URLs, and enabled/disabled status.",
|
|
541
765
|
inputSchema: z.object({}),
|
|
542
766
|
handler: "listWebhooks",
|
|
767
|
+
readOnly: true,
|
|
768
|
+
destructive: false,
|
|
769
|
+
idempotent: true,
|
|
770
|
+
openWorld: false,
|
|
543
771
|
clients: ["pactflow", "pact_broker"]
|
|
544
772
|
},
|
|
545
773
|
{
|
|
@@ -549,6 +777,10 @@ const TOOLS = [
|
|
|
549
777
|
purpose: "Fetch the full configuration of a single webhook including events, request details, and consumer/provider filters.",
|
|
550
778
|
inputSchema: WebhookIdSchema,
|
|
551
779
|
handler: "getWebhook",
|
|
780
|
+
readOnly: true,
|
|
781
|
+
destructive: false,
|
|
782
|
+
idempotent: true,
|
|
783
|
+
openWorld: false,
|
|
552
784
|
clients: ["pactflow", "pact_broker"]
|
|
553
785
|
},
|
|
554
786
|
{
|
|
@@ -558,6 +790,10 @@ const TOOLS = [
|
|
|
558
790
|
purpose: "Set up automated notifications or CI triggers that fire when contracts change, verifications are published, or other events occur.",
|
|
559
791
|
inputSchema: CreateWebhookSchema,
|
|
560
792
|
handler: "createWebhook",
|
|
793
|
+
readOnly: false,
|
|
794
|
+
destructive: false,
|
|
795
|
+
idempotent: false,
|
|
796
|
+
openWorld: false,
|
|
561
797
|
clients: ["pactflow", "pact_broker"]
|
|
562
798
|
},
|
|
563
799
|
{
|
|
@@ -567,6 +803,10 @@ const TOOLS = [
|
|
|
567
803
|
purpose: "Modify the URL, events, consumer/provider filters, or enabled status of a webhook.",
|
|
568
804
|
inputSchema: UpdateWebhookSchema,
|
|
569
805
|
handler: "updateWebhook",
|
|
806
|
+
readOnly: false,
|
|
807
|
+
destructive: false,
|
|
808
|
+
idempotent: true,
|
|
809
|
+
openWorld: false,
|
|
570
810
|
clients: ["pactflow", "pact_broker"]
|
|
571
811
|
},
|
|
572
812
|
{
|
|
@@ -576,6 +816,10 @@ const TOOLS = [
|
|
|
576
816
|
purpose: "Permanently remove a webhook. Any in-flight triggered executions will still complete.",
|
|
577
817
|
inputSchema: WebhookIdSchema,
|
|
578
818
|
handler: "deleteWebhook",
|
|
819
|
+
readOnly: false,
|
|
820
|
+
destructive: true,
|
|
821
|
+
idempotent: true,
|
|
822
|
+
openWorld: false,
|
|
579
823
|
clients: ["pactflow", "pact_broker"]
|
|
580
824
|
},
|
|
581
825
|
{
|
|
@@ -585,6 +829,10 @@ const TOOLS = [
|
|
|
585
829
|
purpose: "Verify webhook configuration by sending a test request. Useful for debugging URL, auth, or body template issues.",
|
|
586
830
|
inputSchema: z.object({}),
|
|
587
831
|
handler: "executeWebhooks",
|
|
832
|
+
readOnly: false,
|
|
833
|
+
destructive: false,
|
|
834
|
+
idempotent: false,
|
|
835
|
+
openWorld: true,
|
|
588
836
|
clients: ["pactflow", "pact_broker"]
|
|
589
837
|
},
|
|
590
838
|
{
|
|
@@ -594,6 +842,10 @@ const TOOLS = [
|
|
|
594
842
|
purpose: "Send a test request for a single webhook to verify its configuration without waiting for a real event.",
|
|
595
843
|
inputSchema: WebhookIdSchema,
|
|
596
844
|
handler: "executeWebhook",
|
|
845
|
+
readOnly: false,
|
|
846
|
+
destructive: false,
|
|
847
|
+
idempotent: false,
|
|
848
|
+
openWorld: true,
|
|
597
849
|
clients: ["pactflow", "pact_broker"]
|
|
598
850
|
},
|
|
599
851
|
{
|
|
@@ -603,6 +855,10 @@ const TOOLS = [
|
|
|
603
855
|
purpose: "Get an overview of all configured secrets. Note: secret values are never returned — only metadata.",
|
|
604
856
|
inputSchema: z.object({}),
|
|
605
857
|
handler: "listSecrets",
|
|
858
|
+
readOnly: true,
|
|
859
|
+
destructive: false,
|
|
860
|
+
idempotent: true,
|
|
861
|
+
openWorld: false,
|
|
606
862
|
clients: ["pactflow"]
|
|
607
863
|
},
|
|
608
864
|
{
|
|
@@ -612,6 +868,10 @@ const TOOLS = [
|
|
|
612
868
|
purpose: "Fetch secret metadata (name, description, team). The secret value is never returned.",
|
|
613
869
|
inputSchema: SecretIdSchema,
|
|
614
870
|
handler: "getSecret",
|
|
871
|
+
readOnly: true,
|
|
872
|
+
destructive: false,
|
|
873
|
+
idempotent: true,
|
|
874
|
+
openWorld: false,
|
|
615
875
|
clients: ["pactflow"]
|
|
616
876
|
},
|
|
617
877
|
{
|
|
@@ -621,6 +881,10 @@ const TOOLS = [
|
|
|
621
881
|
purpose: "Store a sensitive value (API key, password, token) securely. The value can be referenced in webhook configurations without exposing it.",
|
|
622
882
|
inputSchema: CreateSecretSchema,
|
|
623
883
|
handler: "createSecret",
|
|
884
|
+
readOnly: false,
|
|
885
|
+
destructive: false,
|
|
886
|
+
idempotent: false,
|
|
887
|
+
openWorld: false,
|
|
624
888
|
clients: ["pactflow"]
|
|
625
889
|
},
|
|
626
890
|
{
|
|
@@ -630,6 +894,10 @@ const TOOLS = [
|
|
|
630
894
|
purpose: "Rotate or rename a secret. The team assignment cannot be changed after creation.",
|
|
631
895
|
inputSchema: UpdateSecretSchema,
|
|
632
896
|
handler: "updateSecret",
|
|
897
|
+
readOnly: false,
|
|
898
|
+
destructive: false,
|
|
899
|
+
idempotent: true,
|
|
900
|
+
openWorld: false,
|
|
633
901
|
clients: ["pactflow"]
|
|
634
902
|
},
|
|
635
903
|
{
|
|
@@ -639,6 +907,10 @@ const TOOLS = [
|
|
|
639
907
|
purpose: "Permanently remove a secret. Any webhooks referencing this secret will need to be updated.",
|
|
640
908
|
inputSchema: SecretIdSchema,
|
|
641
909
|
handler: "deleteSecret",
|
|
910
|
+
readOnly: false,
|
|
911
|
+
destructive: true,
|
|
912
|
+
idempotent: true,
|
|
913
|
+
openWorld: false,
|
|
642
914
|
clients: ["pactflow"]
|
|
643
915
|
},
|
|
644
916
|
{
|
|
@@ -648,6 +920,10 @@ const TOOLS = [
|
|
|
648
920
|
purpose: "Check who you are authenticated as, including your UUID, name, email, and roles.",
|
|
649
921
|
inputSchema: z.object({}),
|
|
650
922
|
handler: "getCurrentUser",
|
|
923
|
+
readOnly: true,
|
|
924
|
+
destructive: false,
|
|
925
|
+
idempotent: true,
|
|
926
|
+
openWorld: false,
|
|
651
927
|
clients: ["pactflow"]
|
|
652
928
|
},
|
|
653
929
|
{
|
|
@@ -657,6 +933,10 @@ const TOOLS = [
|
|
|
657
933
|
purpose: "List the read-only and read-write API tokens for the authenticated user.",
|
|
658
934
|
inputSchema: z.object({}),
|
|
659
935
|
handler: "listTokens",
|
|
936
|
+
readOnly: true,
|
|
937
|
+
destructive: false,
|
|
938
|
+
idempotent: true,
|
|
939
|
+
openWorld: false,
|
|
660
940
|
clients: ["pactflow"]
|
|
661
941
|
},
|
|
662
942
|
{
|
|
@@ -666,6 +946,10 @@ const TOOLS = [
|
|
|
666
946
|
purpose: "Invalidate the current token and generate a new one. Use when a token has been compromised.",
|
|
667
947
|
inputSchema: RegenerateTokenSchema,
|
|
668
948
|
handler: "regenerateToken",
|
|
949
|
+
readOnly: false,
|
|
950
|
+
destructive: true,
|
|
951
|
+
idempotent: false,
|
|
952
|
+
openWorld: false,
|
|
669
953
|
clients: ["pactflow"]
|
|
670
954
|
},
|
|
671
955
|
{
|
|
@@ -675,6 +959,10 @@ const TOOLS = [
|
|
|
675
959
|
purpose: "Fetch all preference settings for the authenticated user.",
|
|
676
960
|
inputSchema: z.object({}),
|
|
677
961
|
handler: "getUserPreferences",
|
|
962
|
+
readOnly: true,
|
|
963
|
+
destructive: false,
|
|
964
|
+
idempotent: true,
|
|
965
|
+
openWorld: false,
|
|
678
966
|
clients: ["pactflow"]
|
|
679
967
|
},
|
|
680
968
|
{
|
|
@@ -684,6 +972,10 @@ const TOOLS = [
|
|
|
684
972
|
purpose: "Fetch all system-level preference settings for the workspace.",
|
|
685
973
|
inputSchema: z.object({}),
|
|
686
974
|
handler: "getSystemPreferences",
|
|
975
|
+
readOnly: true,
|
|
976
|
+
destructive: false,
|
|
977
|
+
idempotent: true,
|
|
978
|
+
openWorld: false,
|
|
687
979
|
clients: ["pactflow"]
|
|
688
980
|
},
|
|
689
981
|
{
|
|
@@ -699,6 +991,10 @@ const TOOLS = [
|
|
|
699
991
|
],
|
|
700
992
|
inputSchema: AuditSchema,
|
|
701
993
|
handler: "getAuditLog",
|
|
994
|
+
readOnly: true,
|
|
995
|
+
destructive: false,
|
|
996
|
+
idempotent: true,
|
|
997
|
+
openWorld: false,
|
|
702
998
|
clients: ["pactflow"]
|
|
703
999
|
},
|
|
704
1000
|
{
|
|
@@ -708,6 +1004,10 @@ const TOOLS = [
|
|
|
708
1004
|
purpose: "Get an overview of all user accounts with optional filtering by active status, name/email, or user type.",
|
|
709
1005
|
inputSchema: ListAdminUsersSchema,
|
|
710
1006
|
handler: "listAdminUsers",
|
|
1007
|
+
readOnly: true,
|
|
1008
|
+
destructive: false,
|
|
1009
|
+
idempotent: true,
|
|
1010
|
+
openWorld: false,
|
|
711
1011
|
clients: ["pactflow"]
|
|
712
1012
|
},
|
|
713
1013
|
{
|
|
@@ -717,6 +1017,10 @@ const TOOLS = [
|
|
|
717
1017
|
purpose: "Fetch a user's profile including their email, name, roles, and active status.",
|
|
718
1018
|
inputSchema: AdminUserIdSchema,
|
|
719
1019
|
handler: "getAdminUser",
|
|
1020
|
+
readOnly: true,
|
|
1021
|
+
destructive: false,
|
|
1022
|
+
idempotent: true,
|
|
1023
|
+
openWorld: false,
|
|
720
1024
|
clients: ["pactflow"]
|
|
721
1025
|
},
|
|
722
1026
|
{
|
|
@@ -726,6 +1030,10 @@ const TOOLS = [
|
|
|
726
1030
|
purpose: "Add a new user to the workspace. For SSO environments, provide externalIdpId or externalIdpUsername to match the IdP identity.",
|
|
727
1031
|
inputSchema: CreateAdminUserSchema,
|
|
728
1032
|
handler: "createAdminUser",
|
|
1033
|
+
readOnly: false,
|
|
1034
|
+
destructive: false,
|
|
1035
|
+
idempotent: false,
|
|
1036
|
+
openWorld: false,
|
|
729
1037
|
clients: ["pactflow"]
|
|
730
1038
|
},
|
|
731
1039
|
{
|
|
@@ -735,6 +1043,10 @@ const TOOLS = [
|
|
|
735
1043
|
purpose: "Modify user details such as name, email, or active status. Deactivating a user prevents them from logging in.",
|
|
736
1044
|
inputSchema: UpdateAdminUserSchema,
|
|
737
1045
|
handler: "updateAdminUser",
|
|
1046
|
+
readOnly: false,
|
|
1047
|
+
destructive: false,
|
|
1048
|
+
idempotent: true,
|
|
1049
|
+
openWorld: false,
|
|
738
1050
|
clients: ["pactflow"]
|
|
739
1051
|
},
|
|
740
1052
|
{
|
|
@@ -744,6 +1056,10 @@ const TOOLS = [
|
|
|
744
1056
|
purpose: "Permanently remove a user from the workspace.",
|
|
745
1057
|
inputSchema: AdminUserIdSchema,
|
|
746
1058
|
handler: "deleteAdminUser",
|
|
1059
|
+
readOnly: false,
|
|
1060
|
+
destructive: true,
|
|
1061
|
+
idempotent: true,
|
|
1062
|
+
openWorld: false,
|
|
747
1063
|
clients: ["pactflow"]
|
|
748
1064
|
},
|
|
749
1065
|
{
|
|
@@ -753,6 +1069,10 @@ const TOOLS = [
|
|
|
753
1069
|
purpose: "Invite one or more people to join the workspace by email. They will receive an invitation email.",
|
|
754
1070
|
inputSchema: InviteUsersSchema,
|
|
755
1071
|
handler: "inviteUsers",
|
|
1072
|
+
readOnly: false,
|
|
1073
|
+
destructive: false,
|
|
1074
|
+
idempotent: false,
|
|
1075
|
+
openWorld: true,
|
|
756
1076
|
clients: ["pactflow"]
|
|
757
1077
|
},
|
|
758
1078
|
{
|
|
@@ -762,6 +1082,10 @@ const TOOLS = [
|
|
|
762
1082
|
purpose: "Fully replace the set of roles for a user. All existing roles are removed and replaced with the provided list.",
|
|
763
1083
|
inputSchema: SetUserRolesSchema,
|
|
764
1084
|
handler: "setUserRoles",
|
|
1085
|
+
readOnly: false,
|
|
1086
|
+
destructive: false,
|
|
1087
|
+
idempotent: true,
|
|
1088
|
+
openWorld: false,
|
|
765
1089
|
clients: ["pactflow"]
|
|
766
1090
|
},
|
|
767
1091
|
{
|
|
@@ -771,6 +1095,10 @@ const TOOLS = [
|
|
|
771
1095
|
purpose: "Grant an additional role to a user without affecting their existing roles.",
|
|
772
1096
|
inputSchema: UserRoleSchema,
|
|
773
1097
|
handler: "addRoleToUser",
|
|
1098
|
+
readOnly: false,
|
|
1099
|
+
destructive: false,
|
|
1100
|
+
idempotent: false,
|
|
1101
|
+
openWorld: false,
|
|
774
1102
|
clients: ["pactflow"]
|
|
775
1103
|
},
|
|
776
1104
|
{
|
|
@@ -780,6 +1108,10 @@ const TOOLS = [
|
|
|
780
1108
|
purpose: "Revoke a specific role from a user without affecting their other roles.",
|
|
781
1109
|
inputSchema: UserRoleSchema,
|
|
782
1110
|
handler: "removeRoleFromUser",
|
|
1111
|
+
readOnly: false,
|
|
1112
|
+
destructive: true,
|
|
1113
|
+
idempotent: true,
|
|
1114
|
+
openWorld: false,
|
|
783
1115
|
clients: ["pactflow"]
|
|
784
1116
|
},
|
|
785
1117
|
{
|
|
@@ -789,6 +1121,10 @@ const TOOLS = [
|
|
|
789
1121
|
purpose: "Get an overview of all teams with optional name filtering and pagination.",
|
|
790
1122
|
inputSchema: ListAdminTeamsSchema,
|
|
791
1123
|
handler: "listAdminTeams",
|
|
1124
|
+
readOnly: true,
|
|
1125
|
+
destructive: false,
|
|
1126
|
+
idempotent: true,
|
|
1127
|
+
openWorld: false,
|
|
792
1128
|
clients: ["pactflow"]
|
|
793
1129
|
},
|
|
794
1130
|
{
|
|
@@ -798,6 +1134,10 @@ const TOOLS = [
|
|
|
798
1134
|
purpose: "Fetch a team's configuration including its name, members, environments, and pacticipants.",
|
|
799
1135
|
inputSchema: AdminTeamIdSchema,
|
|
800
1136
|
handler: "getAdminTeam",
|
|
1137
|
+
readOnly: true,
|
|
1138
|
+
destructive: false,
|
|
1139
|
+
idempotent: true,
|
|
1140
|
+
openWorld: false,
|
|
801
1141
|
clients: ["pactflow"]
|
|
802
1142
|
},
|
|
803
1143
|
{
|
|
@@ -807,6 +1147,10 @@ const TOOLS = [
|
|
|
807
1147
|
purpose: "Add a new team to the workspace and optionally assign administrators, environments, and pacticipants.",
|
|
808
1148
|
inputSchema: CreateTeamSchema,
|
|
809
1149
|
handler: "createAdminTeam",
|
|
1150
|
+
readOnly: false,
|
|
1151
|
+
destructive: false,
|
|
1152
|
+
idempotent: false,
|
|
1153
|
+
openWorld: false,
|
|
810
1154
|
clients: ["pactflow"]
|
|
811
1155
|
},
|
|
812
1156
|
{
|
|
@@ -816,6 +1160,10 @@ const TOOLS = [
|
|
|
816
1160
|
purpose: "Fully update a team's name, administrators, environments, and pacticipant assignments.",
|
|
817
1161
|
inputSchema: UpdateTeamSchema,
|
|
818
1162
|
handler: "updateAdminTeam",
|
|
1163
|
+
readOnly: false,
|
|
1164
|
+
destructive: false,
|
|
1165
|
+
idempotent: true,
|
|
1166
|
+
openWorld: false,
|
|
819
1167
|
clients: ["pactflow"]
|
|
820
1168
|
},
|
|
821
1169
|
{
|
|
@@ -825,6 +1173,10 @@ const TOOLS = [
|
|
|
825
1173
|
purpose: "Permanently remove a team from the workspace. Members are not deleted.",
|
|
826
1174
|
inputSchema: AdminTeamIdSchema,
|
|
827
1175
|
handler: "deleteAdminTeam",
|
|
1176
|
+
readOnly: false,
|
|
1177
|
+
destructive: true,
|
|
1178
|
+
idempotent: true,
|
|
1179
|
+
openWorld: false,
|
|
828
1180
|
clients: ["pactflow"]
|
|
829
1181
|
},
|
|
830
1182
|
{
|
|
@@ -834,6 +1186,10 @@ const TOOLS = [
|
|
|
834
1186
|
purpose: "Retrieve all user members of a team.",
|
|
835
1187
|
inputSchema: AdminTeamIdSchema,
|
|
836
1188
|
handler: "listTeamUsers",
|
|
1189
|
+
readOnly: true,
|
|
1190
|
+
destructive: false,
|
|
1191
|
+
idempotent: true,
|
|
1192
|
+
openWorld: false,
|
|
837
1193
|
clients: ["pactflow"]
|
|
838
1194
|
},
|
|
839
1195
|
{
|
|
@@ -843,6 +1199,10 @@ const TOOLS = [
|
|
|
843
1199
|
purpose: "Verify team membership for a user. Returns 404 if the user is not in the team.",
|
|
844
1200
|
inputSchema: TeamUserIdSchema,
|
|
845
1201
|
handler: "getTeamUser",
|
|
1202
|
+
readOnly: true,
|
|
1203
|
+
destructive: false,
|
|
1204
|
+
idempotent: true,
|
|
1205
|
+
openWorld: false,
|
|
846
1206
|
clients: ["pactflow"]
|
|
847
1207
|
},
|
|
848
1208
|
{
|
|
@@ -852,6 +1212,10 @@ const TOOLS = [
|
|
|
852
1212
|
purpose: "Fully replace the set of users in a team. All existing members are removed and replaced with the provided list.",
|
|
853
1213
|
inputSchema: SetTeamUsersSchema,
|
|
854
1214
|
handler: "setTeamUsers",
|
|
1215
|
+
readOnly: false,
|
|
1216
|
+
destructive: false,
|
|
1217
|
+
idempotent: true,
|
|
1218
|
+
openWorld: false,
|
|
855
1219
|
clients: ["pactflow"]
|
|
856
1220
|
},
|
|
857
1221
|
{
|
|
@@ -861,6 +1225,10 @@ const TOOLS = [
|
|
|
861
1225
|
purpose: "Make targeted changes to team membership — add specific users or remove them — without replacing the entire member list.",
|
|
862
1226
|
inputSchema: PatchTeamUsersSchema,
|
|
863
1227
|
handler: "patchTeamUsers",
|
|
1228
|
+
readOnly: false,
|
|
1229
|
+
destructive: false,
|
|
1230
|
+
idempotent: false,
|
|
1231
|
+
openWorld: false,
|
|
864
1232
|
clients: ["pactflow"]
|
|
865
1233
|
},
|
|
866
1234
|
{
|
|
@@ -870,6 +1238,10 @@ const TOOLS = [
|
|
|
870
1238
|
purpose: "Revoke team membership for a user.",
|
|
871
1239
|
inputSchema: TeamUserIdSchema,
|
|
872
1240
|
handler: "removeUserFromTeam",
|
|
1241
|
+
readOnly: false,
|
|
1242
|
+
destructive: true,
|
|
1243
|
+
idempotent: true,
|
|
1244
|
+
openWorld: false,
|
|
873
1245
|
clients: ["pactflow"]
|
|
874
1246
|
},
|
|
875
1247
|
{
|
|
@@ -879,6 +1251,10 @@ const TOOLS = [
|
|
|
879
1251
|
purpose: "Get an overview of all role definitions and their associated permissions.",
|
|
880
1252
|
inputSchema: z.object({}),
|
|
881
1253
|
handler: "listAdminRoles",
|
|
1254
|
+
readOnly: true,
|
|
1255
|
+
destructive: false,
|
|
1256
|
+
idempotent: true,
|
|
1257
|
+
openWorld: false,
|
|
882
1258
|
clients: ["pactflow"]
|
|
883
1259
|
},
|
|
884
1260
|
{
|
|
@@ -888,6 +1264,10 @@ const TOOLS = [
|
|
|
888
1264
|
purpose: "Fetch a role's name, description, and full list of permission scopes.",
|
|
889
1265
|
inputSchema: AdminRoleIdSchema,
|
|
890
1266
|
handler: "getAdminRole",
|
|
1267
|
+
readOnly: true,
|
|
1268
|
+
destructive: false,
|
|
1269
|
+
idempotent: true,
|
|
1270
|
+
openWorld: false,
|
|
891
1271
|
clients: ["pactflow"]
|
|
892
1272
|
},
|
|
893
1273
|
{
|
|
@@ -897,6 +1277,10 @@ const TOOLS = [
|
|
|
897
1277
|
purpose: "Define a custom role with a tailored set of permission scopes. Roles can then be assigned to users.",
|
|
898
1278
|
inputSchema: CreateRoleSchema,
|
|
899
1279
|
handler: "createAdminRole",
|
|
1280
|
+
readOnly: false,
|
|
1281
|
+
destructive: false,
|
|
1282
|
+
idempotent: false,
|
|
1283
|
+
openWorld: false,
|
|
900
1284
|
clients: ["pactflow"]
|
|
901
1285
|
},
|
|
902
1286
|
{
|
|
@@ -906,6 +1290,10 @@ const TOOLS = [
|
|
|
906
1290
|
purpose: "Modify the permission set of a role. Changes take effect for all users assigned the role.",
|
|
907
1291
|
inputSchema: UpdateRoleSchema,
|
|
908
1292
|
handler: "updateAdminRole",
|
|
1293
|
+
readOnly: false,
|
|
1294
|
+
destructive: false,
|
|
1295
|
+
idempotent: true,
|
|
1296
|
+
openWorld: false,
|
|
909
1297
|
clients: ["pactflow"]
|
|
910
1298
|
},
|
|
911
1299
|
{
|
|
@@ -915,6 +1303,10 @@ const TOOLS = [
|
|
|
915
1303
|
purpose: "Permanently remove a role. Users currently assigned this role will lose its permissions.",
|
|
916
1304
|
inputSchema: AdminRoleIdSchema,
|
|
917
1305
|
handler: "deleteAdminRole",
|
|
1306
|
+
readOnly: false,
|
|
1307
|
+
destructive: true,
|
|
1308
|
+
idempotent: true,
|
|
1309
|
+
openWorld: false,
|
|
918
1310
|
clients: ["pactflow"]
|
|
919
1311
|
},
|
|
920
1312
|
{
|
|
@@ -924,6 +1316,10 @@ const TOOLS = [
|
|
|
924
1316
|
purpose: "Restore the built-in roles to their original permission sets. Custom roles are removed.",
|
|
925
1317
|
inputSchema: z.object({}),
|
|
926
1318
|
handler: "resetAdminRoles",
|
|
1319
|
+
readOnly: false,
|
|
1320
|
+
destructive: true,
|
|
1321
|
+
idempotent: true,
|
|
1322
|
+
openWorld: false,
|
|
927
1323
|
clients: ["pactflow"]
|
|
928
1324
|
},
|
|
929
1325
|
{
|
|
@@ -933,6 +1329,10 @@ const TOOLS = [
|
|
|
933
1329
|
purpose: "Retrieve all permission scopes that can be assigned to roles.",
|
|
934
1330
|
inputSchema: z.object({}),
|
|
935
1331
|
handler: "listAdminPermissions",
|
|
1332
|
+
readOnly: true,
|
|
1333
|
+
destructive: false,
|
|
1334
|
+
idempotent: true,
|
|
1335
|
+
openWorld: false,
|
|
936
1336
|
clients: ["pactflow"]
|
|
937
1337
|
},
|
|
938
1338
|
{
|
|
@@ -942,6 +1342,10 @@ const TOOLS = [
|
|
|
942
1342
|
purpose: "Add a machine/service account that can authenticate via API token rather than user credentials.",
|
|
943
1343
|
inputSchema: CreateSystemAccountSchema,
|
|
944
1344
|
handler: "createSystemAccount",
|
|
1345
|
+
readOnly: false,
|
|
1346
|
+
destructive: false,
|
|
1347
|
+
idempotent: false,
|
|
1348
|
+
openWorld: false,
|
|
945
1349
|
clients: ["pactflow"]
|
|
946
1350
|
},
|
|
947
1351
|
{
|
|
@@ -951,6 +1355,10 @@ const TOOLS = [
|
|
|
951
1355
|
purpose: "Get the tokens associated with a system account for use in CI/CD pipelines.",
|
|
952
1356
|
inputSchema: GetSystemAccountTokensSchema,
|
|
953
1357
|
handler: "getSystemAccountTokens",
|
|
1358
|
+
readOnly: true,
|
|
1359
|
+
destructive: false,
|
|
1360
|
+
idempotent: true,
|
|
1361
|
+
openWorld: false,
|
|
954
1362
|
clients: ["pactflow"]
|
|
955
1363
|
}
|
|
956
1364
|
];
|