@smartbear/mcp 0.41.3 → 0.43.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/README.md +5 -0
- package/dist/bearq/api.js +16 -0
- package/dist/bearq/client.js +9 -1
- package/dist/bearq/tool/tasks/stop-task.js +6 -3
- package/dist/bearq/tool/workflows/get-workflow-run.js +31 -0
- package/dist/bearq/tool/workflows/list-workflows.js +28 -0
- package/dist/bearq/tool/workflows/run-workflow.js +57 -0
- package/dist/bearq/tool/workflows/stop-workflow-run.js +33 -0
- package/dist/bugsnag/client.js +1 -0
- package/dist/common/analytics.js +341 -0
- package/dist/common/initialize.js +1 -0
- package/dist/common/jwt.js +83 -0
- package/dist/common/register-clients.js +16 -18
- package/dist/common/server.js +36 -0
- package/dist/common/transport-http.js +48 -7
- package/dist/package.json.js +1 -1
- package/dist/pactflow/client/admin-api.js +3 -8
- package/dist/pactflow/client/ai.js +34 -0
- package/dist/pactflow/client/contract-api.js +2 -0
- package/dist/pactflow/client/http-client.js +7 -2
- package/dist/pactflow/client/pacticipant-api.js +37 -0
- package/dist/pactflow/client/pagination.js +1 -1
- package/dist/pactflow/client/schemas/admin.js +799 -0
- package/dist/pactflow/client/schemas/common.js +201 -0
- package/dist/pactflow/client/schemas/contract.js +444 -0
- package/dist/pactflow/client/schemas/environment.js +94 -0
- package/dist/pactflow/client/schemas/output.js +55 -0
- package/dist/pactflow/client/schemas/pacticipant.js +290 -0
- package/dist/pactflow/client/schemas/webhook.js +164 -0
- package/dist/pactflow/client/tools.js +32 -1
- package/dist/pactflow/client/utils.js +1 -1
- package/dist/pactflow/client.js +21 -3
- package/dist/qmetry/client/ai-agent.js +3 -0
- package/dist/qmetry/client/api/error-handler.js +7 -2
- package/dist/qmetry/client/auto-resolve.js +5 -0
- package/dist/qmetry/client/handlers.js +2 -1
- package/dist/qmetry/client/project.js +19 -1
- package/dist/qmetry/client/testsuite.js +207 -2
- package/dist/qmetry/client/tools/ai-agent-tools.js +13 -0
- package/dist/qmetry/client/tools/issue-tools.js +7 -3
- package/dist/qmetry/client/tools/project-tools.js +34 -1
- package/dist/qmetry/client/tools/testcase-tools.js +43 -296
- package/dist/qmetry/client/tools/testsuite-tools.js +49 -19
- package/dist/qmetry/client/udf.js +14 -2
- package/dist/qmetry/client.js +2 -1
- package/dist/qmetry/config/constants.js +1 -0
- package/dist/qmetry/config/rest-endpoints.js +2 -1
- package/dist/qmetry/types/ai-agent.js +3 -0
- package/dist/qmetry/types/common.js +40 -2
- package/dist/qmetry/types/udf.js +1 -20
- package/dist/qtm4j/client.js +1 -1
- package/dist/swagger/client/api.js +5 -1
- package/dist/swagger/client/portal-types.js +11 -5
- package/dist/swagger/client/registry-types.js +12 -5
- package/dist/swagger/client/tools.js +3 -3
- package/dist/zephyr/tool/issue-link/get-test-cases.js +1 -1
- package/dist/zephyr/tool/issue-link/get-test-cycles.js +1 -1
- package/dist/zephyr/tool/issue-link/get-test-executions.js +1 -1
- package/dist/zephyr/tool/test-case/update-test-case.js +1 -1
- package/dist/zephyr/tool/test-cycle/update-test-cycle.js +1 -1
- package/package.json +4 -3
- package/plugin/README.md +42 -0
- package/dist/pactflow/client/base.js +0 -488
|
@@ -137,6 +137,9 @@ const ProjectListArgsSchema = z.object({
|
|
|
137
137
|
const ProjectArgsSchema = z.object({
|
|
138
138
|
projectKey: CommonFields.projectKey
|
|
139
139
|
});
|
|
140
|
+
const ApiQuotaStatusArgsSchema = z.object({
|
|
141
|
+
projectKey: CommonFields.projectKeyOptional
|
|
142
|
+
});
|
|
140
143
|
const ReleasesCyclesArgsSchema = z.object({
|
|
141
144
|
projectKey: CommonFields.projectKeyOptional,
|
|
142
145
|
showArchive: CommonFields.showArchive
|
|
@@ -341,7 +344,7 @@ const UpdateTestCaseArgsSchema = z.object({
|
|
|
341
344
|
name: z.string().optional(),
|
|
342
345
|
priority: z.number().optional(),
|
|
343
346
|
component: z.array(z.number()).optional(),
|
|
344
|
-
|
|
347
|
+
testcaseOwner: z.number().optional(),
|
|
345
348
|
testCaseState: z.number().optional(),
|
|
346
349
|
testCaseType: z.number().optional(),
|
|
347
350
|
estimatedTime: z.number().optional().describe("Estimated execution time in seconds. Example: 7200 for 2 hours"),
|
|
@@ -720,7 +723,7 @@ const UpdateIssueArgsSchema = z.object({
|
|
|
720
723
|
description: z.string().optional().describe("Detailed description of the defect/issue"),
|
|
721
724
|
issueOwner: z.number().optional().describe("Owner/user ID for the issue"),
|
|
722
725
|
affectedRelease: z.number().optional().describe("Release IDs affected by this issue"),
|
|
723
|
-
affectedCycles: z.number().optional().describe("Cycle IDs affected by this issue"),
|
|
726
|
+
affectedCycles: z.array(z.number()).optional().describe("Cycle IDs affected by this issue"),
|
|
724
727
|
udfFields: UdfFieldsSchema,
|
|
725
728
|
UDF: z.record(z.string(), UdfWrapperFieldSchema).optional().describe(
|
|
726
729
|
"UDF wrapper required for update. Keys = UDF field names. Each value must include fieldID (from 'Fetch UDF Layout' with pageName='DETAIL') and value."
|
|
@@ -769,6 +772,25 @@ const LinkPlatformsToTestSuiteArgsSchema = z.object({
|
|
|
769
772
|
"Comma-separated Platform IDs (required). CRITICAL: the parameter name is 'qmPlatformId' — do NOT use 'platformId', 'platformID', 'platformIds', or other variants. Accepts a number or string. To get the qmPlatformId - Call API 'Platform/List'. From the response, get value -> data[<index>].platformID"
|
|
770
773
|
)
|
|
771
774
|
});
|
|
775
|
+
const UdfFieldValueSchema = z.object({
|
|
776
|
+
fieldID: z.number().int().positive().describe(
|
|
777
|
+
"Numeric ID of the UDF field to update. Get this from the UDF field definition in QMetry admin or from the field's metadata."
|
|
778
|
+
),
|
|
779
|
+
value: z.union([
|
|
780
|
+
z.string(),
|
|
781
|
+
z.number(),
|
|
782
|
+
z.array(z.number().int()),
|
|
783
|
+
z.object({
|
|
784
|
+
parent: z.number().int().describe("Parent item ID for cascading list."),
|
|
785
|
+
child: z.number().int().describe("Child item ID for cascading list.")
|
|
786
|
+
})
|
|
787
|
+
]).describe(
|
|
788
|
+
"Value to set for this UDF field. Type depends on field type:\nSTRING: plain string, e.g. 'test value'\nNUMBER: number, e.g. 3\nDATETIMEPICKER: date string in MM-DD-YYYY format, e.g. '06-20-2026'\nLOOKUPLIST (single): numeric item ID, e.g. 5108697\nMULTILOOKUPLIST (multi-select): array of item IDs, e.g. [5158524, 5158525]\nCASCADINGLIST: object with parent and child IDs, e.g. {parent: 5126498, child: 5126499}"
|
|
789
|
+
),
|
|
790
|
+
multiSelectAction: z.enum(["append", "replace"]).optional().default("append").describe(
|
|
791
|
+
"Action for MULTILOOKUPLIST fields only. 'append' adds the new values to existing selections (default). 'replace' clears existing selections and sets only the new values. Omit or use 'append' if user does not specify — never assume 'replace'."
|
|
792
|
+
)
|
|
793
|
+
});
|
|
772
794
|
const BulkUpdateExecutionStatusArgsSchema = z.object({
|
|
773
795
|
projectKey: CommonFields.projectKeyOptional,
|
|
774
796
|
entityIDs: z.coerce.string().describe(
|
|
@@ -800,6 +822,20 @@ const BulkUpdateExecutionStatusArgsSchema = z.object({
|
|
|
800
822
|
qmRunObj: z.string().optional().describe("Internal QMetry run object (optional, usually empty string)"),
|
|
801
823
|
type: z.enum(["TCR", "TCSR"]).optional().describe(
|
|
802
824
|
"Type of Entity - same as entityType (for backwards compatibility)"
|
|
825
|
+
),
|
|
826
|
+
viewId: CommonFields.teViewId,
|
|
827
|
+
udfValuesByRun: z.record(
|
|
828
|
+
z.string(),
|
|
829
|
+
z.record(
|
|
830
|
+
z.string(),
|
|
831
|
+
UdfFieldValueSchema.extend({
|
|
832
|
+
fieldID: UdfFieldValueSchema.shape.fieldID.optional().describe(
|
|
833
|
+
"Optional projectUserFieldID of the Test Run UDF. Auto-filled from Test Run UDF metadata when omitted; if given, it must match the metadata ID for this field name."
|
|
834
|
+
)
|
|
835
|
+
})
|
|
836
|
+
)
|
|
837
|
+
).optional().describe(
|
|
838
|
+
`Optional Test Run UDF values to set BEFORE the status is updated, keyed per Test Case Run. Outer key: tcRunID (must be one of entityIDs). Inner key: UDF field 'name' (e.g. 'test_env' — NOT the 'FLD.' fieldKey). Inner value: { value, fieldID?, multiSelectAction? }. Use this to fill mandatory Test Run UDFs reported by a MANDATORY_TEST_RUN_UDF_MISSING response. Example: { "66095069": { "test_env": { "value": "QA" } }, "66095075": { "test_env": { "value": "UAT" } } }`
|
|
803
839
|
)
|
|
804
840
|
});
|
|
805
841
|
const ImportAutomationResultsPayloadSchema = z.object({
|
|
@@ -888,6 +924,7 @@ z.object({
|
|
|
888
924
|
filterValue: z.array(z.any()).optional().describe("Filter values for parameterized queries").default([])
|
|
889
925
|
});
|
|
890
926
|
export {
|
|
927
|
+
ApiQuotaStatusArgsSchema,
|
|
891
928
|
AutomationHierarchyEnum,
|
|
892
929
|
BuildArgsSchema,
|
|
893
930
|
BulkUpdateExecutionStatusArgsSchema,
|
|
@@ -938,6 +975,7 @@ export {
|
|
|
938
975
|
TestCasesLinkedToRequirementArgsSchema,
|
|
939
976
|
TestSuiteListArgsSchema,
|
|
940
977
|
TestSuitesForTestCaseArgsSchema,
|
|
978
|
+
UdfFieldValueSchema,
|
|
941
979
|
UpdateCycleArgsSchema,
|
|
942
980
|
UpdateIssueArgsSchema,
|
|
943
981
|
UpdateRequirementArgsSchema,
|
package/dist/qmetry/types/udf.js
CHANGED
|
@@ -1,30 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { CommonFields } from "./common.js";
|
|
2
|
+
import { CommonFields, UdfFieldValueSchema } from "./common.js";
|
|
3
3
|
z.object({
|
|
4
4
|
projectKey: CommonFields.projectKey
|
|
5
5
|
});
|
|
6
6
|
z.object({
|
|
7
7
|
projectKey: CommonFields.projectKeyOptional
|
|
8
8
|
});
|
|
9
|
-
const UdfFieldValueSchema = z.object({
|
|
10
|
-
fieldID: z.number().int().positive().describe(
|
|
11
|
-
"Numeric ID of the UDF field to update. Get this from the UDF field definition in QMetry admin or from the field's metadata."
|
|
12
|
-
),
|
|
13
|
-
value: z.union([
|
|
14
|
-
z.string(),
|
|
15
|
-
z.number(),
|
|
16
|
-
z.array(z.number().int()),
|
|
17
|
-
z.object({
|
|
18
|
-
parent: z.number().int().describe("Parent item ID for cascading list."),
|
|
19
|
-
child: z.number().int().describe("Child item ID for cascading list.")
|
|
20
|
-
})
|
|
21
|
-
]).describe(
|
|
22
|
-
"Value to set for this UDF field. Type depends on field type:\nSTRING: plain string, e.g. 'test value'\nNUMBER: number, e.g. 3\nDATETIMEPICKER: date string in MM-DD-YYYY format, e.g. '06-20-2026'\nLOOKUPLIST (single): numeric item ID, e.g. 5108697\nMULTILOOKUPLIST (multi-select): array of item IDs, e.g. [5158524, 5158525]\nCASCADINGLIST: object with parent and child IDs, e.g. {parent: 5126498, child: 5126499}"
|
|
23
|
-
),
|
|
24
|
-
multiSelectAction: z.enum(["append", "replace"]).optional().default("append").describe(
|
|
25
|
-
"Action for MULTILOOKUPLIST fields only. 'append' adds the new values to existing selections (default). 'replace' clears existing selections and sets only the new values. Omit or use 'append' if user does not specify — never assume 'replace'."
|
|
26
|
-
)
|
|
27
|
-
});
|
|
28
9
|
const BulkUpdateTestRunUdfsArgsSchema = z.object({
|
|
29
10
|
projectKey: CommonFields.projectKeyOptional,
|
|
30
11
|
tcRunIDs: z.array(z.number().int().positive()).min(1).describe(
|
package/dist/qtm4j/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import zod__default from "zod";
|
|
2
2
|
import { getRequestHeader } from "../common/request-context.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CLIENT_CONFIG, API_CONFIG, CONFIG_KEYS, ERROR_MESSAGES, SCHEMA_DESCRIPTIONS } from "./config/constants.js";
|
|
4
4
|
import { ApiClient } from "./http/api-client.js";
|
|
5
5
|
import { ResolverRegistry } from "./resolver/resolver-registry.js";
|
|
6
6
|
const ConfigurationSchema = zod__default.object({
|
|
@@ -907,7 +907,10 @@ class SwaggerAPI {
|
|
|
907
907
|
owner: params.owner,
|
|
908
908
|
apiName: params.apiName
|
|
909
909
|
});
|
|
910
|
-
return this.saveApiDefinition(params,
|
|
910
|
+
return this.saveApiDefinition(params, {
|
|
911
|
+
...exists ? {} : { isPrivate: true },
|
|
912
|
+
version: params.version ?? void 0
|
|
913
|
+
});
|
|
911
914
|
}
|
|
912
915
|
/**
|
|
913
916
|
* Check whether an API (any version) already exists for the given owner/name.
|
|
@@ -997,6 +1000,7 @@ class SwaggerAPI {
|
|
|
997
1000
|
const searchParams = new URLSearchParams();
|
|
998
1001
|
const specType = params.specType ?? "openapi30x";
|
|
999
1002
|
searchParams.append("specType", specType);
|
|
1003
|
+
if (params.version) searchParams.append("version", params.version);
|
|
1000
1004
|
searchParams.append("createOnly", "true");
|
|
1001
1005
|
const url = `${this.config.registryBasePath}/apis/${encodeURIComponent(
|
|
1002
1006
|
params.owner
|
|
@@ -4,6 +4,11 @@ const PortalArgsSchema = z.object({
|
|
|
4
4
|
"Portal UUID or subdomain - unique identifier for the portal instance"
|
|
5
5
|
)
|
|
6
6
|
});
|
|
7
|
+
const ProductVisibilitySchema = z.enum([
|
|
8
|
+
"visible",
|
|
9
|
+
"hidden",
|
|
10
|
+
"conditional"
|
|
11
|
+
]);
|
|
7
12
|
const ProductArgsSchema = z.object({
|
|
8
13
|
productId: z.string().describe(
|
|
9
14
|
"Product UUID or identifier in the format 'portal-subdomain:product-slug' - unique identifier for the product"
|
|
@@ -175,8 +180,8 @@ const CreateProductArgsSchema = PortalArgsSchema.extend({
|
|
|
175
180
|
public: z.boolean().optional().describe(
|
|
176
181
|
"Whether the product is publicly visible to all portal visitors - false means only authenticated users with appropriate roles can access it"
|
|
177
182
|
),
|
|
178
|
-
|
|
179
|
-
"Whether the product is
|
|
183
|
+
visibility: ProductVisibilitySchema.optional().describe(
|
|
184
|
+
"Whether the product is shown on the portal landing page - 'visible' shows it to everyone, 'hidden' hides it from everyone, 'conditional' shows it only to users who have access to the product (not allowed when the product is public)"
|
|
180
185
|
)
|
|
181
186
|
});
|
|
182
187
|
const UpdateProductArgsSchema = ProductArgsSchema.extend({
|
|
@@ -192,8 +197,8 @@ const UpdateProductArgsSchema = ProductArgsSchema.extend({
|
|
|
192
197
|
public: z.boolean().optional().describe(
|
|
193
198
|
"Change product visibility - true makes it publicly accessible to all visitors, false restricts to authenticated users with roles"
|
|
194
199
|
),
|
|
195
|
-
|
|
196
|
-
"Change
|
|
200
|
+
visibility: ProductVisibilitySchema.optional().describe(
|
|
201
|
+
"Change whether the product is shown on the portal landing page - 'visible' shows it to everyone, 'hidden' hides it from everyone, 'conditional' shows it only to users who have access to the product. Not allowed when the product is public; making a 'conditional' product public without also changing visibility fails with 409"
|
|
197
202
|
)
|
|
198
203
|
});
|
|
199
204
|
const ResolveOrganizationPortalArgsSchema = z.object({
|
|
@@ -285,7 +290,7 @@ const ProductOutputSchema = z.looseObject({
|
|
|
285
290
|
portalId: z.string().optional(),
|
|
286
291
|
description: z.string().optional(),
|
|
287
292
|
public: z.boolean().optional(),
|
|
288
|
-
|
|
293
|
+
visibility: ProductVisibilitySchema.optional(),
|
|
289
294
|
url: z.string().optional()
|
|
290
295
|
});
|
|
291
296
|
const ProductsListOutputSchema = z.object({
|
|
@@ -377,6 +382,7 @@ export {
|
|
|
377
382
|
PortalsListOutputSchema,
|
|
378
383
|
ProductArgsSchema,
|
|
379
384
|
ProductOutputSchema,
|
|
385
|
+
ProductVisibilitySchema,
|
|
380
386
|
ProductsListOutputSchema,
|
|
381
387
|
PublishOutputSchema,
|
|
382
388
|
PublishProductArgsSchema,
|
|
@@ -32,7 +32,10 @@ const CreateApiParamsSchema = z.object({
|
|
|
32
32
|
owner: z.string().describe("Organization name (owner of the API)"),
|
|
33
33
|
apiName: z.string().describe("API name"),
|
|
34
34
|
definition: z.string().describe(
|
|
35
|
-
"API definition content (OpenAPI/AsyncAPI specification in JSON or YAML format). Format is automatically detected. On create,
|
|
35
|
+
"API definition content (OpenAPI/AsyncAPI specification in JSON or YAML format). Format is automatically detected. On create, private visibility, automock disabled, and no project assignment are always used. On update, the API's existing visibility is preserved. The version is taken from the version parameter if provided, otherwise from this definition's info.version field — include a non-empty info.version if you omit the version parameter, or the request fails."
|
|
36
|
+
),
|
|
37
|
+
version: z.string().nullish().describe(
|
|
38
|
+
"API version to create or update (e.g. '1.0.0'). If omitted, the version is taken from the definition's info.version field, which must then be a non-empty value or the request fails with a 400 error."
|
|
36
39
|
)
|
|
37
40
|
});
|
|
38
41
|
const ScanStandardizationParamsSchema = z.object({
|
|
@@ -84,6 +87,9 @@ const CreateApiFromPromptParamsSchema = z.object({
|
|
|
84
87
|
"asyncapi30x"
|
|
85
88
|
]).default("openapi30x").describe(
|
|
86
89
|
"Specification type for the generated API definition. Use: 'openapi20' for OpenAPI 2.0, 'openapi30x' for OpenAPI 3.0.x (default), 'openapi31x' for OpenAPI 3.1.x, 'asyncapi2xx' for AsyncAPI 2.x, 'asyncapi30x' for AsyncAPI 3.0.x"
|
|
90
|
+
),
|
|
91
|
+
version: z.string().nullish().describe(
|
|
92
|
+
"API version to save the AI-generated definition as (e.g. '1.0.0'). If omitted, the version is taken from the generated definition's info.version field."
|
|
87
93
|
)
|
|
88
94
|
});
|
|
89
95
|
const StandardizeApiParamsSchema = z.object({
|
|
@@ -140,11 +146,13 @@ const StandardizationErrorSchema = z.object({
|
|
|
140
146
|
});
|
|
141
147
|
const ApidomValidationFindingSchema = z.looseObject({
|
|
142
148
|
line: z.number().describe("Line number where the issue was found (1-based)"),
|
|
143
|
-
column: z.number().optional().describe("Column number where the issue starts (
|
|
144
|
-
severity: z.enum(["error", "warning", "
|
|
149
|
+
column: z.number().optional().describe("Column number where the issue starts (1-based)"),
|
|
150
|
+
severity: z.enum(["error", "warning", "information", "hint", "unknown"]).describe("Severity of the finding"),
|
|
145
151
|
message: z.string().describe("Human-readable validation message"),
|
|
146
152
|
code: z.union([z.number(), z.string()]).optional().describe("Rule or lint code (string or number)"),
|
|
147
|
-
source: z.string().optional().describe(
|
|
153
|
+
source: z.string().optional().describe(
|
|
154
|
+
"Validator that reported the finding (e.g. apilint, syntax, @asyncapi/parser)"
|
|
155
|
+
)
|
|
148
156
|
});
|
|
149
157
|
const ApidomValidationOutputSchema = z.looseObject({
|
|
150
158
|
valid: z.boolean().optional().describe("True if the spec has no error findings"),
|
|
@@ -159,7 +167,6 @@ const ApidomValidationOutputSchema = z.looseObject({
|
|
|
159
167
|
summary: z.looseObject({
|
|
160
168
|
errors: z.number().optional(),
|
|
161
169
|
warnings: z.number().optional(),
|
|
162
|
-
info: z.number().optional(),
|
|
163
170
|
total: z.number().optional(),
|
|
164
171
|
durationMs: z.number().optional()
|
|
165
172
|
}).optional()
|
|
@@ -194,7 +194,7 @@ const TOOLS = [
|
|
|
194
194
|
{
|
|
195
195
|
title: "Create or Update API",
|
|
196
196
|
toolset: "Registry API",
|
|
197
|
-
summary: "Create a new API or update an existing API in SwaggerHub Registry for Swagger Studio. The API specification type (OpenAPI, AsyncAPI) is automatically detected from the definition content.
|
|
197
|
+
summary: "Create a new API or update an existing API in SwaggerHub Registry for Swagger Studio. The API specification type (OpenAPI, AsyncAPI) is automatically detected from the definition content. On create, private visibility and automock disabled are always used and cannot be changed via this tool. The version is taken from 'version' if provided, otherwise from the definition's info.version field — include a non-empty info.version if you omit 'version', or the request fails with a 400 error. Returns HTTP 201 for creation, HTTP 200 for update. Response includes 'operation' field indicating whether it was a 'create' or 'update' operation along with API details and SwaggerHub URL.",
|
|
198
198
|
inputSchema: CreateApiParamsSchema,
|
|
199
199
|
outputSchema: CreateApiOutputSchema,
|
|
200
200
|
handler: "createOrUpdateApi",
|
|
@@ -231,7 +231,7 @@ const TOOLS = [
|
|
|
231
231
|
{
|
|
232
232
|
title: "Validate API",
|
|
233
233
|
toolset: "Registry API",
|
|
234
|
-
summary: "Validate an OpenAPI or AsyncAPI definition using server-side apidom-ls. Returns structured diagnostics with line number, severity, and message for each finding. Supports OpenAPI 2.0, 3.0, 3.1, and AsyncAPI. Provide either the raw definition (JSON or YAML) OR an existing API by owner, apiName, and version. Use this tool when the user asks to validate, lint, or check an API spec for structural errors matching the Studio Validation tab.",
|
|
234
|
+
summary: "Validate an OpenAPI or AsyncAPI definition using server-side apidom-ls and asyncapi/parser. Returns structured diagnostics with line number, severity, and message for each finding. Supports OpenAPI 2.0, 3.0, 3.1, and AsyncAPI. Provide either the raw definition (JSON or YAML) OR an existing API by owner, apiName, and version. Use this tool when the user asks to validate, lint, or check an API spec for structural errors matching the Studio Validation tab.",
|
|
235
235
|
inputSchema: ValidateApiParamsSchema,
|
|
236
236
|
outputSchema: ApidomValidationOutputSchema,
|
|
237
237
|
handler: "validateApi",
|
|
@@ -240,7 +240,7 @@ const TOOLS = [
|
|
|
240
240
|
{
|
|
241
241
|
title: "Create API from Prompt",
|
|
242
242
|
toolset: "Registry API",
|
|
243
|
-
summary: "Generate and save a new API or a new version of an existing API based on a prompt using SmartBear AI. This tool automatically applies organization governance and standardization rules during API generation. The specType parameter determines the format of the generated definition. Use: 'openapi20' for OpenAPI 2.0, 'openapi30x' for OpenAPI 3.0.x, 'openapi31x' for OpenAPI 3.1.x, 'asyncapi2xx' for AsyncAPI 2.x, 'asyncapi30x' for AsyncAPI 3.0.x. Use this tool when creating APIs that comply with governance policies or when generating APIs from natural language descriptions. Use this tool when users ask to create, generate, or design APIs with governance or standardization requirements. Fails with a conflict error if the API version already exists. Returns API details and SwaggerHub URL.",
|
|
243
|
+
summary: "Generate and save a new API or a new version of an existing API based on a prompt using SmartBear AI. This tool automatically applies organization governance and standardization rules during API generation. The specType parameter determines the format of the generated definition. Use: 'openapi20' for OpenAPI 2.0, 'openapi30x' for OpenAPI 3.0.x, 'openapi31x' for OpenAPI 3.1.x, 'asyncapi2xx' for AsyncAPI 2.x, 'asyncapi30x' for AsyncAPI 3.0.x. Optionally provide 'version' to save the generated definition as a specific version — omitting it uses the version from the generated definition's info.version field. Use this tool when creating APIs that comply with governance policies or when generating APIs from natural language descriptions. Use this tool when users ask to create, generate, or design APIs with governance or standardization requirements. Fails with a conflict error if the API version already exists. Returns API details and SwaggerHub URL.",
|
|
244
244
|
inputSchema: CreateApiFromPromptParamsSchema,
|
|
245
245
|
outputSchema: CreateApiFromPromptOutputSchema,
|
|
246
246
|
handler: "createApiFromPrompt",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Tool } from "../../../common/tools.js";
|
|
3
|
-
import {
|
|
3
|
+
import { GetIssueLinkTestCasesParams, GetIssueLinkTestCases200Response } from "../../common/rest-api-schemas.js";
|
|
4
4
|
const UpdatedGetIssueLinkTestCasesResponse = z.strictObject({
|
|
5
5
|
testCases: GetIssueLinkTestCases200Response
|
|
6
6
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Tool } from "../../../common/tools.js";
|
|
3
|
-
import {
|
|
3
|
+
import { GetIssueLinkTestCyclesParams, GetIssueLinkTestCycles200Response } from "../../common/rest-api-schemas.js";
|
|
4
4
|
const UpdatedGetIssueLinkTestCyclesResponse = z.strictObject({
|
|
5
5
|
testCycles: GetIssueLinkTestCycles200Response
|
|
6
6
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Tool } from "../../../common/tools.js";
|
|
3
|
-
import {
|
|
3
|
+
import { GetIssueLinkTestExecutionsParams, GetIssueLinkTestExecutions200Response } from "../../common/rest-api-schemas.js";
|
|
4
4
|
const UpdatedGetIssueLinkTestExecutionsResponse = z.strictObject({
|
|
5
5
|
testExecutions: GetIssueLinkTestExecutions200Response
|
|
6
6
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Tool } from "../../../common/tools.js";
|
|
3
|
-
import { UpdateTestCaseBody, updateTestCaseBodyOwnerAccountIdRegExp
|
|
3
|
+
import { UpdateTestCaseParams, UpdateTestCaseBody, updateTestCaseBodyOwnerAccountIdRegExp } from "../../common/rest-api-schemas.js";
|
|
4
4
|
import { deepMerge } from "../../common/utils.js";
|
|
5
5
|
const UpdateTestCaseBodyToolInput = UpdateTestCaseBody.extend({
|
|
6
6
|
folder: z.number().min(1).nullish().describe("The ID of the folder to move the test case into."),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Tool } from "../../../common/tools.js";
|
|
3
|
-
import { UpdateTestCycleBody, updateTestCycleBodyOwnerAccountIdRegExp
|
|
3
|
+
import { UpdateTestCycleParams, UpdateTestCycleBody, updateTestCycleBodyOwnerAccountIdRegExp } from "../../common/rest-api-schemas.js";
|
|
4
4
|
import { deepMerge } from "../../common/utils.js";
|
|
5
5
|
const UpdateTestCycleBodyToolInput = UpdateTestCycleBody.extend({
|
|
6
6
|
folder: z.number().min(1).nullish().describe("The ID of the folder to move the test cycle into."),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartbear/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22"
|
|
6
6
|
},
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"mcpName": "com.smartbear/smartbear-mcp",
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "git
|
|
22
|
+
"url": "git+https://github.com/SmartBear/smartbear-mcp.git"
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"type": "module",
|
|
@@ -53,9 +53,10 @@
|
|
|
53
53
|
"bump": "node scripts/bump.js"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
+
"@amplitude/analytics-node": "^1.5.71",
|
|
56
57
|
"@bugsnag/js": "^8.8.1",
|
|
57
|
-
"@modelcontextprotocol/server": "^2.0.0-beta.5",
|
|
58
58
|
"@modelcontextprotocol/node": "^2.0.0-beta.5",
|
|
59
|
+
"@modelcontextprotocol/server": "^2.0.0-beta.5",
|
|
59
60
|
"@modelcontextprotocol/server-legacy": "^2.0.0-beta.5",
|
|
60
61
|
"js-yaml": "^4.2.0",
|
|
61
62
|
"node-cache": "^5.1.2",
|
package/plugin/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# SmartBear plugin for Claude
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
This plugin connects Claude to SmartBear products through the [SmartBear MCP server](https://github.com/SmartBear/smartbear-mcp). It gives Claude tools for BearQ, BugSnag, Collaborator, PactFlow, QMetry, QTM4J (QMetry Test Management for Jira), Reflect, Swagger (Portal, Studio and Functional Testing) and Zephyr.
|
|
6
|
+
|
|
7
|
+
Full product documentation: https://developer.smartbear.com/smartbear-mcp
|
|
8
|
+
|
|
9
|
+
## Configuration
|
|
10
|
+
|
|
11
|
+
When you enable the plugin, Claude asks for the settings of each product you use. Every setting is optional: a product's tools only appear once you supply its token or base URL, so fill in just the products you need. Tokens, API keys, passwords and login tickets are marked sensitive, so they are masked when you type them and kept in your system's secure credential store rather than in a settings file.
|
|
12
|
+
|
|
13
|
+
| Product | Settings |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| [BearQ](https://developer.smartbear.com/smartbear-mcp/docs/bearq-integration) | API token, API base URL |
|
|
16
|
+
| [BugSnag](https://developer.smartbear.com/smartbear-mcp/docs/bugsnag-integration) | Auth token, project API key, endpoint |
|
|
17
|
+
| [Collaborator](https://developer.smartbear.com/smartbear-mcp/docs/collaborator-integration) | Base URL, username, login ticket |
|
|
18
|
+
| [PactFlow / Pact Broker](https://developer.smartbear.com/smartbear-mcp/docs/contract-testing-with-pactflow) | Base URL, token, or username and password |
|
|
19
|
+
| [QMetry](https://developer.smartbear.com/smartbear-mcp/docs/qmetry-integration) | API key, base URL |
|
|
20
|
+
| [QTM4J](https://developer.smartbear.com/smartbear-mcp/docs/qtm4j-integration) | API key, automation API key, base URL |
|
|
21
|
+
| [Reflect](https://developer.smartbear.com/smartbear-mcp/docs/reflect-integration) | API token |
|
|
22
|
+
| [Swagger](https://developer.smartbear.com/smartbear-mcp/docs/swagger-portal-integration) | API key, Portal, Registry and UI base paths |
|
|
23
|
+
| [Swagger Functional Testing](https://developer.smartbear.com/smartbear-mcp/docs/swagger-functional-testing-integration) | API token, base path |
|
|
24
|
+
| [Zephyr](https://developer.smartbear.com/smartbear-mcp/docs/zephyr-integration) | API token, base URL |
|
|
25
|
+
|
|
26
|
+
In Claude Code you can change these settings later with `/plugin configure smartbear`.
|
|
27
|
+
|
|
28
|
+
## What the plugin runs and where data goes
|
|
29
|
+
|
|
30
|
+
- **What runs:** a local MCP server, started with `npx` from the public npm package `@smartbear/mcp`, pinned to the exact version in this plugin's `.mcp.json`. Node.js 22 or later must be installed. npm downloads the package and its dependencies from the public npm registry the first time the server starts.
|
|
31
|
+
- **What it connects to:** only the SmartBear product APIs you configure, at their default endpoints or at the base URLs you enter. Each request uses the credentials you entered for that product.
|
|
32
|
+
- **Telemetry:** the plugin doesn't turn on any usage analytics or error reporting. The server sends neither unless its own analytics or error-reporting keys are set, and this plugin doesn't set them.
|
|
33
|
+
|
|
34
|
+
The server's source code is public at https://github.com/SmartBear/smartbear-mcp.
|
|
35
|
+
|
|
36
|
+
## Support
|
|
37
|
+
|
|
38
|
+
Report issues at https://github.com/SmartBear/smartbear-mcp/issues or contact SmartBear support at https://support.smartbear.com/.
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT. See [LICENSE.txt](https://github.com/SmartBear/smartbear-mcp/blob/main/LICENSE.txt).
|