@smartbear/mcp 0.10.0 → 0.11.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 (35) hide show
  1. package/README.md +10 -8
  2. package/dist/bugsnag/client/api/index.js +2 -0
  3. package/dist/bugsnag/client/filters.js +0 -6
  4. package/dist/bugsnag/client.js +234 -376
  5. package/dist/bugsnag/input-schemas.js +51 -0
  6. package/dist/collaborator/client.js +18 -5
  7. package/dist/common/cache.js +63 -0
  8. package/dist/common/client-registry.js +128 -0
  9. package/dist/common/register-clients.js +31 -0
  10. package/dist/common/server.js +30 -9
  11. package/dist/common/transport-http.js +377 -0
  12. package/dist/common/transport-stdio.js +43 -0
  13. package/dist/index.js +20 -70
  14. package/dist/pactflow/client.js +39 -19
  15. package/dist/qmetry/client.js +24 -9
  16. package/dist/reflect/client.js +10 -4
  17. package/dist/{api-hub → swagger}/client/api.js +2 -2
  18. package/dist/{api-hub → swagger}/client/configuration.js +1 -1
  19. package/dist/{api-hub → swagger}/client/index.js +2 -2
  20. package/dist/{api-hub → swagger}/client/tools.js +4 -4
  21. package/dist/{api-hub → swagger}/client.js +47 -35
  22. package/dist/swagger/config-utils.js +18 -0
  23. package/dist/zephyr/client.js +40 -8
  24. package/dist/zephyr/common/rest-api-schemas.js +79 -78
  25. package/dist/zephyr/tool/priority/get-priorities.js +43 -0
  26. package/dist/zephyr/tool/status/get-statuses.js +49 -0
  27. package/dist/zephyr/tool/test-case/get-test-case.js +39 -0
  28. package/dist/zephyr/tool/test-case/get-test-cases.js +64 -0
  29. package/dist/zephyr/tool/test-cycle/get-test-cycle.js +39 -0
  30. package/dist/zephyr/tool/test-cycle/get-test-cycles.js +2 -2
  31. package/dist/zephyr/tool/test-execution/get-test-execution.js +39 -0
  32. package/package.json +2 -2
  33. /package/dist/{api-hub → swagger}/client/portal-types.js +0 -0
  34. /package/dist/{api-hub → swagger}/client/registry-types.js +0 -0
  35. /package/dist/{api-hub → swagger}/client/user-management-types.js +0 -0
package/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
  </div>
19
19
  <br />
20
20
 
21
- A Model Context Protocol (MCP) server which provides AI assistants with seamless access to SmartBear's suite of testing and monitoring tools, including [BugSnag](https://www.bugsnag.com/), [Reflect](https://reflect.run), [API Hub](https://www.smartbear.com/api-hub), [PactFlow](https://pactflow.io/), [Pact Broker](https://docs.pact.io/), [QMetry](https://www.qmetry.com/), [Zephyr](https://smartbear.com/test-management/zephyr/) and [Collaborator](https://smartbear.com/product/collaborator/).
21
+ A Model Context Protocol (MCP) server which provides AI assistants with seamless access to SmartBear's suite of testing and monitoring tools, including [BugSnag](https://www.bugsnag.com/), [Reflect](https://reflect.run), [Swagger](https://www.smartbear.com/api-hub), [PactFlow](https://pactflow.io/), [Pact Broker](https://docs.pact.io/), [QMetry](https://www.qmetry.com/), [Zephyr](https://smartbear.com/test-management/zephyr/) and [Collaborator](https://smartbear.com/product/collaborator/).
22
22
 
23
23
  ## What is MCP?
24
24
 
@@ -30,8 +30,10 @@ See individual guides for suggested prompts and supported tools and resources:
30
30
 
