@smartbear/mcp 0.12.1 → 0.13.1

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 (89) hide show
  1. package/README.md +30 -6
  2. package/dist/bugsnag/client/api/CurrentUser.js +50 -26
  3. package/dist/bugsnag/client/api/Error.js +156 -93
  4. package/dist/bugsnag/client/api/Project.js +398 -276
  5. package/dist/bugsnag/client/api/api.js +4087 -3837
  6. package/dist/bugsnag/client/api/base.js +155 -173
  7. package/dist/bugsnag/client/api/configuration.js +28 -25
  8. package/dist/bugsnag/client/filters.js +11 -20
  9. package/dist/bugsnag/client.js +1398 -1281
  10. package/dist/bugsnag/input-schemas.js +39 -57
  11. package/dist/collaborator/client.js +335 -371
  12. package/dist/common/bugsnag.js +5 -3
  13. package/dist/common/cache.js +50 -57
  14. package/dist/common/client-registry.js +106 -119
  15. package/dist/common/info.js +7 -3
  16. package/dist/common/register-clients.js +0 -16
  17. package/dist/common/server.js +270 -228
  18. package/dist/common/tools.js +19 -0
  19. package/dist/common/transport-http.js +252 -343
  20. package/dist/common/transport-stdio.js +40 -37
  21. package/dist/common/zod-utils.js +20 -0
  22. package/dist/index.js +18 -23
  23. package/dist/package.json.js +11 -0
  24. package/dist/pactflow/client/ai.js +142 -169
  25. package/dist/pactflow/client/base.js +41 -51
  26. package/dist/pactflow/client/prompt-utils.js +93 -84
  27. package/dist/pactflow/client/prompts.js +95 -92
  28. package/dist/pactflow/client/tools.js +94 -83
  29. package/dist/pactflow/client/utils.js +60 -64
  30. package/dist/pactflow/client.js +399 -320
  31. package/dist/qmetry/client/api/client-api.js +43 -41
  32. package/dist/qmetry/client/api/error-handler.js +264 -310
  33. package/dist/qmetry/client/auto-resolve.js +78 -99
  34. package/dist/qmetry/client/automation.js +139 -162
  35. package/dist/qmetry/client/handlers.js +49 -46
  36. package/dist/qmetry/client/issues.js +133 -115
  37. package/dist/qmetry/client/project.js +153 -174
  38. package/dist/qmetry/client/requirement.js +82 -70
  39. package/dist/qmetry/client/testcase.js +240 -208
  40. package/dist/qmetry/client/testsuite.js +332 -293
  41. package/dist/qmetry/client/tools/automation-tools.js +291 -288
  42. package/dist/qmetry/client/tools/index.js +16 -13
  43. package/dist/qmetry/client/tools/issue-tools.js +534 -543
  44. package/dist/qmetry/client/tools/project-tools.js +635 -656
  45. package/dist/qmetry/client/tools/requirement-tools.js +525 -528
  46. package/dist/qmetry/client/tools/testcase-tools.js +773 -786
  47. package/dist/qmetry/client/tools/testsuite-tools.js +1069 -1083
  48. package/dist/qmetry/client/utils.js +8 -14
  49. package/dist/qmetry/client.js +111 -109
  50. package/dist/qmetry/config/constants.js +48 -44
  51. package/dist/qmetry/config/rest-endpoints.js +51 -48
  52. package/dist/qmetry/types/automation.js +7 -7
  53. package/dist/qmetry/types/common.js +763 -1049
  54. package/dist/qmetry/types/issues.js +26 -19
  55. package/dist/qmetry/types/project.js +32 -25
  56. package/dist/qmetry/types/requirements.js +26 -21
  57. package/dist/qmetry/types/testcase.js +55 -44
  58. package/dist/qmetry/types/testsuite.js +66 -52
  59. package/dist/reflect/client.js +284 -226
  60. package/dist/swagger/client/api.js +645 -662
  61. package/dist/swagger/client/configuration.js +31 -33
  62. package/dist/swagger/client/portal-types.js +204 -244
  63. package/dist/swagger/client/registry-types.js +62 -96
  64. package/dist/swagger/client/tools.js +148 -158
  65. package/dist/swagger/client/user-management-types.js +11 -22
  66. package/dist/swagger/client.js +143 -135
  67. package/dist/swagger/config-utils.js +10 -16
  68. package/dist/zephyr/client.js +43 -42
  69. package/dist/zephyr/common/api-client.js +35 -30
  70. package/dist/zephyr/common/auth-service.js +16 -13
  71. package/dist/zephyr/common/rest-api-schemas.js +3173 -5146
  72. package/dist/zephyr/tool/environment/get-environments.js +66 -66
  73. package/dist/zephyr/tool/priority/get-priorities.js +41 -41
  74. package/dist/zephyr/tool/project/get-project.js +37 -37
  75. package/dist/zephyr/tool/project/get-projects.js +46 -46
  76. package/dist/zephyr/tool/status/get-statuses.js +47 -47
  77. package/dist/zephyr/tool/test-case/get-test-case.js +37 -37
  78. package/dist/zephyr/tool/test-case/get-test-cases.js +62 -62
  79. package/dist/zephyr/tool/test-cycle/get-test-cycle.js +37 -37
  80. package/dist/zephyr/tool/test-cycle/get-test-cycles.js +70 -70
  81. package/dist/zephyr/tool/test-execution/get-test-execution.js +37 -37
  82. package/dist/zephyr/tool/test-execution/get-test-executions.js +43 -43
  83. package/package.json +5 -5
  84. package/dist/bugsnag/client/api/index.js +0 -6
  85. package/dist/common/types.js +0 -6
  86. package/dist/qmetry/client/tools/types.js +0 -1
  87. package/dist/swagger/client/index.js +0 -6
  88. package/dist/tests/unit/bugsnag/utils/factories.js +0 -86
  89. package/dist/zephyr/tool/zephyr-tool.js +0 -1
