@checkview/mcp-server 1.1.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 (263) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +50 -0
  3. package/dist/api-client.d.ts +44 -0
  4. package/dist/api-client.d.ts.map +1 -0
  5. package/dist/api-client.js +164 -0
  6. package/dist/api-client.js.map +1 -0
  7. package/dist/format.d.ts +35 -0
  8. package/dist/format.d.ts.map +1 -0
  9. package/dist/format.js +57 -0
  10. package/dist/format.js.map +1 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +142 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/polling.d.ts +13 -0
  16. package/dist/polling.d.ts.map +1 -0
  17. package/dist/polling.js +55 -0
  18. package/dist/polling.js.map +1 -0
  19. package/dist/tools/abort-test.d.ts +4 -0
  20. package/dist/tools/abort-test.d.ts.map +1 -0
  21. package/dist/tools/abort-test.js +136 -0
  22. package/dist/tools/abort-test.js.map +1 -0
  23. package/dist/tools/add-test-comment.d.ts +4 -0
  24. package/dist/tools/add-test-comment.d.ts.map +1 -0
  25. package/dist/tools/add-test-comment.js +77 -0
  26. package/dist/tools/add-test-comment.js.map +1 -0
  27. package/dist/tools/add-website.d.ts +4 -0
  28. package/dist/tools/add-website.d.ts.map +1 -0
  29. package/dist/tools/add-website.js +106 -0
  30. package/dist/tools/add-website.js.map +1 -0
  31. package/dist/tools/check-website-availability.d.ts +4 -0
  32. package/dist/tools/check-website-availability.d.ts.map +1 -0
  33. package/dist/tools/check-website-availability.js +45 -0
  34. package/dist/tools/check-website-availability.js.map +1 -0
  35. package/dist/tools/check-website-health.d.ts +4 -0
  36. package/dist/tools/check-website-health.d.ts.map +1 -0
  37. package/dist/tools/check-website-health.js +61 -0
  38. package/dist/tools/check-website-health.js.map +1 -0
  39. package/dist/tools/compare-test-runs.d.ts +4 -0
  40. package/dist/tools/compare-test-runs.d.ts.map +1 -0
  41. package/dist/tools/compare-test-runs.js +75 -0
  42. package/dist/tools/compare-test-runs.js.map +1 -0
  43. package/dist/tools/create-form-test-flow.d.ts +4 -0
  44. package/dist/tools/create-form-test-flow.d.ts.map +1 -0
  45. package/dist/tools/create-form-test-flow.js +228 -0
  46. package/dist/tools/create-form-test-flow.js.map +1 -0
  47. package/dist/tools/create-test-flow.d.ts +4 -0
  48. package/dist/tools/create-test-flow.d.ts.map +1 -0
  49. package/dist/tools/create-test-flow.js +536 -0
  50. package/dist/tools/create-test-flow.js.map +1 -0
  51. package/dist/tools/delete-invitation.d.ts +4 -0
  52. package/dist/tools/delete-invitation.d.ts.map +1 -0
  53. package/dist/tools/delete-invitation.js +67 -0
  54. package/dist/tools/delete-invitation.js.map +1 -0
  55. package/dist/tools/delete-test-comment.d.ts +4 -0
  56. package/dist/tools/delete-test-comment.d.ts.map +1 -0
  57. package/dist/tools/delete-test-comment.js +67 -0
  58. package/dist/tools/delete-test-comment.js.map +1 -0
  59. package/dist/tools/get-ai-summary.d.ts +4 -0
  60. package/dist/tools/get-ai-summary.d.ts.map +1 -0
  61. package/dist/tools/get-ai-summary.js +61 -0
  62. package/dist/tools/get-ai-summary.js.map +1 -0
  63. package/dist/tools/get-current-organization.d.ts +4 -0
  64. package/dist/tools/get-current-organization.d.ts.map +1 -0
  65. package/dist/tools/get-current-organization.js +41 -0
  66. package/dist/tools/get-current-organization.js.map +1 -0
  67. package/dist/tools/get-generation-status.d.ts +4 -0
  68. package/dist/tools/get-generation-status.d.ts.map +1 -0
  69. package/dist/tools/get-generation-status.js +45 -0
  70. package/dist/tools/get-generation-status.js.map +1 -0
  71. package/dist/tools/get-metrics.d.ts +4 -0
  72. package/dist/tools/get-metrics.d.ts.map +1 -0
  73. package/dist/tools/get-metrics.js +90 -0
  74. package/dist/tools/get-metrics.js.map +1 -0
  75. package/dist/tools/get-organization-stats.d.ts +4 -0
  76. package/dist/tools/get-organization-stats.d.ts.map +1 -0
  77. package/dist/tools/get-organization-stats.js +53 -0
  78. package/dist/tools/get-organization-stats.js.map +1 -0
  79. package/dist/tools/get-organization.d.ts +4 -0
  80. package/dist/tools/get-organization.d.ts.map +1 -0
  81. package/dist/tools/get-organization.js +71 -0
  82. package/dist/tools/get-organization.js.map +1 -0
  83. package/dist/tools/get-results.d.ts +4 -0
  84. package/dist/tools/get-results.d.ts.map +1 -0
  85. package/dist/tools/get-results.js +154 -0
  86. package/dist/tools/get-results.js.map +1 -0
  87. package/dist/tools/get-settings.d.ts +4 -0
  88. package/dist/tools/get-settings.d.ts.map +1 -0
  89. package/dist/tools/get-settings.js +100 -0
  90. package/dist/tools/get-settings.js.map +1 -0
  91. package/dist/tools/get-step-screenshot.d.ts +4 -0
  92. package/dist/tools/get-step-screenshot.d.ts.map +1 -0
  93. package/dist/tools/get-step-screenshot.js +47 -0
  94. package/dist/tools/get-step-screenshot.js.map +1 -0
  95. package/dist/tools/get-test-flow.d.ts +4 -0
  96. package/dist/tools/get-test-flow.d.ts.map +1 -0
  97. package/dist/tools/get-test-flow.js +90 -0
  98. package/dist/tools/get-test-flow.js.map +1 -0
  99. package/dist/tools/get-test-history.d.ts +4 -0
  100. package/dist/tools/get-test-history.d.ts.map +1 -0
  101. package/dist/tools/get-test-history.js +100 -0
  102. package/dist/tools/get-test-history.js.map +1 -0
  103. package/dist/tools/get-test-run-video.d.ts +4 -0
  104. package/dist/tools/get-test-run-video.d.ts.map +1 -0
  105. package/dist/tools/get-test-run-video.js +66 -0
  106. package/dist/tools/get-test-run-video.js.map +1 -0
  107. package/dist/tools/get-test-step-details.d.ts +4 -0
  108. package/dist/tools/get-test-step-details.d.ts.map +1 -0
  109. package/dist/tools/get-test-step-details.js +166 -0
  110. package/dist/tools/get-test-step-details.js.map +1 -0
  111. package/dist/tools/get-usage-reports.d.ts +4 -0
  112. package/dist/tools/get-usage-reports.d.ts.map +1 -0
  113. package/dist/tools/get-usage-reports.js +73 -0
  114. package/dist/tools/get-usage-reports.js.map +1 -0
  115. package/dist/tools/get-usage.d.ts +4 -0
  116. package/dist/tools/get-usage.d.ts.map +1 -0
  117. package/dist/tools/get-usage.js +32 -0
  118. package/dist/tools/get-usage.js.map +1 -0
  119. package/dist/tools/get-ux-audit-report.d.ts +4 -0
  120. package/dist/tools/get-ux-audit-report.d.ts.map +1 -0
  121. package/dist/tools/get-ux-audit-report.js +52 -0
  122. package/dist/tools/get-ux-audit-report.js.map +1 -0
  123. package/dist/tools/get-website-analytics.d.ts +4 -0
  124. package/dist/tools/get-website-analytics.d.ts.map +1 -0
  125. package/dist/tools/get-website-analytics.js +54 -0
  126. package/dist/tools/get-website-analytics.js.map +1 -0
  127. package/dist/tools/get-website-logs.d.ts +4 -0
  128. package/dist/tools/get-website-logs.d.ts.map +1 -0
  129. package/dist/tools/get-website-logs.js +53 -0
  130. package/dist/tools/get-website-logs.js.map +1 -0
  131. package/dist/tools/get-website-screenshot.d.ts +4 -0
  132. package/dist/tools/get-website-screenshot.d.ts.map +1 -0
  133. package/dist/tools/get-website-screenshot.js +59 -0
  134. package/dist/tools/get-website-screenshot.js.map +1 -0
  135. package/dist/tools/get-website-settings.d.ts +4 -0
  136. package/dist/tools/get-website-settings.d.ts.map +1 -0
  137. package/dist/tools/get-website-settings.js +97 -0
  138. package/dist/tools/get-website-settings.js.map +1 -0
  139. package/dist/tools/get-website.d.ts +4 -0
  140. package/dist/tools/get-website.d.ts.map +1 -0
  141. package/dist/tools/get-website.js +45 -0
  142. package/dist/tools/get-website.js.map +1 -0
  143. package/dist/tools/invite-team-member.d.ts +4 -0
  144. package/dist/tools/invite-team-member.d.ts.map +1 -0
  145. package/dist/tools/invite-team-member.js +100 -0
  146. package/dist/tools/invite-team-member.js.map +1 -0
  147. package/dist/tools/list-forms.d.ts +4 -0
  148. package/dist/tools/list-forms.d.ts.map +1 -0
  149. package/dist/tools/list-forms.js +65 -0
  150. package/dist/tools/list-forms.js.map +1 -0
  151. package/dist/tools/list-organizations.d.ts +4 -0
  152. package/dist/tools/list-organizations.d.ts.map +1 -0
  153. package/dist/tools/list-organizations.js +78 -0
  154. package/dist/tools/list-organizations.js.map +1 -0
  155. package/dist/tools/list-team-members.d.ts +4 -0
  156. package/dist/tools/list-team-members.d.ts.map +1 -0
  157. package/dist/tools/list-team-members.js +58 -0
  158. package/dist/tools/list-team-members.js.map +1 -0
  159. package/dist/tools/list-test-comments.d.ts +4 -0
  160. package/dist/tools/list-test-comments.d.ts.map +1 -0
  161. package/dist/tools/list-test-comments.js +55 -0
  162. package/dist/tools/list-test-comments.js.map +1 -0
  163. package/dist/tools/list-test-flow-steps.d.ts +4 -0
  164. package/dist/tools/list-test-flow-steps.d.ts.map +1 -0
  165. package/dist/tools/list-test-flow-steps.js +59 -0
  166. package/dist/tools/list-test-flow-steps.js.map +1 -0
  167. package/dist/tools/list-test-flows.d.ts +4 -0
  168. package/dist/tools/list-test-flows.d.ts.map +1 -0
  169. package/dist/tools/list-test-flows.js +90 -0
  170. package/dist/tools/list-test-flows.js.map +1 -0
  171. package/dist/tools/list-test-runs.d.ts +4 -0
  172. package/dist/tools/list-test-runs.d.ts.map +1 -0
  173. package/dist/tools/list-test-runs.js +94 -0
  174. package/dist/tools/list-test-runs.js.map +1 -0
  175. package/dist/tools/list-ux-audits.d.ts +4 -0
  176. package/dist/tools/list-ux-audits.d.ts.map +1 -0
  177. package/dist/tools/list-ux-audits.js +59 -0
  178. package/dist/tools/list-ux-audits.js.map +1 -0
  179. package/dist/tools/list-websites.d.ts +4 -0
  180. package/dist/tools/list-websites.d.ts.map +1 -0
  181. package/dist/tools/list-websites.js +80 -0
  182. package/dist/tools/list-websites.js.map +1 -0
  183. package/dist/tools/manage-notification-settings.d.ts +4 -0
  184. package/dist/tools/manage-notification-settings.d.ts.map +1 -0
  185. package/dist/tools/manage-notification-settings.js +311 -0
  186. package/dist/tools/manage-notification-settings.js.map +1 -0
  187. package/dist/tools/pause-website.d.ts +4 -0
  188. package/dist/tools/pause-website.d.ts.map +1 -0
  189. package/dist/tools/pause-website.js +58 -0
  190. package/dist/tools/pause-website.js.map +1 -0
  191. package/dist/tools/regenerate-test-steps.d.ts +4 -0
  192. package/dist/tools/regenerate-test-steps.d.ts.map +1 -0
  193. package/dist/tools/regenerate-test-steps.js +173 -0
  194. package/dist/tools/regenerate-test-steps.js.map +1 -0
  195. package/dist/tools/reinitialize-test-flow.d.ts +4 -0
  196. package/dist/tools/reinitialize-test-flow.d.ts.map +1 -0
  197. package/dist/tools/reinitialize-test-flow.js +79 -0
  198. package/dist/tools/reinitialize-test-flow.js.map +1 -0
  199. package/dist/tools/remove-team-member.d.ts +4 -0
  200. package/dist/tools/remove-team-member.d.ts.map +1 -0
  201. package/dist/tools/remove-team-member.js +68 -0
  202. package/dist/tools/remove-team-member.js.map +1 -0
  203. package/dist/tools/remove-test-flow.d.ts +4 -0
  204. package/dist/tools/remove-test-flow.d.ts.map +1 -0
  205. package/dist/tools/remove-test-flow.js +74 -0
  206. package/dist/tools/remove-test-flow.js.map +1 -0
  207. package/dist/tools/remove-website.d.ts +4 -0
  208. package/dist/tools/remove-website.d.ts.map +1 -0
  209. package/dist/tools/remove-website.js +74 -0
  210. package/dist/tools/remove-website.js.map +1 -0
  211. package/dist/tools/resume-website.d.ts +4 -0
  212. package/dist/tools/resume-website.d.ts.map +1 -0
  213. package/dist/tools/resume-website.js +58 -0
  214. package/dist/tools/resume-website.js.map +1 -0
  215. package/dist/tools/run-all-tests.d.ts +4 -0
  216. package/dist/tools/run-all-tests.d.ts.map +1 -0
  217. package/dist/tools/run-all-tests.js +165 -0
  218. package/dist/tools/run-all-tests.js.map +1 -0
  219. package/dist/tools/run-test.d.ts +4 -0
  220. package/dist/tools/run-test.d.ts.map +1 -0
  221. package/dist/tools/run-test.js +186 -0
  222. package/dist/tools/run-test.js.map +1 -0
  223. package/dist/tools/run-ux-audit.d.ts +4 -0
  224. package/dist/tools/run-ux-audit.d.ts.map +1 -0
  225. package/dist/tools/run-ux-audit.js +192 -0
  226. package/dist/tools/run-ux-audit.js.map +1 -0
  227. package/dist/tools/set-organization.d.ts +4 -0
  228. package/dist/tools/set-organization.d.ts.map +1 -0
  229. package/dist/tools/set-organization.js +129 -0
  230. package/dist/tools/set-organization.js.map +1 -0
  231. package/dist/tools/test-url.d.ts +4 -0
  232. package/dist/tools/test-url.d.ts.map +1 -0
  233. package/dist/tools/test-url.js +334 -0
  234. package/dist/tools/test-url.js.map +1 -0
  235. package/dist/tools/update-organization.d.ts +4 -0
  236. package/dist/tools/update-organization.d.ts.map +1 -0
  237. package/dist/tools/update-organization.js +90 -0
  238. package/dist/tools/update-organization.js.map +1 -0
  239. package/dist/tools/update-schedule.d.ts +4 -0
  240. package/dist/tools/update-schedule.d.ts.map +1 -0
  241. package/dist/tools/update-schedule.js +157 -0
  242. package/dist/tools/update-schedule.js.map +1 -0
  243. package/dist/tools/update-settings.d.ts +4 -0
  244. package/dist/tools/update-settings.d.ts.map +1 -0
  245. package/dist/tools/update-settings.js +97 -0
  246. package/dist/tools/update-settings.js.map +1 -0
  247. package/dist/tools/update-team-member.d.ts +4 -0
  248. package/dist/tools/update-team-member.d.ts.map +1 -0
  249. package/dist/tools/update-team-member.js +102 -0
  250. package/dist/tools/update-team-member.js.map +1 -0
  251. package/dist/tools/update-test-flow-steps.d.ts +4 -0
  252. package/dist/tools/update-test-flow-steps.d.ts.map +1 -0
  253. package/dist/tools/update-test-flow-steps.js +440 -0
  254. package/dist/tools/update-test-flow-steps.js.map +1 -0
  255. package/dist/tools/update-test-flow.d.ts +4 -0
  256. package/dist/tools/update-test-flow.d.ts.map +1 -0
  257. package/dist/tools/update-test-flow.js +172 -0
  258. package/dist/tools/update-test-flow.js.map +1 -0
  259. package/dist/tools/update-website.d.ts +4 -0
  260. package/dist/tools/update-website.d.ts.map +1 -0
  261. package/dist/tools/update-website.js +86 -0
  262. package/dist/tools/update-website.js.map +1 -0
  263. package/package.json +57 -0
