@langwatch/server 3.1.0-beta.5 → 3.1.0-beta.6

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 (213) hide show
  1. package/langwatch/package.json +1 -1
  2. package/langwatch/pnpm-workspace.yaml +0 -1
  3. package/mcp-server/.env.example +2 -0
  4. package/mcp-server/.eslintrc.cjs +36 -0
  5. package/mcp-server/CHANGELOG.md +165 -0
  6. package/mcp-server/CONTRIBUTING.md +96 -0
  7. package/mcp-server/README.md +172 -0
  8. package/mcp-server/dist/archive-scenario-WJ2A7ETN.js +19 -0
  9. package/mcp-server/dist/archive-suite-4JOM4SSL.js +15 -0
  10. package/mcp-server/dist/assign-prompt-tag-GL7EAAF3.js +19 -0
  11. package/mcp-server/dist/chunk-2GT7IFWK.js +40 -0
  12. package/mcp-server/dist/chunk-2WPLXEKF.js +127 -0
  13. package/mcp-server/dist/chunk-4AUB2BIA.js +71 -0
  14. package/mcp-server/dist/chunk-BWWY5KEF.js +71 -0
  15. package/mcp-server/dist/chunk-CCWCIJJ3.js +22 -0
  16. package/mcp-server/dist/chunk-EGH5RPXM.js +25 -0
  17. package/mcp-server/dist/chunk-EUQDVOSU.js +39 -0
  18. package/mcp-server/dist/chunk-HYMIWO3U.js +44 -0
  19. package/mcp-server/dist/chunk-IE4M5OGE.js +42 -0
  20. package/mcp-server/dist/chunk-LUMEZEHL.js +48 -0
  21. package/mcp-server/dist/chunk-NUFPTHKU.js +9 -0
  22. package/mcp-server/dist/chunk-UDHJYT6P.js +1567 -0
  23. package/mcp-server/dist/chunk-WQG2DFHX.js +86 -0
  24. package/mcp-server/dist/chunk-WVI5CJ6S.js +21 -0
  25. package/mcp-server/dist/chunk-ZVS4UKN2.js +35 -0
  26. package/mcp-server/dist/chunk-ZXKLPC2E.js +27 -0
  27. package/mcp-server/dist/config.d.ts +17 -0
  28. package/mcp-server/dist/config.js +13 -0
  29. package/mcp-server/dist/create-agent-MBOOT3XK.js +23 -0
  30. package/mcp-server/dist/create-annotation-XMV6A7ED.js +24 -0
  31. package/mcp-server/dist/create-dashboard-VRKLFVZJ.js +18 -0
  32. package/mcp-server/dist/create-dataset-7HQPZCRE.js +22 -0
  33. package/mcp-server/dist/create-dataset-records-2NIVFYTV.js +22 -0
  34. package/mcp-server/dist/create-evaluator-WYFRFLRC.js +27 -0
  35. package/mcp-server/dist/create-mcp-server.d.ts +8 -0
  36. package/mcp-server/dist/create-mcp-server.js +8 -0
  37. package/mcp-server/dist/create-prompt-IEN7O6JT.js +39 -0
  38. package/mcp-server/dist/create-prompt-tag-CAEZ45VO.js +17 -0
  39. package/mcp-server/dist/create-scenario-6YHSMGLP.js +26 -0
  40. package/mcp-server/dist/create-suite-H5XOFDE5.js +38 -0
  41. package/mcp-server/dist/delete-agent-JKTNBWAA.js +18 -0
  42. package/mcp-server/dist/delete-annotation-ACMDV6QO.js +17 -0
  43. package/mcp-server/dist/delete-dashboard-VJSR7CRU.js +18 -0
  44. package/mcp-server/dist/delete-dataset-RTTTWP4D.js +20 -0
  45. package/mcp-server/dist/delete-dataset-records-KNQTIPQK.js +21 -0
  46. package/mcp-server/dist/delete-evaluator-7FVC5WM4.js +15 -0
  47. package/mcp-server/dist/delete-prompt-tag-ZMZUAGFW.js +17 -0
  48. package/mcp-server/dist/delete-workflow-EYQ3T4RQ.js +17 -0
  49. package/mcp-server/dist/discover-evaluator-schema-H23XCLNE.js +1402 -0
  50. package/mcp-server/dist/discover-scenario-schema-MEEEVND7.js +65 -0
  51. package/mcp-server/dist/discover-schema-3T52ORPB.js +446 -0
  52. package/mcp-server/dist/get-agent-E3QSTVKG.js +28 -0
  53. package/mcp-server/dist/get-analytics-2OHV763I.js +72 -0
  54. package/mcp-server/dist/get-dashboard-PC7JDHH6.js +29 -0
  55. package/mcp-server/dist/get-dataset-H5IK5FVU.js +48 -0
  56. package/mcp-server/dist/get-evaluator-UWVUPYTM.js +47 -0
  57. package/mcp-server/dist/get-prompt-WZUOLLQC.js +45 -0
  58. package/mcp-server/dist/get-scenario-Q6LCNUYN.js +33 -0
  59. package/mcp-server/dist/get-simulation-run-Z2XKO256.js +56 -0
  60. package/mcp-server/dist/get-suite-BXK5TN7P.js +44 -0
  61. package/mcp-server/dist/get-trace-4EJAYVBG.js +50 -0
  62. package/mcp-server/dist/get-workflow-O34QJLHD.js +25 -0
  63. package/mcp-server/dist/http-server-RSTXN4CN.js +224 -0
  64. package/mcp-server/dist/index.d.ts +2 -0
  65. package/mcp-server/dist/index.js +67774 -0
  66. package/mcp-server/dist/langwatch-api-annotations-ERBG27RF.js +17 -0
  67. package/mcp-server/dist/langwatch-api-dashboards-G6TR7VVO.js +17 -0
  68. package/mcp-server/dist/langwatch-api-monitors-WSXZLS2B.js +52 -0
  69. package/mcp-server/dist/langwatch-api-secrets-RR5DKG2X.js +40 -0
  70. package/mcp-server/dist/langwatch-api-triggers-2RTNSWQY.js +30 -0
  71. package/mcp-server/dist/langwatch-api-workflows-VJRIIDZ7.js +15 -0
  72. package/mcp-server/dist/list-agents-AW3P6FJV.js +32 -0
  73. package/mcp-server/dist/list-annotations-QNCGWPQ3.js +33 -0
  74. package/mcp-server/dist/list-dashboards-R7RK2IXL.js +32 -0
  75. package/mcp-server/dist/list-dataset-records-WVCSQP7P.js +39 -0
  76. package/mcp-server/dist/list-datasets-KEXRLDEU.js +60 -0
  77. package/mcp-server/dist/list-evaluators-7R2LB4JH.js +34 -0
  78. package/mcp-server/dist/list-model-providers-OBYJCKBX.js +35 -0
  79. package/mcp-server/dist/list-prompt-tags-6LY3ZPYI.js +23 -0
  80. package/mcp-server/dist/list-prompts-VWEZ4CDE.js +32 -0
  81. package/mcp-server/dist/list-scenarios-TXD4W2ZJ.js +40 -0
  82. package/mcp-server/dist/list-simulation-runs-RHPOLMFI.js +43 -0
  83. package/mcp-server/dist/list-suites-FSGBX27Z.js +42 -0
  84. package/mcp-server/dist/list-workflows-VRGEZ3EN.js +35 -0
  85. package/mcp-server/dist/rename-prompt-tag-VOJJLX4M.js +18 -0
  86. package/mcp-server/dist/run-agent-KTCC7TB7.js +36 -0
  87. package/mcp-server/dist/run-evaluation-2X3V3Q6L.js +64 -0
  88. package/mcp-server/dist/run-suite-BTMHGI2D.js +29 -0
  89. package/mcp-server/dist/run-workflow-IGAYGKJL.js +36 -0
  90. package/mcp-server/dist/search-traces-VYFUIMXH.js +72 -0
  91. package/mcp-server/dist/set-model-provider-W5IUI326.js +33 -0
  92. package/mcp-server/dist/update-agent-4BB7EYLR.js +20 -0
  93. package/mcp-server/dist/update-dataset-CXBKZ4W3.js +22 -0
  94. package/mcp-server/dist/update-dataset-record-HOHAMHXG.js +19 -0
  95. package/mcp-server/dist/update-evaluator-IVOR6FTR.js +24 -0
  96. package/mcp-server/dist/update-prompt-OWQAKE7K.js +24 -0
  97. package/mcp-server/dist/update-scenario-GDFVILPN.js +27 -0
  98. package/mcp-server/dist/update-suite-BXYUYSPT.js +39 -0
  99. package/mcp-server/package.json +79 -0
  100. package/mcp-server/pnpm-lock.yaml +6103 -0
  101. package/mcp-server/pnpm-workspace.yaml +2 -0
  102. package/mcp-server/pyproject.toml +17 -0
  103. package/mcp-server/src/__tests__/all-tools.integration.test.ts +1681 -0
  104. package/mcp-server/src/__tests__/config.unit.test.ts +169 -0
  105. package/mcp-server/src/__tests__/datasets.integration.test.ts +603 -0
  106. package/mcp-server/src/__tests__/datasets.unit.test.ts +240 -0
  107. package/mcp-server/src/__tests__/date-parsing.unit.test.ts +78 -0
  108. package/mcp-server/src/__tests__/discover-evaluator-schema.unit.test.ts +89 -0
  109. package/mcp-server/src/__tests__/discover-schema.unit.test.ts +118 -0
  110. package/mcp-server/src/__tests__/docker.integration.test.ts +234 -0
  111. package/mcp-server/src/__tests__/evaluator-tools.unit.test.ts +262 -0
  112. package/mcp-server/src/__tests__/http-transport.integration.test.ts +397 -0
  113. package/mcp-server/src/__tests__/integration.integration.test.ts +288 -0
  114. package/mcp-server/src/__tests__/langwatch-api.unit.test.ts +455 -0
  115. package/mcp-server/src/__tests__/model-provider-tools.unit.test.ts +190 -0
  116. package/mcp-server/src/__tests__/scenario-tools.integration.test.ts +286 -0
  117. package/mcp-server/src/__tests__/scenario-tools.unit.test.ts +185 -0
  118. package/mcp-server/src/__tests__/schemas.unit.test.ts +85 -0
  119. package/mcp-server/src/__tests__/tools.unit.test.ts +900 -0
  120. package/mcp-server/src/config.d.ts +15 -0
  121. package/mcp-server/src/config.ts +107 -0
  122. package/mcp-server/src/create-mcp-server.d.ts +6 -0
  123. package/mcp-server/src/create-mcp-server.ts +1799 -0
  124. package/mcp-server/src/http-server.ts +329 -0
  125. package/mcp-server/src/index.ts +46 -0
  126. package/mcp-server/src/langwatch-api-agents.ts +108 -0
  127. package/mcp-server/src/langwatch-api-annotations.ts +49 -0
  128. package/mcp-server/src/langwatch-api-dashboards.ts +48 -0
  129. package/mcp-server/src/langwatch-api-datasets.ts +191 -0
  130. package/mcp-server/src/langwatch-api-evaluators.ts +80 -0
  131. package/mcp-server/src/langwatch-api-model-providers.ts +41 -0
  132. package/mcp-server/src/langwatch-api-monitors.ts +82 -0
  133. package/mcp-server/src/langwatch-api-scenarios.ts +67 -0
  134. package/mcp-server/src/langwatch-api-secrets.ts +48 -0
  135. package/mcp-server/src/langwatch-api-simulation-runs.ts +51 -0
  136. package/mcp-server/src/langwatch-api-suites.ts +118 -0
  137. package/mcp-server/src/langwatch-api-triggers.ts +48 -0
  138. package/mcp-server/src/langwatch-api-workflows.ts +41 -0
  139. package/mcp-server/src/langwatch-api.ts +299 -0
  140. package/mcp-server/src/schemas/analytics-groups.ts +78 -0
  141. package/mcp-server/src/schemas/analytics-metrics.ts +179 -0
  142. package/mcp-server/src/schemas/create-dataset.ts +48 -0
  143. package/mcp-server/src/schemas/filter-fields.ts +119 -0
  144. package/mcp-server/src/schemas/index.ts +4 -0
  145. package/mcp-server/src/tools/archive-scenario.ts +19 -0
  146. package/mcp-server/src/tools/archive-suite.ts +12 -0
  147. package/mcp-server/src/tools/assign-prompt-tag.ts +16 -0
  148. package/mcp-server/src/tools/create-agent.ts +15 -0
  149. package/mcp-server/src/tools/create-annotation.ts +18 -0
  150. package/mcp-server/src/tools/create-dashboard.ts +7 -0
  151. package/mcp-server/src/tools/create-dataset-records.ts +23 -0
  152. package/mcp-server/src/tools/create-dataset.ts +22 -0
  153. package/mcp-server/src/tools/create-evaluator.ts +33 -0
  154. package/mcp-server/src/tools/create-prompt-tag.ts +12 -0
  155. package/mcp-server/src/tools/create-prompt.ts +58 -0
  156. package/mcp-server/src/tools/create-scenario.ts +30 -0
  157. package/mcp-server/src/tools/create-suite.ts +42 -0
  158. package/mcp-server/src/tools/delete-agent.ts +7 -0
  159. package/mcp-server/src/tools/delete-annotation.ts +7 -0
  160. package/mcp-server/src/tools/delete-dashboard.ts +7 -0
  161. package/mcp-server/src/tools/delete-dataset-records.ts +22 -0
  162. package/mcp-server/src/tools/delete-dataset.ts +20 -0
  163. package/mcp-server/src/tools/delete-evaluator.ts +12 -0
  164. package/mcp-server/src/tools/delete-prompt-tag.ts +12 -0
  165. package/mcp-server/src/tools/delete-workflow.ts +7 -0
  166. package/mcp-server/src/tools/discover-evaluator-schema.ts +143 -0
  167. package/mcp-server/src/tools/discover-scenario-schema.ts +71 -0
  168. package/mcp-server/src/tools/discover-schema.ts +106 -0
  169. package/mcp-server/src/tools/format-dataset-mutation.ts +25 -0
  170. package/mcp-server/src/tools/get-agent.ts +21 -0
  171. package/mcp-server/src/tools/get-analytics.ts +98 -0
  172. package/mcp-server/src/tools/get-dashboard.ts +22 -0
  173. package/mcp-server/src/tools/get-dataset.ts +63 -0
  174. package/mcp-server/src/tools/get-evaluator.ts +53 -0
  175. package/mcp-server/src/tools/get-prompt.ts +54 -0
  176. package/mcp-server/src/tools/get-scenario.ts +36 -0
  177. package/mcp-server/src/tools/get-simulation-run.ts +60 -0
  178. package/mcp-server/src/tools/get-suite.ts +47 -0
  179. package/mcp-server/src/tools/get-trace.ts +61 -0
  180. package/mcp-server/src/tools/get-workflow.ts +17 -0
  181. package/mcp-server/src/tools/list-agents.ts +27 -0
  182. package/mcp-server/src/tools/list-annotations.ts +33 -0
  183. package/mcp-server/src/tools/list-dashboards.ts +27 -0
  184. package/mcp-server/src/tools/list-dataset-records.ts +46 -0
  185. package/mcp-server/src/tools/list-datasets.ts +80 -0
  186. package/mcp-server/src/tools/list-evaluators.ts +37 -0
  187. package/mcp-server/src/tools/list-model-providers.ts +40 -0
  188. package/mcp-server/src/tools/list-prompt-tags.ts +21 -0
  189. package/mcp-server/src/tools/list-prompts.ts +34 -0
  190. package/mcp-server/src/tools/list-scenarios.ts +47 -0
  191. package/mcp-server/src/tools/list-simulation-runs.ts +49 -0
  192. package/mcp-server/src/tools/list-suites.ts +43 -0
  193. package/mcp-server/src/tools/list-workflows.ts +31 -0
  194. package/mcp-server/src/tools/rename-prompt-tag.ts +14 -0
  195. package/mcp-server/src/tools/run-agent.ts +36 -0
  196. package/mcp-server/src/tools/run-evaluation.ts +87 -0
  197. package/mcp-server/src/tools/run-suite.ts +28 -0
  198. package/mcp-server/src/tools/run-workflow.ts +36 -0
  199. package/mcp-server/src/tools/search-traces.ts +91 -0
  200. package/mcp-server/src/tools/set-model-provider.ts +46 -0
  201. package/mcp-server/src/tools/update-agent.ts +13 -0
  202. package/mcp-server/src/tools/update-dataset-record.ts +21 -0
  203. package/mcp-server/src/tools/update-dataset.ts +23 -0
  204. package/mcp-server/src/tools/update-evaluator.ts +30 -0
  205. package/mcp-server/src/tools/update-prompt.ts +31 -0
  206. package/mcp-server/src/tools/update-scenario.ts +32 -0
  207. package/mcp-server/src/tools/update-suite.ts +44 -0
  208. package/mcp-server/src/utils/date-parsing.ts +31 -0
  209. package/mcp-server/src/utils/escape-markdown.ts +12 -0
  210. package/mcp-server/tsconfig.json +27 -0
  211. package/mcp-server/uv.lock +2731 -0
  212. package/package.json +2 -1
  213. package/packages/server/dist/cli.cjs +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langwatch",
