@smartbear/mcp 0.42.0 → 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.
Files changed (47) hide show
  1. package/dist/bearq/api.js +16 -0
  2. package/dist/bearq/client.js +9 -1
  3. package/dist/bearq/tool/tasks/stop-task.js +6 -3
  4. package/dist/bearq/tool/workflows/get-workflow-run.js +31 -0
  5. package/dist/bearq/tool/workflows/list-workflows.js +28 -0
  6. package/dist/bearq/tool/workflows/run-workflow.js +57 -0
  7. package/dist/bearq/tool/workflows/stop-workflow-run.js +33 -0
  8. package/dist/common/transport-http.js +8 -1
  9. package/dist/package.json.js +1 -1
  10. package/dist/pactflow/client/admin-api.js +3 -8
  11. package/dist/pactflow/client/ai.js +34 -0
  12. package/dist/pactflow/client/contract-api.js +2 -0
  13. package/dist/pactflow/client/http-client.js +7 -2
  14. package/dist/pactflow/client/pacticipant-api.js +37 -0
  15. package/dist/pactflow/client/schemas/admin.js +799 -0
  16. package/dist/pactflow/client/schemas/common.js +201 -0
  17. package/dist/pactflow/client/schemas/contract.js +444 -0
  18. package/dist/pactflow/client/schemas/environment.js +94 -0
  19. package/dist/pactflow/client/schemas/output.js +55 -0
  20. package/dist/pactflow/client/schemas/pacticipant.js +290 -0
  21. package/dist/pactflow/client/schemas/webhook.js +164 -0
  22. package/dist/pactflow/client/tools.js +32 -1
  23. package/dist/pactflow/client.js +21 -3
  24. package/dist/qmetry/client/ai-agent.js +3 -0
  25. package/dist/qmetry/client/api/error-handler.js +7 -2
  26. package/dist/qmetry/client/auto-resolve.js +5 -0
  27. package/dist/qmetry/client/handlers.js +2 -1
  28. package/dist/qmetry/client/project.js +19 -1
  29. package/dist/qmetry/client/testsuite.js +207 -2
  30. package/dist/qmetry/client/tools/ai-agent-tools.js +13 -0
  31. package/dist/qmetry/client/tools/issue-tools.js +7 -3
  32. package/dist/qmetry/client/tools/project-tools.js +34 -1
  33. package/dist/qmetry/client/tools/testcase-tools.js +43 -296
  34. package/dist/qmetry/client/tools/testsuite-tools.js +49 -19
  35. package/dist/qmetry/client/udf.js +14 -2
  36. package/dist/qmetry/client.js +2 -1
  37. package/dist/qmetry/config/constants.js +1 -0
  38. package/dist/qmetry/config/rest-endpoints.js +2 -1
  39. package/dist/qmetry/types/ai-agent.js +3 -0
  40. package/dist/qmetry/types/common.js +40 -2
  41. package/dist/qmetry/types/udf.js +1 -20
  42. package/dist/swagger/client/portal-types.js +11 -5
  43. package/dist/swagger/client/registry-types.js +5 -4
  44. package/dist/swagger/client/tools.js +1 -1
  45. package/package.json +2 -2
  46. package/plugin/README.md +42 -0
  47. 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
- owner: z.number().optional(),
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,
@@ -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(
@@ -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
- hidden: z.boolean().optional().describe(
179
- "Whether the product is hidden from the portal landing page navigation menus - useful for internal or draft products"
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
- hidden: z.boolean().optional().describe(
196
- "Change navigation visibility - true hides from portal landing page menus while keeping the product accessible via direct links"
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
- hidden: z.boolean().optional(),
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,
@@ -146,11 +146,13 @@ const StandardizationErrorSchema = z.object({
146
146
  });
147
147
  const ApidomValidationFindingSchema = z.looseObject({
148
148
  line: z.number().describe("Line number where the issue was found (1-based)"),
149
- column: z.number().optional().describe("Column number where the issue starts (0-based)"),
150
- severity: z.enum(["error", "warning", "info"]).describe("Severity of the finding"),
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"),
151
151
  message: z.string().describe("Human-readable validation message"),
152
152
  code: z.union([z.number(), z.string()]).optional().describe("Rule or lint code (string or number)"),
153
- source: z.string().optional().describe("Source of the rule")
153
+ source: z.string().optional().describe(
154
+ "Validator that reported the finding (e.g. apilint, syntax, @asyncapi/parser)"
155
+ )
154
156
  });
155
157
  const ApidomValidationOutputSchema = z.looseObject({
156
158
  valid: z.boolean().optional().describe("True if the spec has no error findings"),
@@ -165,7 +167,6 @@ const ApidomValidationOutputSchema = z.looseObject({
165
167
  summary: z.looseObject({
166
168
  errors: z.number().optional(),
167
169
  warnings: z.number().optional(),
168
- info: z.number().optional(),
169
170
  total: z.number().optional(),
170
171
  durationMs: z.number().optional()
171
172
  }).optional()
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbear/mcp",
3
- "version": "0.42.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@github.com:SmartBear/smartbear-mcp.git"
22
+ "url": "git+https://github.com/SmartBear/smartbear-mcp.git"
23
23
  },
24
24
  "license": "MIT",
25
25
  "type": "module",
@@ -0,0 +1,42 @@
1
+ # SmartBear plugin for Claude
2
+
3
+ ![SmartBear](icon.png)
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).