31
31
  - [BugSnag](https://developer.smartbear.com/smartbear-mcp/docs/bugsnag-integration) - Comprehensive error monitoring and debugging capabilities
32
32
  - [Test Hub](https://developer.smartbear.com/smartbear-mcp/docs/test-hub-integration) - Test management and execution capabilities
33
- - [API Hub](https://developer.smartbear.com/smartbear-mcp/docs/api-hub-integration) - Portal management capabilities
34
- - [PactFlow](https://developer.smartbear.com/pactflow/default/getting-started) - Contract testing capabilities
33
+ - **Swagger**
34
+ - [Portal](https://developer.smartbear.com/smartbear-mcp/docs/swagger-portal-integration) - Portal and product management capabilities
35
+ - [Studio](https://developer.smartbear.com/smartbear-mcp/docs/swagger-studio-integration) - API and Domain management capabilities
36
+ - [Contract Testing (PactFlow)](https://developer.smartbear.com/pactflow/default/getting-started) - Contract testing capabilities
35
37
  - [QMetry](https://developer.smartbear.com/smartbear-mcp/docs/qmetry-integration) - QMetry Test Management capabilities
36
38
  - [Zephyr](https://developer.smartbear.com/smartbear-mcp/docs/zephyr-integration) - Zephyr Test Management capabilities
37
39
  - [Collaborator](https://developer.smartbear.com/smartbear-mcp/docs/collaborator-integration) - Review and Remote System Configuration management capabilities
@@ -40,7 +42,7 @@ See individual guides for suggested prompts and supported tools and resources:
40
42
  ## Prerequisites
41
43
 
42
44
  - Node.js 20+ and npm
43
- - Access to SmartBear products (BugSnag, Reflect, API Hub, QMetry, or Zephyr)
45
+ - Access to SmartBear products (BugSnag, Reflect, Swagger, QMetry, or Zephyr)
44
46
  - Valid API tokens for the products you want to integrate
45
47
 
46
48
  ## Installation
@@ -72,7 +74,7 @@ Alternatively, you can use `npx` (or globally install) the `@smartbear/mcp` pack
72
74
  "BUGSNAG_AUTH_TOKEN": "${input:bugsnag_auth_token}",
73
75
  "BUGSNAG_PROJECT_API_KEY": "${input:bugsnag_project_api_key}",
74
76
  "REFLECT_API_TOKEN": "${input:reflect_api_token}",
75
- "API_HUB_API_KEY": "${input:api_hub_api_key}",
77
+ "SWAGGER_API_KEY": "${input:swagger_api_key}",
76
78
  "PACT_BROKER_BASE_URL": "${input:pact_broker_base_url}",
77
79
  "PACT_BROKER_TOKEN": "${input:pact_broker_token}",
78
80
  "PACT_BROKER_USERNAME": "${input:pact_broker_username}",
@@ -107,9 +109,9 @@ Alternatively, you can use `npx` (or globally install) the `@smartbear/mcp` pack
107
109
  "password": true
108
110
  },
109
111
  {
110
- "id": "api_hub_api_key",
112
+ "id": "swagger_api_key",
111
113
  "type": "promptString",
112
- "description": "API Hub API Key - leave blank to disable API Hub tools",
114
+ "description": "Swagger API Key - leave blank to disable Swagger tools",
113
115
  "password": true
114
116
  },
115
117
  {
@@ -200,7 +202,7 @@ Add the following configuration to your `claude_desktop_config.json` to launch t
200
202
  "BUGSNAG_AUTH_TOKEN": "your_personal_auth_token",
201
203
  "BUGSNAG_PROJECT_API_KEY": "your_project_api_key",
202
204
  "REFLECT_API_TOKEN": "your_reflect_token",
203
- "API_HUB_API_KEY": "your_api_hub_key",
205
+ "SWAGGER_API_KEY": "your_swagger_key",
204
206
  "PACT_BROKER_BASE_URL": "your_pactflow_or_pactbroker_base_url",
205
207
  "PACT_BROKER_TOKEN": "your_pactflow_token",
206
208
  "PACT_BROKER_USERNAME": "your_pact_broker_username",
@@ -1,3 +1,5 @@
1
+ // Exporting all the types required outside of the api module - all imports from the tool should come from here
2
+ export { ErrorUpdateRequest } from "./api.js";
1
3
  export { CurrentUserAPI } from "./CurrentUser.js";
2
4
  export { Configuration } from "./configuration.js";
3
5
  export { ErrorAPI } from "./Error.js";
@@ -4,12 +4,6 @@
4
4
  * This file provides utility functions for creating filter URL parameters
5
5
  * based on the BugSnag filtering specification described in the Filtering.md document.
6
6
  */
7
- import { z } from "zod";
8
- export const FilterValueSchema = z.object({
9
- type: z.enum(["eq", "ne", "empty"]),
10
- value: z.union([z.string(), z.boolean(), z.number()]),
11
- });
12
- export const FilterObjectSchema = z.record(z.array(FilterValueSchema));
13
7
  /**
14
8
  * Converts a FilterObject to URL search parameters
15
9
  *