3
- "version": "3.1.0-beta.5",
3
+ "version": "3.1.0-beta.6",
4
4
  "private": true,
5
5
  "engines": {
6
6
  "node": "24.x",
@@ -1,6 +1,5 @@
1
1
  packages:
2
2
  - .
3
- - "saas-src/*"
4
3
  - "packages/*"
5
4
  - "../mcp-server"
6
5
 
@@ -0,0 +1,2 @@
1
+ LANGWATCH_API_KEY=
2
+ ANTHROPIC_API_KEY=
@@ -0,0 +1,36 @@
1
+ const config = {
2
+ parser: "@typescript-eslint/parser",
3
+ parserOptions: {
4
+ project: true,
5
+ },
6
+ plugins: ["@typescript-eslint"],
7
+ extends: [
8
+ "plugin:@typescript-eslint/recommended-type-checked",
9
+ "plugin:@typescript-eslint/stylistic-type-checked",
10
+ ],
11
+ rules: {
12
+ // These opinionated rules are enabled in stylistic-type-checked above.
13
+ // Feel free to reconfigure them to your own preference.
14
+ "@typescript-eslint/array-type": "off",
15
+ "@typescript-eslint/consistent-type-definitions": "off",
16
+ "@typescript-eslint/no-explicit-any": "off",
17
+ "@typescript-eslint/no-unsafe-assignment": "off",
18
+ "@typescript-eslint/ban-ts-comment": "off",
19
+ "@typescript-eslint/require-await": "off",
20
+ "@typescript-eslint/no-unsafe-member-access": "off",
21
+ "@typescript-eslint/no-unsafe-call": "off",
22
+ "@typescript-eslint/no-unsafe-argument": "off",
23
+ "@typescript-eslint/no-unsafe-return": "off",
24
+
25
+ "@typescript-eslint/consistent-type-imports": [
26
+ "warn",
27
+ {
28
+ prefer: "type-imports",
29
+ fixStyle: "inline-type-imports",
30
+ },
31
+ ],
32
+ "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
33
+ },
34
+ };
35
+
36
+ module.exports = config;
@@ -0,0 +1,165 @@
1
+ # Changelog
2
+
3
+ ## [0.7.0](https://github.com/langwatch/langwatch/compare/mcp-server@v0.6.1...mcp-server@v0.7.0) (2026-04-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * add mcp-server to langwatch pnpm workspace ([#3069](https://github.com/langwatch/langwatch/issues/3069)) ([73915d2](https://github.com/langwatch/langwatch/commit/73915d24fd47b8d6b5e33210fd3f73ac0f745e11))
9
+ * add prompt tag support to MCP tools, docs, and skills ([#2934](https://github.com/langwatch/langwatch/issues/2934)) ([858e0d7](https://github.com/langwatch/langwatch/commit/858e0d7df3df8c70822e2155a73453bf1a6fd324))
10
+ * full CLI, API, and MCP coverage for all platform features ([#3168](https://github.com/langwatch/langwatch/issues/3168)) ([921b7b9](https://github.com/langwatch/langwatch/commit/921b7b92d3ccc038556fe2241a3a90302786631e))
11
+ * **mcp-server:** oauth 2.0 + SSE client compatibility ([#2557](https://github.com/langwatch/langwatch/issues/2557)) ([7327579](https://github.com/langwatch/langwatch/commit/73275796aca80b90c4d78beb9033e33b0e4a8da9))
12
+ * **mcp:** add dataset mcp tools ([#2926](https://github.com/langwatch/langwatch/issues/2926)) ([666710c](https://github.com/langwatch/langwatch/commit/666710cbb1052f9b7180378a7c24490e4a103b9f))
13
+ * **mcp:** mount MCP HTTP server in-app with OAuth PKCE authorization ([#2847](https://github.com/langwatch/langwatch/issues/2847)) ([9d57dd8](https://github.com/langwatch/langwatch/commit/9d57dd877f80ba529d32879a387d4f4d0d0216b6))
14
+ * **skills:** agent skills-based onboarding with feature map and scenario tests ([#2377](https://github.com/langwatch/langwatch/issues/2377)) ([6f6abdb](https://github.com/langwatch/langwatch/commit/6f6abdb67b97fcb7c2958dbc193dcde37d4c82a8))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * analytics groupBy returns empty in MCP tool and trigger alerts ([#3012](https://github.com/langwatch/langwatch/issues/3012)) ([634db38](https://github.com/langwatch/langwatch/commit/634db380de35132b6ed88ce04e3998a3229f90db))
20
+ * **mcp:** build config and create-mcp-server with tsup to fix dual-module bug ([640c2e4](https://github.com/langwatch/langwatch/commit/640c2e42024cc40b0b02c1abac4cf07f6881f497))
21
+ * **mcp:** build subexports with tsup to eliminate dual-module bug ([#2985](https://github.com/langwatch/langwatch/issues/2985)) ([640c2e4](https://github.com/langwatch/langwatch/commit/640c2e42024cc40b0b02c1abac4cf07f6881f497))
22
+ * **mcp:** resolve dual-module config bug causing "Config not initialized" in production ([fcf0e0b](https://github.com/langwatch/langwatch/commit/fcf0e0b0f85bfc6b10a26ac917fe2c3f0335771d))
23
+ * **mcp:** resolve dual-module config bug in production ([#2956](https://github.com/langwatch/langwatch/issues/2956)) ([fcf0e0b](https://github.com/langwatch/langwatch/commit/fcf0e0b0f85bfc6b10a26ac917fe2c3f0335771d))
24
+ * **mcp:** use globalThis for config singleton to fix CJS/ESM dual cache ([#3123](https://github.com/langwatch/langwatch/issues/3123)) ([a7ece22](https://github.com/langwatch/langwatch/commit/a7ece22144b67dcd5318d9abdd5d3ba66464bbb7))
25
+
26
+ ## [0.6.1](https://github.com/langwatch/langwatch/compare/mcp-server@v0.6.0...mcp-server@v0.6.1) (2026-03-13)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * fix scenario relative path solving for docs ([315abfd](https://github.com/langwatch/langwatch/commit/315abfd4c9d21641f0c1845fcf29b6337673ce6d))
32
+
33
+ ## [0.6.0](https://github.com/langwatch/langwatch/compare/mcp-server@v0.5.0...mcp-server@v0.6.0) (2026-03-13)
34
+
35
+
36
+ ### Features
37
+
38
+ * add platform MCP tools for evaluators and model providers ([#1762](https://github.com/langwatch/langwatch/issues/1762)) ([6339001](https://github.com/langwatch/langwatch/commit/6339001ffae3c83f7c3ea0cdadf480f4ec47f3cc))
39
+ * prefix platform MCP tools with `platform_` and add disambiguation notes ([#1760](https://github.com/langwatch/langwatch/issues/1760)) ([91851ee](https://github.com/langwatch/langwatch/commit/91851ee28aff1b3b75d92ce46aec6ae5072ff625))
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * **deps:** pin transitive npm deps for Dependabot high-severity alerts ([#2220](https://github.com/langwatch/langwatch/issues/2220)) ([a179da1](https://github.com/langwatch/langwatch/commit/a179da1d55859b8c9a476a6443dbfaf6bf632af3))
45
+ * **mcp:** align prompt tool schemas with backend API ([#2326](https://github.com/langwatch/langwatch/issues/2326)) ([65279f3](https://github.com/langwatch/langwatch/commit/65279f38687bae5c7dc7a13db33dcb2f7d135397))
46
+ * **mcp:** resolve get_trace 404 and search_traces metadata filter bugs ([#2214](https://github.com/langwatch/langwatch/issues/2214)) ([a0362e6](https://github.com/langwatch/langwatch/commit/a0362e60aa54e7c6e5dac9f241b206f4f4cd0b5f))
47
+ * normalize defaultModel with provider prefix for litellm routing ([cc7798e](https://github.com/langwatch/langwatch/commit/cc7798ecb229654f371912e7863ca20364ceb7fa))
48
+
49
+
50
+ ### Miscellaneous
51
+
52
+ * **deps:** batch safe JS dependency bumps (Tier 1a) ([#2169](https://github.com/langwatch/langwatch/issues/2169)) ([8b5b891](https://github.com/langwatch/langwatch/commit/8b5b8915941f19ca07019b330e276f01ae3bface))
53
+ * **deps:** bump mcp-server zod to v4 ([#1977](https://github.com/langwatch/langwatch/issues/1977)) ([eb89188](https://github.com/langwatch/langwatch/commit/eb891883eb47db01bfee4d184b1c9b19e3cc60d7))
54
+ * **deps:** bump Node.js dependencies - batch 2 ([#1947](https://github.com/langwatch/langwatch/issues/1947)) ([98d9f5c](https://github.com/langwatch/langwatch/commit/98d9f5cb53dc13051c500359def11b35762fd5e5))
55
+ * **deps:** bump safe npm dependencies (19 dependabot PRs) ([#1931](https://github.com/langwatch/langwatch/issues/1931)) ([4d7607e](https://github.com/langwatch/langwatch/commit/4d7607e5d467749e2e47fc3b0b2b58c212bc8721))
56
+ * **deps:** bump the npm_and_yarn group across 1 directory with 5 updates ([#1948](https://github.com/langwatch/langwatch/issues/1948)) ([9227fb4](https://github.com/langwatch/langwatch/commit/9227fb4b96184a82c87ab95f00fb985491df7224))
57
+
58
+ ## [0.5.0](https://github.com/langwatch/langwatch/compare/mcp-server@v0.4.0...mcp-server@v0.5.0) (2026-02-20)
59
+
60
+
61
+ ### Features
62
+
63
+ * add scenario management tools to MCP server ([#1705](https://github.com/langwatch/langwatch/issues/1705)) ([0376fde](https://github.com/langwatch/langwatch/commit/0376fde0abff7b110b4ec5996a399c4b2ceafde0))
64
+
65
+
66
+ ### Miscellaneous
67
+
68
+ * **deps-dev:** bump @eslint/js from 9.35.0 to 9.39.2 in /mcp-server ([#1465](https://github.com/langwatch/langwatch/issues/1465)) ([fbee07d](https://github.com/langwatch/langwatch/commit/fbee07d8b964d0a059eaa32c7685c8bf667898e7))
69
+ * **deps:** bump hono ([f7e8f05](https://github.com/langwatch/langwatch/commit/f7e8f056843958cac4504ae02f37a351457f77ee))
70
+ * **deps:** bump hono from 4.11.9 to 4.12.0 in /mcp-server in the npm_and_yarn group across 1 directory ([#1736](https://github.com/langwatch/langwatch/issues/1736)) ([f7e8f05](https://github.com/langwatch/langwatch/commit/f7e8f056843958cac4504ae02f37a351457f77ee))
71
+ * **deps:** bump node-pty from 1.0.0 to 1.1.0 in /mcp-server ([#1447](https://github.com/langwatch/langwatch/issues/1447)) ([12ad02c](https://github.com/langwatch/langwatch/commit/12ad02c19dcc0ba90ad32f77659816b768188a53))
72
+ * **deps:** bump qs ([f0e9747](https://github.com/langwatch/langwatch/commit/f0e97475becd58dfa523a944fbb3fa0657dfc1dc))
73
+ * **deps:** bump qs from 6.14.1 to 6.14.2 in /mcp-server in the npm_and_yarn group across 1 directory ([#1568](https://github.com/langwatch/langwatch/issues/1568)) ([f0e9747](https://github.com/langwatch/langwatch/commit/f0e97475becd58dfa523a944fbb3fa0657dfc1dc))
74
+ * **deps:** bump the npm_and_yarn group across 1 directory with 8 updates ([#1519](https://github.com/langwatch/langwatch/issues/1519)) ([487e563](https://github.com/langwatch/langwatch/commit/487e5637a941fa9335ec8e951efdf38bb0a02a8c))
75
+ * **deps:** bump the uv group across 1 directory with 7 updates ([#1516](https://github.com/langwatch/langwatch/issues/1516)) ([7f2f178](https://github.com/langwatch/langwatch/commit/7f2f178588d89a63f3b38510844b87de7b528b3b))
76
+
77
+ ## [0.4.0](https://github.com/langwatch/langwatch/compare/mcp-server@v0.3.3...mcp-server@v0.4.0) (2026-02-08)
78
+
79
+
80
+ ### Features
81
+
82
+ * add CI/CD execution support for evaluations v3 ([#1118](https://github.com/langwatch/langwatch/issues/1118)) ([d28adac](https://github.com/langwatch/langwatch/commit/d28adaceeb87921d9c7c0f1cf76b5e03f3b90fbd))
83
+ * add observability and prompt MCP tools to @langwatch/mcp-server v0.4.0 ([#1410](https://github.com/langwatch/langwatch/issues/1410)) ([b770040](https://github.com/langwatch/langwatch/commit/b7700401dd87e7f1b76fefb213d67c906bcc1202))
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * **mcp-server:** skip integration test in CI ([#1300](https://github.com/langwatch/langwatch/issues/1300)) ([c16f232](https://github.com/langwatch/langwatch/commit/c16f2320b5c99818324d506a64ed3588085d8517))
89
+
90
+ ## [0.3.3](https://github.com/langwatch/langwatch/compare/mcp-server@v0.3.2...mcp-server@v0.3.3) (2025-12-18)
91
+
92
+
93
+ ### Miscellaneous
94
+
95
+ * trigger release ([#1011](https://github.com/langwatch/langwatch/issues/1011)) ([6173f53](https://github.com/langwatch/langwatch/commit/6173f53b041d9ee7e6b930270224954ba3c6621e))
96
+
97
+ ## [0.3.2](https://github.com/langwatch/langwatch/compare/mcp-server@v0.3.1...mcp-server@v0.3.2) (2025-12-17)
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * update mcp docs urls to the new langwatch.ai/docs and /scenario instead of the previous subdomains ([5b1ce07](https://github.com/langwatch/langwatch/commit/5b1ce073adf580fb7f897da98e1cdd6a1e25135e))
103
+
104
+ ## [0.3.1](https://github.com/langwatch/langwatch/compare/mcp-server@v0.3.0...mcp-server@v0.3.1) (2025-11-15)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * sometimes the initial forward slash / is not sent by the llm ([2d63409](https://github.com/langwatch/langwatch/commit/2d63409e59e714b1a05c951edb8582c9fc39479f))
110
+
111
+ ## [0.3.0](https://github.com/langwatch/langwatch/compare/mcp-server@v0.2.2...mcp-server@v0.3.0) (2025-11-15)
112
+
113
+
114
+ ### Features
115
+
116
+ * remove the need of passing a langwatch api key for using the mcp ([#817](https://github.com/langwatch/langwatch/issues/817)) ([66e49b5](https://github.com/langwatch/langwatch/commit/66e49b5c640d0c220aa08e198fb4dbf24681d567))
117
+
118
+ ## [0.2.2](https://github.com/langwatch/langwatch/compare/mcp-server@v0.2.1...mcp-server@v0.2.2) (2025-11-13)
119
+
120
+
121
+ ### Bug Fixes
122
+
123
+ * fix fetching llms txt for first request ([#813](https://github.com/langwatch/langwatch/issues/813)) ([cd8de19](https://github.com/langwatch/langwatch/commit/cd8de19b2a06556cd3b89b6cc868db7aac563efc))
124
+
125
+ ## [0.2.1](https://github.com/langwatch/langwatch/compare/mcp-server@v0.2.0...mcp-server@v0.2.1) (2025-11-08)
126
+
127
+
128
+ ### Bug Fixes
129
+
130
+ * force fetching of only md files ([c8a9baf](https://github.com/langwatch/langwatch/commit/c8a9baf12f375dd48970e0882cd69a029c6d338f))
131
+
132
+ ## [0.2.0](https://github.com/langwatch/langwatch/compare/mcp-server@v0.1.0...mcp-server@v0.2.0) (2025-11-07)
133
+
134
+
135
+ ### Features
136
+
137
+ * add scenario docs fetching to mcp ([e630206](https://github.com/langwatch/langwatch/commit/e63020622ca192bf5801d4dbdd2744fb755075ed))
138
+
139
+ ## [0.1.0](https://github.com/langwatch/langwatch/compare/mcp-server@v0.0.5...mcp-server@v0.1.0) (2025-09-19)
140
+
141
+
142
+ ### Features
143
+
144
+ * added auto setup functionality for langwatch mcp ([#617](https://github.com/langwatch/langwatch/issues/617)) ([8c95b07](https://github.com/langwatch/langwatch/commit/8c95b07598a74285940b0c9267368543a9ced5e0))
145
+ * ci/cd steps for all packages and deployables, including improvements to caching and bundle sizes ([#351](https://github.com/langwatch/langwatch/issues/351)) ([e67a169](https://github.com/langwatch/langwatch/commit/e67a1694fec2f96479266454403928e9dc68a20f))
146
+
147
+
148
+ ### Bug Fixes
149
+
150
+ * add missing dotenv dependency for running tests ([fb706ce](https://github.com/langwatch/langwatch/commit/fb706ceef9a298d070b264ad8b6da7c2df5e2a5d))
151
+ * judge agent for mcp-server test ([cd8e378](https://github.com/langwatch/langwatch/commit/cd8e3783ec02f02174ecb5fd86fa86c3f11e1734))
152
+ * mcp-server ci ([0ab6e51](https://github.com/langwatch/langwatch/commit/0ab6e513129d9b1fbdb7a696ce1d99ed6093dea3))
153
+ * run claude-code on the CI ([d760307](https://github.com/langwatch/langwatch/commit/d760307807c72a2a0e995a4f0a42845c2cc5114a))
154
+
155
+
156
+ ### Documentation
157
+
158
+ * add detailed markdown documentation for LangWatch eval notebook ([#618](https://github.com/langwatch/langwatch/issues/618)) ([525b62a](https://github.com/langwatch/langwatch/commit/525b62ad6ea01f122297b1a3fd1eb7e842479f19))
159
+ * added mcp-server contributing guide ([19d1431](https://github.com/langwatch/langwatch/commit/19d14313824663842e5bba3a98986b9b80382300))
160
+ * improve notebook descriptions ([fa1f267](https://github.com/langwatch/langwatch/commit/fa1f26705bfff3143dbd6d16edfdae86bd5ce6bd))
161
+
162
+
163
+ ### Code Refactoring
164
+
165
+ * split tool call fix helper ([c95028f](https://github.com/langwatch/langwatch/commit/c95028fba882357b33ca975e9d08ceabfe5cfc1c))
@@ -0,0 +1,96 @@
1
+ # Contributing to LangWatch MCP Server
2
+
3
+ Thank you for your interest in contributing to the LangWatch MCP Server! This guide will help you get set up for development and understand our testing approach.
4
+
5
+ ## Development Setup
6
+
7
+ ### Prerequisites
8
+
9
+ - Node.js and pnpm
10
+ - Python with uv package manager
11
+ - Git
12
+
13
+ ### Getting Started
14
+
15
+ 1. **Clone the repository and navigate to the MCP server directory:**
16
+ ```bash
17
+ git clone https://github.com/langwatch/langwatch.git
18
+ cd langwatch/mcp-server
19
+ ```
20
+
21
+ 2. **Install dependencies and build the MCP server:**
22
+ ```bash
23
+ pnpm install
24
+ pnpm run build
25
+ ```
26
+
27
+ 3. **Configure environment variables:**
28
+ ```bash
29
+ cp .env.example .env
30
+ ```
31
+
32
+ Fill in the following required variables in your `.env` file:
33
+ - `LANGWATCH_API_KEY` - Your LangWatch project API key
34
+ - `ANTHROPIC_API_KEY` - Your Anthropic API key for Claude Code integration
35
+
36
+ 4. **Install Python dependencies (for evaluation notebooks):**
37
+ ```bash
38
+ uv sync
39
+ ```
40
+
41
+ ## Testing Approach
42
+
43
+ This project follows the **[Agent Testing Pyramid](https://scenario.langwatch.ai/best-practices/the-agent-testing-pyramid/)** methodology, which provides a structured approach to testing AI agents across three layers:
44
+
45
+ ### 1. Unit Tests (Foundation)
46
+ Traditional software tests for deterministic components like API connections, data pipelines, and error handling.
47
+
48
+ ### 2. Evals & Optimization (Middle Layer)
49
+ Component-level evaluation and optimization of probabilistic AI components, including prompt effectiveness and retrieval accuracy.
50
+
51
+ ### 3. Simulations (Peak)
52
+ End-to-end testing that validates the complete agent behavior in realistic scenarios.
53
+
54
+ ## Running Tests
55
+
56
+ ### Quick Evaluations (Jupyter Notebook)
57
+
58
+ For rapid iteration and component testing:
59
+
60
+ ```bash
61
+ # Open the evaluation notebook in VS Code/Cursor
62
+ code tests/evaluations.ipynb
63
+ ```
64
+
65
+ The notebook contains lightweight tests that directly test the MCP server with a "mocked" coding agent on single files. These are useful for:
66
+ - Quick validation of MCP tool functionality
67
+ - Testing individual instrumentation patterns
68
+ - Rapid prototyping of new features
69
+
70
+ ### End-to-End Simulations
71
+
72
+ For comprehensive system validation:
73
+
74
+ ```bash
75
+ pnpm test
76
+ ```
77
+
78
+ This runs full simulation tests using the Scenario framework, which:
79
+ - Launches actual Claude Code sessions
80
+ - Uses the MCP server in a real development environment
81
+ - Tests complete workflows on entire codebases
82
+ - Validates that the agent can successfully instrument various AI frameworks (OpenAI, LangChain, DSPy, etc.)
83
+
84
+ When tests run successfully, you'll see:
85
+ - LangWatch Scenario interface opening
86
+ - Terminal output showing Claude Code using MCP tools
87
+ - Validation of code instrumentation at the end of each scenario
88
+
89
+ ## Questions?
90
+
91
+ If you encounter any issues or have questions about the setup, please:
92
+ - Check existing GitHub issues
93
+ - Create a new issue with detailed reproduction steps
94
+ - Join our Discord community for real-time support
95
+
96
+ Happy contributing! 🚀
@@ -0,0 +1,172 @@
1
+ # LangWatch MCP Server
2
+
3
+ MCP server that gives AI coding agents access to LangWatch observability data, prompts, datasets, scenarios, evaluators, and documentation via the [Model Context Protocol](https://modelcontextprotocol.io/introduction).
4
+
5
+ ## Quick Setup
6
+
7
+ Add to your MCP client configuration (Claude Code, Cursor, etc.):
8
+
9
+ ```json
10
+ {
11
+ "mcpServers": {
12
+ "langwatch": {
13
+ "command": "npx",
14
+ "args": ["-y", "@langwatch/mcp-server"],
15
+ "env": {
16
+ "LANGWATCH_API_KEY": "your-api-key-here"
17
+ }
18
+ }
19
+ }
20
+ }
21
+ ```
22
+
23
+ For Claude Code, you can also run:
24
+
25
+ ```bash
26
+ claude mcp add langwatch -- npx -y @langwatch/mcp-server --apiKey your-api-key-here
27
+ ```
28
+
29
+ The API key is required for observability and prompt tools. Documentation tools work without it.
30
+
31
+ ## Configuration
32
+
33
+ | Env Var | CLI Arg | Description |
34
+ |---------|---------|-------------|
35
+ | `LANGWATCH_API_KEY` | `--apiKey` | API key for authentication |
36
+ | `LANGWATCH_ENDPOINT` | `--endpoint` | API endpoint (default: `https://app.langwatch.ai`) |
37
+
38
+ ## Tools
39
+
40
+ ### Documentation
41
+
42
+ | Tool | Description |
43
+ |------|-------------|
44
+ | `fetch_langwatch_docs` | Fetch LangWatch integration docs |
45
+ | `fetch_scenario_docs` | Fetch Scenario agent testing docs |
46
+
47
+ ### Observability (requires API key)
48
+
49
+ | Tool | Description |
50
+ |------|-------------|
51
+ | `discover_schema` | Explore available filters, metrics, aggregations, and groups |
52
+ | `search_traces` | Search traces with filters, text query, and date range |
53
+ | `get_trace` | Get full trace details with AI-readable formatting |
54
+ | `get_analytics` | Query timeseries analytics data |
55
+
56
+ ### Prompts (requires API key)
57
+
58
+ | Tool | Description |
59
+ |------|-------------|
60
+ | `platform_list_prompts` | List all prompts |
61
+ | `platform_get_prompt` | Get prompt with messages and version history |
62
+ | `platform_create_prompt` | Create a new prompt |
63
+ | `platform_update_prompt` | Update prompt or create new version |
64
+
65
+ ### Datasets (requires API key)
66
+
67
+ | Tool | Description |
68
+ |------|-------------|
69
+ | `platform_list_datasets` | List all datasets with record counts |
70
+ | `platform_get_dataset` | Get dataset metadata, columns, and record preview |
71
+ | `platform_create_dataset` | Create a new dataset with optional column definitions |
72
+ | `platform_update_dataset` | Update dataset name or column types |
73
+ | `platform_delete_dataset` | Archive a dataset |
74
+ | `platform_create_dataset_records` | Add records to a dataset (max 1000 per call) |
75
+ | `platform_update_dataset_record` | Update a single record |
76
+ | `platform_delete_dataset_records` | Delete records by IDs (max 1000 per call) |
77
+
78
+ ### Scenarios (requires API key)
79
+
80
+ | Tool | Description |
81
+ |------|-------------|
82
+ | `platform_list_scenarios` | List all scenarios |
83
+ | `platform_get_scenario` | Get scenario details |
84
+ | `platform_create_scenario` | Create a new scenario |
85
+ | `platform_update_scenario` | Update a scenario |
86
+ | `platform_archive_scenario` | Archive a scenario |
87
+
88
+ ### Evaluators (requires API key)
89
+
90
+ | Tool | Description |
91
+ |------|-------------|
92
+ | `platform_list_evaluators` | List all evaluators |
93
+ | `platform_get_evaluator` | Get evaluator details |
94
+ | `platform_create_evaluator` | Create a new evaluator |
95
+ | `platform_update_evaluator` | Update an evaluator |
96
+
97
+ ### Model Providers (requires API key)
98
+
99
+ | Tool | Description |
100
+ |------|-------------|
101
+ | `platform_list_model_providers` | List configured model providers |
102
+ | `platform_set_model_provider` | Configure a model provider |
103
+
104
+ ## Output Formats
105
+
106
+ Several tools support a `format` parameter:
107
+
108
+ - **`digest`** (default) — AI-readable markdown output. Optimized for LLM consumption — compact and information-dense.
109
+ - **`json`** — Full raw data. Useful for programmatic access or when you need the complete schema.
110
+
111
+ Supported on: `search_traces`, `get_trace`, `platform_list_datasets`, `platform_get_dataset`, `platform_list_scenarios`, `platform_get_scenario`.
112
+
113
+ ## Usage Tips
114
+
115
+ - Start with `discover_schema` to understand available filter fields and metrics.
116
+ - Use `search_traces` to find relevant traces, then `get_trace` for full details.
117
+ - Search returns 25 traces per page by default. Use `scrollId` from the response to paginate.
118
+ - Analytics uses `category.name` format for metrics (e.g., `performance.completion_time`).
119
+ - Use `create_prompt` / `update_prompt` with `createVersion: true` for safe prompt iteration.
120
+ - Use `platform_list_datasets` then `platform_get_dataset` to browse dataset contents.
121
+ - Dataset tools support full CRUD: create datasets, add/update/delete records, and archive datasets.
122
+
123
+ ## Development
124
+
125
+ ### Prerequisites
126
+
127
+ - Node.js 18+
128
+ - pnpm
129
+
130
+ ### Setup
131
+
132
+ ```bash
133
+ pnpm install
134
+ ```
135
+
136
+ ### Build
137
+
138
+ ```bash
139
+ pnpm build
140
+ ```
141
+
142
+ ### Test
143
+
144
+ ```bash
145
+ pnpm test # Run all tests
146
+ pnpm test:unit # Unit tests only
147
+ ```
148
+
149
+ ### Local testing
150
+
151
+ Build and point your MCP client to the local dist:
152
+
153
+ ```json
154
+ {
155
+ "mcpServers": {
156
+ "langwatch": {
157
+ "command": "node",
158
+ "args": [
159
+ "/path/to/mcp-server/dist/index.js",
160
+ "--apiKey", "your-api-key",
161
+ "--endpoint", "http://localhost:5560"
162
+ ]
163
+ }
164
+ }
165
+ }
166
+ ```
167
+
168
+ ## Support
169
+
170
+ - [Discord Community](https://discord.gg/kT4PhDS2gH)
171
+ - [LangWatch Docs](https://langwatch.ai/docs)
172
+ - [Email Support](mailto:support@langwatch.ai)
@@ -0,0 +1,19 @@
1
+ import {
2
+ archiveScenario
3
+ } from "./chunk-2GT7IFWK.js";
4
+ import "./chunk-2WPLXEKF.js";
5
+ import "./chunk-BWWY5KEF.js";
6
+
7
+ // src/tools/archive-scenario.ts
8
+ async function handleArchiveScenario(params) {
9
+ const result = await archiveScenario(params.scenarioId);
10
+ const lines = [];
11
+ lines.push("Scenario archived successfully!\n");
12
+ lines.push(`**ID**: ${result.id}`);
13
+ lines.push(`**Status**: ${result.archived ? "archived" : "active"}`);
14
+ return lines.join("\n");
15
+ }
16
+ export {
17
+ handleArchiveScenario
18
+ };
19
+ //# sourceMappingURL=archive-scenario-WJ2A7ETN.js.map
@@ -0,0 +1,15 @@
1
+ import {
2
+ archiveSuite
3
+ } from "./chunk-LUMEZEHL.js";
4
+ import "./chunk-2WPLXEKF.js";
5
+ import "./chunk-BWWY5KEF.js";
6
+
7
+ // src/tools/archive-suite.ts
8
+ async function handleArchiveSuite(params) {
9
+ const result = await archiveSuite(params.id);
10
+ return `Suite ${result.id} has been archived (soft-deleted).`;
11
+ }
12
+ export {
13
+ handleArchiveSuite
14
+ };
15
+ //# sourceMappingURL=archive-suite-4JOM4SSL.js.map
@@ -0,0 +1,19 @@
1
+ import {
2
+ assignPromptTag
3
+ } from "./chunk-2WPLXEKF.js";
4
+ import "./chunk-BWWY5KEF.js";
5
+
6
+ // src/tools/assign-prompt-tag.ts
7
+ async function handleAssignPromptTag(params) {
8
+ await assignPromptTag({ idOrHandle: params.idOrHandle, tag: params.tag, versionId: params.versionId });
9
+ const lines = [];
10
+ lines.push("Tag assigned successfully!\n");
11
+ lines.push(`**Prompt**: ${params.idOrHandle}`);
12
+ lines.push(`**Tag**: ${params.tag}`);
13
+ lines.push(`**Version ID**: ${params.versionId}`);
14
+ return lines.join("\n");
15
+ }
16
+ export {
17
+ handleAssignPromptTag
18
+ };
19
+ //# sourceMappingURL=assign-prompt-tag-GL7EAAF3.js.map
@@ -0,0 +1,40 @@
1
+ import {
2
+ makeRequest
3
+ } from "./chunk-2WPLXEKF.js";
4
+
5
+ // src/langwatch-api-scenarios.ts
6
+ async function listScenarios() {
7
+ return makeRequest("GET", "/api/scenarios");
8
+ }
9
+ async function getScenario(id) {
10
+ return makeRequest(
11
+ "GET",
12
+ `/api/scenarios/${encodeURIComponent(id)}`
13
+ );
14
+ }
15
+ async function createScenario(data) {
16
+ return makeRequest("POST", "/api/scenarios", data);
17
+ }
18
+ async function updateScenario(params) {
19
+ const { id, ...data } = params;
20
+ return makeRequest(
21
+ "PUT",
22
+ `/api/scenarios/${encodeURIComponent(id)}`,
23
+ data
24
+ );
25
+ }
26
+ async function archiveScenario(id) {
27
+ return makeRequest(
28
+ "DELETE",
29
+ `/api/scenarios/${encodeURIComponent(id)}`
30
+ );
31
+ }
32
+
33
+ export {
34
+ listScenarios,
35
+ getScenario,
36
+ createScenario,
37
+ updateScenario,
38
+ archiveScenario
39
+ };
40
+ //# sourceMappingURL=chunk-2GT7IFWK.js.map