@@ -1,59 +1,41 @@
1
- import z from "zod";
2
- const filterValueSchema = z.object({
3
- type: z.enum(["eq", "ne", "empty"]),
4
- value: z.union([z.string(), z.boolean(), z.number()]),
1
+ import zod__default from "zod";
2
+ const filterValueSchema = zod__default.object({
3
+ type: zod__default.enum(["eq", "ne", "empty"]),
4
+ value: zod__default.union([zod__default.string(), zod__default.boolean(), zod__default.number()])
5
5
  });
6
- const filtersSchema = z.record(z.array(filterValueSchema));
7
- /**
8
- * A collection of input parameter schemas for reuse between tools.
9
- * Add new entries when common parameters are identified.
10
- */
11
- export const toolInputParameters = {
12
- empty: z.object({}).describe("No parameters are required for this tool"),
13
- buildId: z.string().describe("Unique identifier of the app build"),
14
- errorId: z.string().describe("Unique identifier of the error"),
15
- eventId: z.string().describe("Unique identifier of the event"),
16
- projectId: z
17
- .string()
18
- .optional()
19
- .describe("Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools."),
20
- releaseId: z.string().describe("Unique identifier of the app release"),
21
- direction: z
22
- .enum(["asc", "desc"])
23
- .describe("Sort direction for ordering results")
24
- .default("desc"),
25
- performanceFilters: filtersSchema
26
- .describe("Apply filters to narrow down the span group list. Use the List Trace Fields tool to discover available filter fields. " +
27
- "Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h).")
28
- .default({
29
- "span.since": [{ type: "eq", value: "7d" }],
30
- }),
31
- filters: filtersSchema
32
- .describe("Apply filters to narrow down the error list. Use the List Project Event Filters tool to discover available filter fields. " +
33
- "Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h).")
34
- .default({
35
- "event.since": [{ type: "eq", value: "30d" }],
36
- "error.status": [{ type: "eq", value: "open" }],
37
- }),
38
- nextUrl: z
39
- .string()
40
- .describe("URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. " +
41
- "Only values provided in the output from this tool can be used. Do not attempt to construct it manually.")
42
- .optional(),
43
- page: z.number().describe("Page number to return (starts from 1)").default(1),
44
- perPage: z
45
- .number()
46
- .describe("How many results to return per page.")
47
- .min(1)
48
- .max(100)
49
- .default(30),
50
- releaseStage: z
51
- .string()
52
- .describe("Filter releases by this stage (e.g. production, staging), defaults to 'production'")
53
- .default("production"),
54
- sort: z
55
- .enum(["first_seen", "last_seen", "events", "users", "unsorted"])
56
- .describe("Field to sort the errors by")
57
- .default("last_seen"),
58
- spanGroupId: z.string().describe("ID of the span group"),
6
+ const filtersSchema = zod__default.record(zod__default.string(), zod__default.array(filterValueSchema));
7
+ const toolInputParameters = {
8
+ empty: zod__default.object({}).describe("No parameters are required for this tool"),
9
+ buildId: zod__default.string().describe("Unique identifier of the app build"),
10
+ errorId: zod__default.string().describe("Unique identifier of the error"),
11
+ eventId: zod__default.string().describe("Unique identifier of the event"),
12
+ projectId: zod__default.string().optional().describe(
13
+ "Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools."
14
+ ),
15
+ releaseId: zod__default.string().describe("Unique identifier of the app release"),
16
+ direction: zod__default.enum(["asc", "desc"]).describe("Sort direction for ordering results").default("desc"),
17
+ performanceFilters: filtersSchema.describe(
18
+ "Apply filters to narrow down the span group list. Use the List Trace Fields tool to discover available filter fields. Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h)."
19
+ ).default({
20
+ "span.since": [{ type: "eq", value: "7d" }]
21
+ }),
22
+ filters: filtersSchema.describe(
23
+ "Apply filters to narrow down the error list. Use the List Project Event Filters tool to discover available filter fields. Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h)."
24
+ ).default({
25
+ "event.since": [{ type: "eq", value: "30d" }],
26
+ "error.status": [{ type: "eq", value: "open" }]
27
+ }),
28
+ nextUrl: zod__default.string().describe(
29
+ "URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually."
30
+ ).optional(),
31
+ page: zod__default.number().describe("Page number to return (starts from 1)").default(1),
32
+ perPage: zod__default.number().describe("How many results to return per page.").min(1).max(100).default(30),
33
+ releaseStage: zod__default.string().describe(
34
+ "Filter releases by this stage (e.g. production, staging), defaults to 'production'"
35
+ ).default("production"),
36
+ sort: zod__default.enum(["first_seen", "last_seen", "events", "users", "unsorted"]).describe("Field to sort the errors by").default("last_seen"),
37
+ spanGroupId: zod__default.string().describe("ID of the span group")
38
+ };
39
+ export {
40
+ toolInputParameters
59
41
  };