@@ -0,0 +1,4 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { type ApiClient } from "../api-client.js";
3
+ export declare function registerAbortTestTool(server: McpServer, client: ApiClient): void;
4
+ //# sourceMappingURL=abort-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abort-test.d.ts","sourceRoot":"","sources":["../../src/tools/abort-test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAiB5E,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAgKN"}
@@ -0,0 +1,136 @@
1
+ import { z } from "zod";
2
+ import { ApiError, idempotencyKey } from "../api-client.js";
3
+ export function registerAbortTestTool(server, client) {
4
+ server.registerTool("checkview_abort_test", {
5
+ description: "Abort one or more running test runs. Pass a single ID or an array of IDs.",
6
+ inputSchema: {
7
+ test_run_ids: z
8
+ .union([z.string().uuid(), z.array(z.string().uuid()).max(100)])
9
+ .describe("A single test run ID or array of test run IDs to abort"),
10
+ },
11
+ annotations: {
12
+ readOnlyHint: false,
13
+ destructiveHint: false,
14
+ idempotentHint: true,
15
+ },
16
+ }, async (args, extra) => {
17
+ try {
18
+ const ids = args.test_run_ids;
19
+ if (Array.isArray(ids)) {
20
+ if (ids.length === 0) {
21
+ return {
22
+ content: [{ type: "text", text: "No test run IDs provided." }],
23
+ };
24
+ }
25
+ // Bulk abort
26
+ const sorted = [...ids].sort();
27
+ const idemKey = idempotencyKey(`bulk-abort:${sorted.join(",")}`);
28
+ let result;
29
+ try {
30
+ const response = await client.patch("/test-runs", { ids, status: "aborted" }, idemKey, extra.signal);
31
+ result = response.body;
32
+ }
33
+ catch (error) {
34
+ if (error instanceof ApiError) {
35
+ // 400 = all tests already terminated — treat as idempotent success
36
+ if (error.status === 400) {
37
+ return {
38
+ content: [
39
+ {
40
+ type: "text",
41
+ text: "All specified tests are not in a running state (already completed or aborted).",
42
+ },
43
+ ],
44
+ };
45
+ }
46
+ if (error.isReplay && error.status >= 400) {
47
+ const freshKey = idempotencyKey(`bulk-abort:${sorted.join(",")}:${Date.now()}`);
48
+ const retryResponse = await client.patch("/test-runs", { ids, status: "aborted" }, freshKey, extra.signal);
49
+ result = retryResponse.body;
50
+ }
51
+ else {
52
+ throw error;
53
+ }
54
+ }
55
+ else {
56
+ throw error;
57
+ }
58
+ }
59
+ const lines = [
60
+ `Aborted: ${result.aborted_count} | Failed: ${result.failed_count}`,
61
+ ];
62
+ if (result.failed_count > 0) {
63
+ for (const [failedId, reason] of Object.entries(result.failed_ids)) {
64
+ lines.push(` - ${failedId}: ${reason}`);
65
+ }
66
+ }
67
+ return { content: [{ type: "text", text: lines.join("\n") }] };
68
+ }
69
+ else {
70
+ // Single abort
71
+ const idemKey = idempotencyKey(`abort:${ids}`);
72
+ try {
73
+ const response = await client.patch(`/test-runs/${ids}`, { status: "aborted" }, idemKey, extra.signal);
74
+ return {
75
+ content: [
76
+ {
77
+ type: "text",
78
+ text: response.body.message || "Test aborted.",
79
+ },
80
+ ],
81
+ };
82
+ }
83
+ catch (error) {
84
+ if (error instanceof ApiError) {
85
+ // 400 = "not in running state" — already terminated, treat as success
86
+ if (error.status === 400) {
87
+ return {
88
+ content: [
89
+ {
90
+ type: "text",
91
+ text: "Test is not in a running state (already completed or aborted).",
92
+ },
93
+ ],
94
+ };
95
+ }
96
+ if (error.status === 404) {
97
+ return {
98
+ content: [
99
+ { type: "text", text: `Test run ${ids} not found.` },
100
+ ],
101
+ isError: true,
102
+ };
103
+ }
104
+ // Cached error replay
105
+ if (error.isReplay && error.status >= 400) {
106
+ const freshKey = idempotencyKey(`abort:${ids}:${Date.now()}`);
107
+ const retryResponse = await client.patch(`/test-runs/${ids}`, { status: "aborted" }, freshKey, extra.signal);
108
+ return {
109
+ content: [
110
+ {
111
+ type: "text",
112
+ text: retryResponse.body.message || "Test aborted.",
113
+ },
114
+ ],
115
+ };
116
+ }
117
+ throw error;
118
+ }
119
+ throw error;
120
+ }
121
+ }
122
+ }
123
+ catch (error) {
124
+ return {
125
+ content: [
126
+ {
127
+ type: "text",
128
+ text: `Failed to abort test: ${error instanceof Error ? error.message : String(error)}`,
129
+ },
130
+ ],
131
+ isError: true,
132
+ };
133
+ }
134
+ });
135
+ }
136
+ //# sourceMappingURL=abort-test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abort-test.js","sourceRoot":"","sources":["../../src/tools/abort-test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAiB5E,MAAM,UAAU,qBAAqB,CACnC,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,sBAAsB,EACtB;QACE,WAAW,EACT,2EAA2E;QAC7E,WAAW,EAAE;YACX,YAAY,EAAE,CAAC;iBACZ,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;iBAC/D,QAAQ,CAAC,wDAAwD,CAAC;SACtE;QACD,WAAW,EAAE;YACX,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;SACrB;KACF,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC;YAE9B,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;gBACvB,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBACrB,OAAO;wBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE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0 +1,4 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { type ApiClient } from "../api-client.js";
3
+ export declare function registerAddTestCommentTool(server: McpServer, client: ApiClient): void;
4
+ //# sourceMappingURL=add-test-comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-test-comment.d.ts","sourceRoot":"","sources":["../../src/tools/add-test-comment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAe5E,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CA2FN"}
@@ -0,0 +1,77 @@
1
+ import { z } from "zod";
2
+ import { ApiError, idempotencyKey } from "../api-client.js";
3
+ export function registerAddTestCommentTool(server, client) {
4
+ server.registerTool("checkview_add_test_comment", {
5
+ description: "Add a comment to a test run. Useful for annotating test results with observations or follow-up notes.",
6
+ inputSchema: {
7
+ test_run_id: z
8
+ .string()
9
+ .uuid()
10
+ .describe("The test run ID to comment on"),
11
+ content: z
12
+ .string()
13
+ .min(1)
14
+ .max(500)
15
+ .describe("The comment text (1-500 characters)"),
16
+ },
17
+ annotations: {
18
+ readOnlyHint: false,
19
+ destructiveHint: false,
20
+ idempotentHint: true,
21
+ },
22
+ }, async (args, extra) => {
23
+ try {
24
+ const idemKey = idempotencyKey(`comment:${args.test_run_id}:${args.content}`);
25
+ let comment;
26
+ try {
27
+ const result = await client.post(`/test-runs/${args.test_run_id}/comments`, { comment: args.content }, idemKey, extra.signal);
28
+ comment = result.body;
29
+ }
30
+ catch (error) {
31
+ if (error instanceof ApiError) {
32
+ if (error.status === 404) {
33
+ return {
34
+ content: [{ type: "text", text: "Test run not found." }],
35
+ isError: true,
36
+ };
37
+ }
38
+ if (error.isReplay && error.status >= 400) {
39
+ const freshKey = idempotencyKey(`comment:${args.test_run_id}:${args.content}:retry:${Date.now()}`);
40
+ const retryResult = await client.post(`/test-runs/${args.test_run_id}/comments`, { comment: args.content }, freshKey, extra.signal);
41
+ comment = retryResult.body;
42
+ }
43
+ else {
44
+ throw error;
45
+ }
46
+ }
47
+ else {
48
+ throw error;
49
+ }
50
+ }
51
+ const authorName = comment.user_profile
52
+ ? `${comment.user_profile.first_name ?? ""} ${comment.user_profile.last_name ?? ""}`.trim() ||
53
+ comment.user_id
54
+ : (comment.user_id ?? "(unknown)");
55
+ return {
56
+ content: [
57
+ {
58
+ type: "text",
59
+ text: `Comment added to test run ${args.test_run_id}.\n\nComment ID: ${comment.id}\nAuthor: ${authorName}\nCreated: ${comment.created_at}`,
60
+ },
61
+ ],
62
+ };
63
+ }
64
+ catch (error) {
65
+ return {
66
+ content: [
67
+ {
68
+ type: "text",
69
+ text: `Failed to add comment: ${error instanceof Error ? error.message : String(error)}`,
70
+ },
71
+ ],
72
+ isError: true,
73
+ };
74
+ }
75
+ });
76
+ }
77
+ //# sourceMappingURL=add-test-comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-test-comment.js","sourceRoot":"","sources":["../../src/tools/add-test-comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAe5E,MAAM,UAAU,0BAA0B,CACxC,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,4BAA4B,EAC5B;QACE,WAAW,EACT,uGAAuG;QACzG,WAAW,EAAE;YACX,WAAW,EAAE,CAAC;iBACX,MAAM,EAAE;iBACR,IAAI,EAAE;iBACN,QAAQ,CAAC,+BAA+B,CAAC;YAC5C,OAAO,EAAE,CAAC;iBACP,MAAM,EAAE;iBACR,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC,GAAG,CAAC;iBACR,QAAQ,CAAC,qCAAqC,CAA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ACF,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;oBAC7B,CAAC;yBAAM,CAAC;wBACN,MAAM,KAAK,CAAC;oBACd,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,MAAM,KAAK,CAAC;gBACd,CAAC;YACH,CAAC;YAED,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY;gBACrC,CAAC,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,UAAU,IAAI,EAAE,IAAI,OAAO,CAAC,YAAY,CAAC,SAAS,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE;oBACzF,OAAO,CAAC,OAAO;gBACjB,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,IAAI,WAAW,CAAC,CAAC;YAErC,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,6BAA6B,IAAI,CAAC,WAAW,oBAAoB,OAAO,CAAC,EAAE,aAAa,UAAU,cAAc,OAAO,CAAC,UAAU,EAAE;qBAC3I;iBACF;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,0BAA0B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBACzF;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { type ApiClient } from "../api-client.js";
3
+ export declare function registerAddWebsiteTool(server: McpServer, client: ApiClient): void;
4
+ //# sourceMappingURL=add-website.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-website.d.ts","sourceRoot":"","sources":["../../src/tools/add-website.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAW5E,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAsHN"}
@@ -0,0 +1,106 @@
1
+ import { z } from "zod";
2
+ import { ApiError, idempotencyKey } from "../api-client.js";
3
+ export function registerAddWebsiteTool(server, client) {
4
+ server.registerTool("checkview_add_website", {
5
+ description: "Add a new website to CheckView for monitoring and testing. After adding, ask the user what they want to test. Two paths: (1) For WordPress plugin forms, use checkview_list_forms to discover forms, then checkview_create_form_test_flow to auto-generate tests via the progressive scanner. (2) For everything else (WooCommerce checkout, login, search, custom flows), use checkview_test_url with the appropriate test_type to create AI-generated test flows. Then set up schedules with checkview_update_schedule.",
6
+ inputSchema: {
7
+ url: z
8
+ .string()
9
+ .url()
10
+ .refine((u) => u.startsWith("https://"), "URL must use HTTPS")
11
+ .describe("The website URL to add (e.g. https://example.com)"),
12
+ type: z
13
+ .enum(["wordpress", "non_wordpress"])
14
+ .optional()
15
+ .default("wordpress")
16
+ .describe("Website type (default wordpress)"),
17
+ basic_auth_username: z
18
+ .string()
19
+ .optional()
20
+ .describe("Basic auth username if the site is password-protected"),
21
+ basic_auth_password: z
22
+ .string()
23
+ .optional()
24
+ .describe("Basic auth password if the site is password-protected"),
25
+ },
26
+ annotations: {
27
+ readOnlyHint: false,
28
+ destructiveHint: false,
29
+ idempotentHint: true,
30
+ },
31
+ }, async (args, extra) => {
32
+ try {
33
+ const type = args.type ?? "wordpress";
34
+ const idemKey = idempotencyKey(`${args.url}:${type}`);
35
+ const body = {
36
+ url: args.url,
37
+ type,
38
+ };
39
+ if (args.basic_auth_username) {
40
+ body.basic_auth_username = args.basic_auth_username;
41
+ }
42
+ if (args.basic_auth_password) {
43
+ body.basic_auth_password = args.basic_auth_password;
44
+ }
45
+ let website;
46
+ try {
47
+ const result = await client.post("/websites", body, idemKey, extra.signal);
48
+ website = result.body;
49
+ }
50
+ catch (error) {
51
+ if (error instanceof ApiError) {
52
+ if (error.status === 409) {
53
+ return {
54
+ content: [
55
+ {
56
+ type: "text",
57
+ text: `Website already exists in another organization: ${error.detail}`,
58
+ },
59
+ ],
60
+ isError: true,
61
+ };
62
+ }
63
+ if (error.status === 400) {
64
+ return {
65
+ content: [{ type: "text", text: error.detail }],
66
+ isError: true,
67
+ };
68
+ }
69
+ // Cached error replay — retry with fresh key
70
+ if (error.isReplay && error.status >= 400) {
71
+ const freshKey = idempotencyKey(`${args.url}:${type}:${Date.now()}`);
72
+ const retryResult = await client.post("/websites", body, freshKey, extra.signal);
73
+ website = retryResult.body;
74
+ }
75
+ else {
76
+ throw error;
77
+ }
78
+ }
79
+ else {
80
+ throw error;
81
+ }
82
+ }
83
+ // Strip sensitive fields — only output safe fields
84
+ return {
85
+ content: [
86
+ {
87
+ type: "text",
88
+ text: `Website added: ${website.name} (${website.url}) — ID: ${website.id}\nType: ${website.type} | Paused: ${website.paused}`,
89
+ },
90
+ ],
91
+ };
92
+ }
93
+ catch (error) {
94
+ return {
95
+ content: [
96
+ {
97
+ type: "text",
98
+ text: `Failed to add website: ${error instanceof Error ? error.message : String(error)}`,
99
+ },
100
+ ],
101
+ isError: true,
102
+ };
103
+ }
104
+ });
105
+ }
106
+ //# sourceMappingURL=add-website.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-website.js","sourceRoot":"","sources":["../../src/tools/add-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAW5E,MAAM,UAAU,sBAAsB,CACpC,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,uBAAuB,EACvB;QACE,WAAW,EACT,2fAA2f;QAC7f,WAAW,EAAE;YACX,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YACnD,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,kBAAkB,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,GAAG,WAAW,OAAO,CAAC,EAAE,WAAW,OAAO,CAAC,IAAI,cAAc,OAAO,CAAC,MAAM,EAAE;qBAC/H;iBACF;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,0BAA0B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBACzF;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import type { ApiClient } from "../api-client.js";
3
+ export declare function registerCheckWebsiteAvailabilityTool(server: McpServer, client: ApiClient): void;
4
+ //# sourceMappingURL=check-website-availability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-website-availability.d.ts","sourceRoot":"","sources":["../../src/tools/check-website-availability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAsDN"}
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ export function registerCheckWebsiteAvailabilityTool(server, client) {
3
+ server.registerTool("checkview_check_website_availability", {
4
+ description: "Check if a website URL is available for monitoring. Verifies the URL is not already tracked by another organization.",
5
+ inputSchema: {
6
+ url: z
7
+ .string()
8
+ .url()
9
+ .refine((u) => u.startsWith("https://"), {
10
+ message: "URL must use HTTPS",
11
+ })
12
+ .describe("Website URL to check (must use HTTPS, e.g. https://example.com)"),
13
+ },
14
+ annotations: {
15
+ readOnlyHint: true,
16
+ destructiveHint: false,
17
+ },
18
+ }, async (args, extra) => {
19
+ try {
20
+ const response = await client.get("/websites/availability", { url: args.url }, extra.signal);
21
+ const { available, message } = response.body;
22
+ const status = available ? "AVAILABLE" : "UNAVAILABLE";
23
+ return {
24
+ content: [
25
+ {
26
+ type: "text",
27
+ text: `**${status}**: ${message}`,
28
+ },
29
+ ],
30
+ };
31
+ }
32
+ catch (error) {
33
+ return {
34
+ content: [
35
+ {
36
+ type: "text",
37
+ text: `Failed to check availability: ${error instanceof Error ? error.message : String(error)}`,
38
+ },
39
+ ],
40
+ isError: true,
41
+ };
42
+ }
43
+ });
44
+ }
45
+ //# sourceMappingURL=check-website-availability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-website-availability.js","sourceRoot":"","sources":["../../src/tools/check-website-availability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,UAAU,oCAAoC,CAClD,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,sCAAsC,EACtC;QACE,WAAW,EACT,sHAAsH;QACxH,WAAW,EAAE;YACX,GAAG,EAAE,CAAC;iBACH,MAAM,EAAE;iBACR,GAAG,EAAE;iBACL,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;gBACvC,OAAO,EAAE,oBAAoB;aAC9B,CAAC;iBACD,QAAQ,CACP,iEAAiE,CAClE;SACJ;QACD,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;SACvB;KACF,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAI9B,wBAAwB,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAE9D,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC;YAC7C,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC;YAEvD,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,KAAK,MAAM,OAAO,OAAO,EAAE;qBAClC;iBACF;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,iCAAiC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBAChG;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { type ApiClient } from "../api-client.js";
3
+ export declare function registerCheckWebsiteHealthTool(server: McpServer, client: ApiClient): void;
4
+ //# sourceMappingURL=check-website-health.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-website-health.d.ts","sourceRoot":"","sources":["../../src/tools/check-website-health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5D,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAsEN"}
@@ -0,0 +1,61 @@
1
+ import { z } from "zod";
2
+ import { ApiError } from "../api-client.js";
3
+ export function registerCheckWebsiteHealthTool(server, client) {
4
+ server.registerTool("checkview_check_website_health", {
5
+ description: "Check the health of a website. For WordPress sites, returns plugin health data. For other sites, performs an HTTP reachability check. Detects WAF/firewall blockers.",
6
+ inputSchema: {
7
+ website_id: z.string().uuid().describe("The website ID to check"),
8
+ },
9
+ annotations: {
10
+ readOnlyHint: true,
11
+ destructiveHint: false,
12
+ },
13
+ }, async (args, extra) => {
14
+ try {
15
+ const response = await client.get(`/websites/${args.website_id}/health`, undefined, extra.signal);
16
+ const lines = ["## Website Health Check\n"];
17
+ const body = response.body;
18
+ if (typeof body === "object" && body !== null) {
19
+ for (const [key, value] of Object.entries(body)) {
20
+ if (value !== null && value !== undefined) {
21
+ lines.push(`- **${key}**: ${typeof value === "object" ? JSON.stringify(value) : String(value)}`);
22
+ }
23
+ }
24
+ }
25
+ return {
26
+ content: [{ type: "text", text: lines.join("\n") }],
27
+ };
28
+ }
29
+ catch (error) {
30
+ if (error instanceof ApiError) {
31
+ if (error.status === 404) {
32
+ return {
33
+ content: [{ type: "text", text: "Website not found." }],
34
+ isError: true,
35
+ };
36
+ }
37
+ if (error.status === 502) {
38
+ return {
39
+ content: [
40
+ {
41
+ type: "text",
42
+ text: `## Website Health Check — BLOCKED\n\n${error.detail || error.message}`,
43
+ },
44
+ ],
45
+ isError: true,
46
+ };
47
+ }
48
+ }
49
+ return {
50
+ content: [
51
+ {
52
+ type: "text",
53
+ text: `Failed to check website health: ${error instanceof Error ? error.message : String(error)}`,
54
+ },
55
+ ],
56
+ isError: true,
57
+ };
58
+ }
59
+ });
60
+ }
61
+ //# sourceMappingURL=check-website-health.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-website-health.js","sourceRoot":"","sources":["../../src/tools/check-website-health.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC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I,CAAC,IAAI,CAAC,EAAE,CAAC;aACpD,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,QAAQ,EAAE,CAAC;gBAC9B,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBACzB,OAAO;wBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;wBACvD,OAAO,EAAE,IAAI;qBACd,CAAC;gBACJ,CAAC;gBACD,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBACzB,OAAO;wBACL,OAAO,EAAE;4BACP;gCACE,IAAI,EAAE,MAAM;gCACZ,IAAI,EAAE,wCAAwC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE;6BAC9E;yBACF;wBACD,OAAO,EAAE,IAAI;qBACd,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,mCAAmC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBAClG;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { type ApiClient } from "../api-client.js";
3
+ export declare function registerCompareTestRunsTool(server: McpServer, client: ApiClient): void;
4
+ //# sourceMappingURL=compare-test-runs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compare-test-runs.d.ts","sourceRoot":"","sources":["../../src/tools/compare-test-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAa5E,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAsFN"}
@@ -0,0 +1,75 @@
1
+ import { z } from "zod";
2
+ import { ApiError, idempotencyKey } from "../api-client.js";
3
+ export function registerCompareTestRunsTool(server, client) {
4
+ server.registerTool("checkview_compare_test_runs", {
5
+ description: "Compare 2-5 test runs side by side, showing status, duration, and step-level differences.",
6
+ inputSchema: {
7
+ test_run_ids: z
8
+ .array(z.string().uuid())
9
+ .min(2)
10
+ .max(5)
11
+ .describe("Test run IDs to compare (2-5)"),
12
+ },
13
+ annotations: {
14
+ readOnlyHint: true,
15
+ destructiveHint: false,
16
+ idempotentHint: true,
17
+ },
18
+ }, async (args, extra) => {
19
+ try {
20
+ const sortedIds = [...args.test_run_ids].sort();
21
+ const idemKey = idempotencyKey(`compare:${sortedIds.join(",")}`);
22
+ let comparison;
23
+ try {
24
+ const result = await client.post("/test-runs/comparisons", { test_run_ids: args.test_run_ids }, idemKey, extra.signal);
25
+ comparison = result.body;
26
+ }
27
+ catch (error) {
28
+ if (error instanceof ApiError) {
29
+ if (error.status === 404) {
30
+ return {
31
+ content: [
32
+ {
33
+ type: "text",
34
+ text: "One or more test runs not found.",
35
+ },
36
+ ],
37
+ isError: true,
38
+ };
39
+ }
40
+ if (error.isReplay && error.status >= 400) {
41
+ const freshKey = idempotencyKey(`compare:${sortedIds.join(",")}:retry:${Date.now()}`);
42
+ const retryResult = await client.post("/test-runs/comparisons", { test_run_ids: args.test_run_ids }, freshKey, extra.signal);
43
+ comparison = retryResult.body;
44
+ }
45
+ else {
46
+ throw error;
47
+ }
48
+ }
49
+ else {
50
+ throw error;
51
+ }
52
+ }
53
+ return {
54
+ content: [
55
+ {
56
+ type: "text",
57
+ text: JSON.stringify(comparison, null, 2),
58
+ },
59
+ ],
60
+ };
61
+ }
62
+ catch (error) {
63
+ return {
64
+ content: [
65
+ {
66
+ type: "text",
67
+ text: `Failed to compare test runs: ${error instanceof Error ? error.message : String(error)}`,
68
+ },
69
+ ],
70
+ isError: true,
71
+ };
72
+ }
73
+ });
74
+ }
75
+ //# sourceMappingURL=compare-test-runs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compare-test-runs.js","sourceRoot":"","sources":["../../src/tools/compare-test-runs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAa5E,MAAM,UAAU,2BAA2B,CACzC,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,6BAA6B,EAC7B;QACE,WAAW,EACT,2FAA2F;QAC7F,WAAW,EAAE;YACX,YAAY,EAAE,CAAC;iBACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;iBACxB,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC,CAAC,CAAC;iBACN,QAAQ,CAAC,+BAA+B,CAAC;SAC7C;QACD,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;SACrB;KACF,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,CAAC;YAChD,MAAM,OAAO,GAAG,cAAc,CAAC,WAAW,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAEjE,IAAI,UAA8B,CAAC;YACnC,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAC9B,wBAAwB,EACxB,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,EACnC,OAAO,EACP,KAAK,C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KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBAC/F;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { type ApiClient } from "../api-client.js";
3
+ export declare function registerCreateFormTestFlowTool(server: McpServer, client: ApiClient): void;
4
+ //# sourceMappingURL=create-form-test-flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-form-test-flow.d.ts","sourceRoot":"","sources":["../../src/tools/create-form-test-flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqB5E,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CA2QN"}