@launchdarkly/mcp-server 0.2.7 → 0.3.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 (210) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +74 -81
  3. package/bin/mcp-server.js.map +34 -34
  4. package/dist/commonjs/funcs/aiConfigsCreate.js +2 -0
  5. package/dist/commonjs/funcs/aiConfigsCreate.js.map +1 -1
  6. package/dist/commonjs/funcs/aiConfigsCreateVariation.js +2 -0
  7. package/dist/commonjs/funcs/aiConfigsCreateVariation.js.map +1 -1
  8. package/dist/commonjs/funcs/aiConfigsDelete.js +2 -0
  9. package/dist/commonjs/funcs/aiConfigsDelete.js.map +1 -1
  10. package/dist/commonjs/funcs/aiConfigsDeleteVariation.js +2 -0
  11. package/dist/commonjs/funcs/aiConfigsDeleteVariation.js.map +1 -1
  12. package/dist/commonjs/funcs/aiConfigsGet.js +2 -0
  13. package/dist/commonjs/funcs/aiConfigsGet.js.map +1 -1
  14. package/dist/commonjs/funcs/aiConfigsGetVariation.js +2 -0
  15. package/dist/commonjs/funcs/aiConfigsGetVariation.js.map +1 -1
  16. package/dist/commonjs/funcs/aiConfigsList.js +2 -0
  17. package/dist/commonjs/funcs/aiConfigsList.js.map +1 -1
  18. package/dist/commonjs/funcs/aiConfigsUpdate.js +2 -0
  19. package/dist/commonjs/funcs/aiConfigsUpdate.js.map +1 -1
  20. package/dist/commonjs/funcs/aiConfigsUpdateVariation.js +2 -0
  21. package/dist/commonjs/funcs/aiConfigsUpdateVariation.js.map +1 -1
  22. package/dist/commonjs/funcs/featureFlagsCreate.js +2 -0
  23. package/dist/commonjs/funcs/featureFlagsCreate.js.map +1 -1
  24. package/dist/commonjs/funcs/featureFlagsDelete.js +2 -0
  25. package/dist/commonjs/funcs/featureFlagsDelete.js.map +1 -1
  26. package/dist/commonjs/funcs/featureFlagsGet.js +2 -0
  27. package/dist/commonjs/funcs/featureFlagsGet.js.map +1 -1
  28. package/dist/commonjs/funcs/featureFlagsList.js +2 -0
  29. package/dist/commonjs/funcs/featureFlagsList.js.map +1 -1
  30. package/dist/commonjs/funcs/featureFlagsPatch.js +2 -0
  31. package/dist/commonjs/funcs/featureFlagsPatch.js.map +1 -1
  32. package/dist/commonjs/hooks/types.d.ts +2 -0
  33. package/dist/commonjs/hooks/types.d.ts.map +1 -1
  34. package/dist/commonjs/index.d.ts +2 -0
  35. package/dist/commonjs/index.d.ts.map +1 -1
  36. package/dist/commonjs/index.js +3 -1
  37. package/dist/commonjs/index.js.map +1 -1
  38. package/dist/commonjs/lib/config.d.ts +7 -3
  39. package/dist/commonjs/lib/config.d.ts.map +1 -1
  40. package/dist/commonjs/lib/config.js +3 -3
  41. package/dist/commonjs/lib/config.js.map +1 -1
  42. package/dist/commonjs/lib/sdks.d.ts +1 -0
  43. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  44. package/dist/commonjs/lib/sdks.js +3 -3
  45. package/dist/commonjs/lib/sdks.js.map +1 -1
  46. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  47. package/dist/commonjs/mcp-server/server.js +1 -1
  48. package/dist/commonjs/mcp-server/tools/aiConfigsCreate.d.ts.map +1 -1
  49. package/dist/commonjs/mcp-server/tools/aiConfigsCreate.js +2 -1
  50. package/dist/commonjs/mcp-server/tools/aiConfigsCreate.js.map +1 -1
  51. package/dist/commonjs/mcp-server/tools/aiConfigsCreateVariation.d.ts.map +1 -1
  52. package/dist/commonjs/mcp-server/tools/aiConfigsCreateVariation.js +3 -15
  53. package/dist/commonjs/mcp-server/tools/aiConfigsCreateVariation.js.map +1 -1
  54. package/dist/commonjs/mcp-server/tools/aiConfigsDelete.d.ts.map +1 -1
  55. package/dist/commonjs/mcp-server/tools/aiConfigsDelete.js +4 -4
  56. package/dist/commonjs/mcp-server/tools/aiConfigsDelete.js.map +1 -1
  57. package/dist/commonjs/mcp-server/tools/aiConfigsDeleteVariation.d.ts.map +1 -1
  58. package/dist/commonjs/mcp-server/tools/aiConfigsDeleteVariation.js +3 -4
  59. package/dist/commonjs/mcp-server/tools/aiConfigsDeleteVariation.js.map +1 -1
  60. package/dist/commonjs/mcp-server/tools/aiConfigsGet.js +3 -4
  61. package/dist/commonjs/mcp-server/tools/aiConfigsGet.js.map +1 -1
  62. package/dist/commonjs/mcp-server/tools/aiConfigsGetVariation.d.ts.map +1 -1
  63. package/dist/commonjs/mcp-server/tools/aiConfigsGetVariation.js +3 -4
  64. package/dist/commonjs/mcp-server/tools/aiConfigsGetVariation.js.map +1 -1
  65. package/dist/commonjs/mcp-server/tools/aiConfigsList.d.ts.map +1 -1
  66. package/dist/commonjs/mcp-server/tools/aiConfigsList.js +3 -2
  67. package/dist/commonjs/mcp-server/tools/aiConfigsList.js.map +1 -1
  68. package/dist/commonjs/mcp-server/tools/aiConfigsUpdate.d.ts.map +1 -1
  69. package/dist/commonjs/mcp-server/tools/aiConfigsUpdate.js +3 -15
  70. package/dist/commonjs/mcp-server/tools/aiConfigsUpdate.js.map +1 -1
  71. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateVariation.d.ts.map +1 -1
  72. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateVariation.js +3 -18
  73. package/dist/commonjs/mcp-server/tools/aiConfigsUpdateVariation.js.map +1 -1
  74. package/dist/commonjs/mcp-server/tools/featureFlagsCreate.d.ts.map +1 -1
  75. package/dist/commonjs/mcp-server/tools/featureFlagsCreate.js +2 -1
  76. package/dist/commonjs/mcp-server/tools/featureFlagsCreate.js.map +1 -1
  77. package/dist/commonjs/mcp-server/tools/featureFlagsDelete.d.ts.map +1 -1
  78. package/dist/commonjs/mcp-server/tools/featureFlagsDelete.js +2 -1
  79. package/dist/commonjs/mcp-server/tools/featureFlagsDelete.js.map +1 -1
  80. package/dist/commonjs/mcp-server/tools/featureFlagsGet.d.ts.map +1 -1
  81. package/dist/commonjs/mcp-server/tools/featureFlagsGet.js +2 -1
  82. package/dist/commonjs/mcp-server/tools/featureFlagsGet.js.map +1 -1
  83. package/dist/commonjs/mcp-server/tools/featureFlagsList.d.ts.map +1 -1
  84. package/dist/commonjs/mcp-server/tools/featureFlagsList.js +2 -1
  85. package/dist/commonjs/mcp-server/tools/featureFlagsList.js.map +1 -1
  86. package/dist/commonjs/mcp-server/tools/featureFlagsPatch.d.ts.map +1 -1
  87. package/dist/commonjs/mcp-server/tools/featureFlagsPatch.js +2 -1
  88. package/dist/commonjs/mcp-server/tools/featureFlagsPatch.js.map +1 -1
  89. package/dist/esm/funcs/aiConfigsCreate.js +2 -0
  90. package/dist/esm/funcs/aiConfigsCreate.js.map +1 -1
  91. package/dist/esm/funcs/aiConfigsCreateVariation.js +2 -0
  92. package/dist/esm/funcs/aiConfigsCreateVariation.js.map +1 -1
  93. package/dist/esm/funcs/aiConfigsDelete.js +2 -0
  94. package/dist/esm/funcs/aiConfigsDelete.js.map +1 -1
  95. package/dist/esm/funcs/aiConfigsDeleteVariation.js +2 -0
  96. package/dist/esm/funcs/aiConfigsDeleteVariation.js.map +1 -1
  97. package/dist/esm/funcs/aiConfigsGet.js +2 -0
  98. package/dist/esm/funcs/aiConfigsGet.js.map +1 -1
  99. package/dist/esm/funcs/aiConfigsGetVariation.js +2 -0
  100. package/dist/esm/funcs/aiConfigsGetVariation.js.map +1 -1
  101. package/dist/esm/funcs/aiConfigsList.js +2 -0
  102. package/dist/esm/funcs/aiConfigsList.js.map +1 -1
  103. package/dist/esm/funcs/aiConfigsUpdate.js +2 -0
  104. package/dist/esm/funcs/aiConfigsUpdate.js.map +1 -1
  105. package/dist/esm/funcs/aiConfigsUpdateVariation.js +2 -0
  106. package/dist/esm/funcs/aiConfigsUpdateVariation.js.map +1 -1
  107. package/dist/esm/funcs/featureFlagsCreate.js +2 -0
  108. package/dist/esm/funcs/featureFlagsCreate.js.map +1 -1
  109. package/dist/esm/funcs/featureFlagsDelete.js +2 -0
  110. package/dist/esm/funcs/featureFlagsDelete.js.map +1 -1
  111. package/dist/esm/funcs/featureFlagsGet.js +2 -0
  112. package/dist/esm/funcs/featureFlagsGet.js.map +1 -1
  113. package/dist/esm/funcs/featureFlagsList.js +2 -0
  114. package/dist/esm/funcs/featureFlagsList.js.map +1 -1
  115. package/dist/esm/funcs/featureFlagsPatch.js +2 -0
  116. package/dist/esm/funcs/featureFlagsPatch.js.map +1 -1
  117. package/dist/esm/hooks/types.d.ts +2 -0
  118. package/dist/esm/hooks/types.d.ts.map +1 -1
  119. package/dist/esm/index.d.ts +2 -0
  120. package/dist/esm/index.d.ts.map +1 -1
  121. package/dist/esm/index.js +1 -0
  122. package/dist/esm/index.js.map +1 -1
  123. package/dist/esm/lib/config.d.ts +7 -3
  124. package/dist/esm/lib/config.d.ts.map +1 -1
  125. package/dist/esm/lib/config.js +3 -3
  126. package/dist/esm/lib/config.js.map +1 -1
  127. package/dist/esm/lib/sdks.d.ts +1 -0
  128. package/dist/esm/lib/sdks.d.ts.map +1 -1
  129. package/dist/esm/lib/sdks.js +3 -3
  130. package/dist/esm/lib/sdks.js.map +1 -1
  131. package/dist/esm/mcp-server/mcp-server.js +1 -1
  132. package/dist/esm/mcp-server/server.js +1 -1
  133. package/dist/esm/mcp-server/tools/aiConfigsCreate.d.ts.map +1 -1
  134. package/dist/esm/mcp-server/tools/aiConfigsCreate.js +2 -1
  135. package/dist/esm/mcp-server/tools/aiConfigsCreate.js.map +1 -1
  136. package/dist/esm/mcp-server/tools/aiConfigsCreateVariation.d.ts.map +1 -1
  137. package/dist/esm/mcp-server/tools/aiConfigsCreateVariation.js +3 -15
  138. package/dist/esm/mcp-server/tools/aiConfigsCreateVariation.js.map +1 -1
  139. package/dist/esm/mcp-server/tools/aiConfigsDelete.d.ts.map +1 -1
  140. package/dist/esm/mcp-server/tools/aiConfigsDelete.js +4 -4
  141. package/dist/esm/mcp-server/tools/aiConfigsDelete.js.map +1 -1
  142. package/dist/esm/mcp-server/tools/aiConfigsDeleteVariation.d.ts.map +1 -1
  143. package/dist/esm/mcp-server/tools/aiConfigsDeleteVariation.js +3 -4
  144. package/dist/esm/mcp-server/tools/aiConfigsDeleteVariation.js.map +1 -1
  145. package/dist/esm/mcp-server/tools/aiConfigsGet.js +3 -4
  146. package/dist/esm/mcp-server/tools/aiConfigsGet.js.map +1 -1
  147. package/dist/esm/mcp-server/tools/aiConfigsGetVariation.d.ts.map +1 -1
  148. package/dist/esm/mcp-server/tools/aiConfigsGetVariation.js +3 -4
  149. package/dist/esm/mcp-server/tools/aiConfigsGetVariation.js.map +1 -1
  150. package/dist/esm/mcp-server/tools/aiConfigsList.d.ts.map +1 -1
  151. package/dist/esm/mcp-server/tools/aiConfigsList.js +3 -2
  152. package/dist/esm/mcp-server/tools/aiConfigsList.js.map +1 -1
  153. package/dist/esm/mcp-server/tools/aiConfigsUpdate.d.ts.map +1 -1
  154. package/dist/esm/mcp-server/tools/aiConfigsUpdate.js +3 -15
  155. package/dist/esm/mcp-server/tools/aiConfigsUpdate.js.map +1 -1
  156. package/dist/esm/mcp-server/tools/aiConfigsUpdateVariation.d.ts.map +1 -1
  157. package/dist/esm/mcp-server/tools/aiConfigsUpdateVariation.js +3 -18
  158. package/dist/esm/mcp-server/tools/aiConfigsUpdateVariation.js.map +1 -1
  159. package/dist/esm/mcp-server/tools/featureFlagsCreate.d.ts.map +1 -1
  160. package/dist/esm/mcp-server/tools/featureFlagsCreate.js +2 -1
  161. package/dist/esm/mcp-server/tools/featureFlagsCreate.js.map +1 -1
  162. package/dist/esm/mcp-server/tools/featureFlagsDelete.d.ts.map +1 -1
  163. package/dist/esm/mcp-server/tools/featureFlagsDelete.js +2 -1
  164. package/dist/esm/mcp-server/tools/featureFlagsDelete.js.map +1 -1
  165. package/dist/esm/mcp-server/tools/featureFlagsGet.d.ts.map +1 -1
  166. package/dist/esm/mcp-server/tools/featureFlagsGet.js +2 -1
  167. package/dist/esm/mcp-server/tools/featureFlagsGet.js.map +1 -1
  168. package/dist/esm/mcp-server/tools/featureFlagsList.d.ts.map +1 -1
  169. package/dist/esm/mcp-server/tools/featureFlagsList.js +2 -1
  170. package/dist/esm/mcp-server/tools/featureFlagsList.js.map +1 -1
  171. package/dist/esm/mcp-server/tools/featureFlagsPatch.d.ts.map +1 -1
  172. package/dist/esm/mcp-server/tools/featureFlagsPatch.js +2 -1
  173. package/dist/esm/mcp-server/tools/featureFlagsPatch.js.map +1 -1
  174. package/jsr.json +1 -1
  175. package/package.json +1 -1
  176. package/schemas/openapi.json +43882 -1
  177. package/src/funcs/aiConfigsCreate.ts +2 -0
  178. package/src/funcs/aiConfigsCreateVariation.ts +2 -0
  179. package/src/funcs/aiConfigsDelete.ts +2 -0
  180. package/src/funcs/aiConfigsDeleteVariation.ts +2 -0
  181. package/src/funcs/aiConfigsGet.ts +2 -0
  182. package/src/funcs/aiConfigsGetVariation.ts +2 -0
  183. package/src/funcs/aiConfigsList.ts +2 -0
  184. package/src/funcs/aiConfigsUpdate.ts +2 -0
  185. package/src/funcs/aiConfigsUpdateVariation.ts +2 -0
  186. package/src/funcs/featureFlagsCreate.ts +2 -0
  187. package/src/funcs/featureFlagsDelete.ts +2 -0
  188. package/src/funcs/featureFlagsGet.ts +2 -0
  189. package/src/funcs/featureFlagsList.ts +2 -0
  190. package/src/funcs/featureFlagsPatch.ts +2 -0
  191. package/src/hooks/types.ts +2 -0
  192. package/src/index.ts +2 -0
  193. package/src/lib/config.ts +7 -3
  194. package/src/lib/sdks.ts +10 -4
  195. package/src/mcp-server/mcp-server.ts +1 -1
  196. package/src/mcp-server/server.ts +1 -1
  197. package/src/mcp-server/tools/aiConfigsCreate.ts +2 -1
  198. package/src/mcp-server/tools/aiConfigsCreateVariation.ts +4 -15
  199. package/src/mcp-server/tools/aiConfigsDelete.ts +5 -4
  200. package/src/mcp-server/tools/aiConfigsDeleteVariation.ts +3 -4
  201. package/src/mcp-server/tools/aiConfigsGet.ts +4 -4
  202. package/src/mcp-server/tools/aiConfigsGetVariation.ts +3 -4
  203. package/src/mcp-server/tools/aiConfigsList.ts +3 -2
  204. package/src/mcp-server/tools/aiConfigsUpdate.ts +3 -15
  205. package/src/mcp-server/tools/aiConfigsUpdateVariation.ts +4 -18
  206. package/src/mcp-server/tools/featureFlagsCreate.ts +2 -1
  207. package/src/mcp-server/tools/featureFlagsDelete.ts +2 -1
  208. package/src/mcp-server/tools/featureFlagsGet.ts +2 -1
  209. package/src/mcp-server/tools/featureFlagsList.ts +2 -1
  210. package/src/mcp-server/tools/featureFlagsPatch.ts +2 -1
package/README.md CHANGED
@@ -17,7 +17,7 @@ The official [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) se
17
17
  * [Installation](#installation)
18
18
  * [Requirements](#requirements)
19
19
  * [Available Resources and Operations](#available-resources-and-operations)
20
- * [Available environments](#available-environments)
20
+ * [Available Environments](#available-environments)
21
21
  * [Contributions](#contributions)
22
22
  * [About LaunchDarkly](#about-launchdarkly)
23
23
 
@@ -151,7 +151,7 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
151
151
 
152
152
  <!-- Placeholder for Future Speakeasy SDK Sections -->
153
153
 
154
- ## Available environments
154
+ ## Available Environments
155
155
 
156
156
  Most customer accounts run on LaunchDarkly's commercial (default) environment. Customers on other environments can specify the `--server-url` argument to connect to the appropriate environment. For example, customers on LaunchDarkly's Federal environment should specify the `--server-url https://app.launchdarkly.us` argument when starting their MCP server.
157
157
 
package/bin/mcp-server.js CHANGED
@@ -34236,9 +34236,9 @@ var init_config = __esm(() => {
34236
34236
  SDK_METADATA = {
34237
34237
  language: "typescript",
34238
34238
  openapiDocVersion: "2.0",
34239
- sdkVersion: "0.2.7",
34240
- genVersion: "2.610.0",
34241
- userAgent: "speakeasy-sdk/typescript 0.2.7 2.610.0 2.0 @launchdarkly/mcp-server"
34239
+ sdkVersion: "0.3.1",
34240
+ genVersion: "2.618.0",
34241
+ userAgent: "speakeasy-sdk/typescript 0.3.1 2.618.0 2.0 @launchdarkly/mcp-server"
34242
34242
  };
34243
34243
  });
34244
34244
 
@@ -34803,7 +34803,6 @@ class ClientSDK {
34803
34803
  } else {
34804
34804
  this.#hooks = new SDKHooks;
34805
34805
  }
34806
- this._options = { ...options, hooks: this.#hooks };
34807
34806
  const url = serverURLFromOptions(options);
34808
34807
  if (url) {
34809
34808
  url.pathname = url.pathname.replace(/\/+$/, "") + "/";
@@ -34814,7 +34813,8 @@ class ClientSDK {
34814
34813
  });
34815
34814
  this._baseURL = baseURL;
34816
34815
  this.#httpClient = client;
34817
- this.#logger = options.debugLogger;
34816
+ this._options = { ...options, hooks: this.#hooks };
34817
+ this.#logger = this._options.debugLogger;
34818
34818
  if (!this.#logger && env().LAUNCHDARKLY_DEBUG) {
34819
34819
  this.#logger = console;
34820
34820
  }
@@ -34868,7 +34868,7 @@ class ClientSDK {
34868
34868
  headers.set(k2, v2);
34869
34869
  }
34870
34870
  if (!isBrowserLike) {
34871
- headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34871
+ headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
34872
34872
  }
34873
34873
  const fetchOptions = {
34874
34874
  ...options?.fetchOptions,
@@ -38468,6 +38468,7 @@ async function $do(client, request, options) {
38468
38468
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38469
38469
  const requestSecurity = resolveGlobalSecurity(securityInput);
38470
38470
  const context = {
38471
+ options: client._options,
38471
38472
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38472
38473
  operationID: "postAIConfig",
38473
38474
  oAuth2Scopes: [],
@@ -38483,6 +38484,7 @@ async function $do(client, request, options) {
38483
38484
  path,
38484
38485
  headers,
38485
38486
  body,
38487
+ userAgent: client._options.userAgent,
38486
38488
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38487
38489
  }, options);
38488
38490
  if (!requestRes.ok) {
@@ -38532,7 +38534,8 @@ var init_aiConfigsCreate2 = __esm(() => {
38532
38534
  };
38533
38535
  tool$aiConfigsCreate = {
38534
38536
  name: "create-ai-config",
38535
- description: `Creates a new AI Config within a project. Useful for setting up LLM configurations programmatically.`,
38537
+ description: `Creates a new AI Config within a project. Useful for setting up LLM configurations programmatically.
38538
+ `,
38536
38539
  scopes: ["write"],
38537
38540
  args,
38538
38541
  tool: async (client, args2, ctx) => {
@@ -38582,6 +38585,7 @@ async function $do2(client, request, options) {
38582
38585
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38583
38586
  const requestSecurity = resolveGlobalSecurity(securityInput);
38584
38587
  const context = {
38588
+ options: client._options,
38585
38589
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38586
38590
  operationID: "postAIConfigVariation",
38587
38591
  oAuth2Scopes: [],
@@ -38597,6 +38601,7 @@ async function $do2(client, request, options) {
38597
38601
  path,
38598
38602
  headers,
38599
38603
  body,
38604
+ userAgent: client._options.userAgent,
38600
38605
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38601
38606
  }, options);
38602
38607
  if (!requestRes.ok) {
@@ -38645,22 +38650,10 @@ var init_aiConfigsCreateVariation2 = __esm(() => {
38645
38650
  request: PostAIConfigVariationRequest$inboundSchema
38646
38651
  };
38647
38652
  tool$aiConfigsCreateVariation = {
38648
- name: "ai-configs-create-variation",
38649
- description: `Create AI Config variation
38650
-
38651
- Create a new variation for a given AI Config.
38652
-
38653
- The <code>model</code> in the request body requires a <code>modelName</code> and <code>parameters</code>, for example:
38654
-
38655
- \`\`\`
38656
- "model": {
38657
- "modelName": "claude-3-opus-20240229",
38658
- "parameters": {
38659
- "max_tokens": 1024
38660
- }
38661
- }
38662
- \`\`\`
38653
+ name: "create-ai-config-variation",
38654
+ description: `Adds a new variation to an AI Config, supporting experimentation or multi-model strategies.
38663
38655
  `,
38656
+ scopes: ["write"],
38664
38657
  args: args2,
38665
38658
  tool: async (client, args3, ctx) => {
38666
38659
  const [result, apiCall] = await aiConfigsCreateVariation(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -38706,6 +38699,7 @@ async function $do3(client, request, options) {
38706
38699
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38707
38700
  const requestSecurity = resolveGlobalSecurity(securityInput);
38708
38701
  const context = {
38702
+ options: client._options,
38709
38703
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38710
38704
  operationID: "deleteAIConfig",
38711
38705
  oAuth2Scopes: [],
@@ -38721,6 +38715,7 @@ async function $do3(client, request, options) {
38721
38715
  path,
38722
38716
  headers,
38723
38717
  body,
38718
+ userAgent: client._options.userAgent,
38724
38719
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38725
38720
  }, options);
38726
38721
  if (!requestRes.ok) {
@@ -38769,10 +38764,10 @@ var init_aiConfigsDelete2 = __esm(() => {
38769
38764
  request: DeleteAIConfigRequest$inboundSchema
38770
38765
  };
38771
38766
  tool$aiConfigsDelete = {
38772
- name: "ai-configs-delete",
38773
- description: `Delete AI Config
38774
-
38775
- Delete an existing AI Config.`,
38767
+ name: "delete-ai-config",
38768
+ description: `Deletes an AI Config and its associated variations. Intended for cleanup or deprecation workflows.
38769
+ `,
38770
+ scopes: ["write"],
38776
38771
  args: args3,
38777
38772
  tool: async (client, args4, ctx) => {
38778
38773
  const [result, apiCall] = await aiConfigsDelete(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -38821,6 +38816,7 @@ async function $do4(client, request, options) {
38821
38816
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38822
38817
  const requestSecurity = resolveGlobalSecurity(securityInput);
38823
38818
  const context = {
38819
+ options: client._options,
38824
38820
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38825
38821
  operationID: "deleteAIConfigVariation",
38826
38822
  oAuth2Scopes: [],
@@ -38836,6 +38832,7 @@ async function $do4(client, request, options) {
38836
38832
  path,
38837
38833
  headers,
38838
38834
  body,
38835
+ userAgent: client._options.userAgent,
38839
38836
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38840
38837
  }, options);
38841
38838
  if (!requestRes.ok) {
@@ -38884,10 +38881,9 @@ var init_aiConfigsDeleteVariation2 = __esm(() => {
38884
38881
  request: DeleteAIConfigVariationRequest$inboundSchema
38885
38882
  };
38886
38883
  tool$aiConfigsDeleteVariation = {
38887
- name: "ai-configs-delete-variation",
38888
- description: `Delete AI Config variation
38889
-
38890
- Delete a specific variation of an AI Config by config key and variation key.`,
38884
+ name: "delete-ai-config-variation",
38885
+ description: `Deletes an AI Config variation.`,
38886
+ scopes: ["write"],
38891
38887
  args: args4,
38892
38888
  tool: async (client, args5, ctx) => {
38893
38889
  const [result, apiCall] = await aiConfigsDeleteVariation(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -38932,6 +38928,7 @@ async function $do5(client, request, options) {
38932
38928
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
38933
38929
  const requestSecurity = resolveGlobalSecurity(securityInput);
38934
38930
  const context = {
38931
+ options: client._options,
38935
38932
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38936
38933
  operationID: "getAIConfig",
38937
38934
  oAuth2Scopes: [],
@@ -38947,6 +38944,7 @@ async function $do5(client, request, options) {
38947
38944
  path,
38948
38945
  headers,
38949
38946
  body,
38947
+ userAgent: client._options.userAgent,
38950
38948
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38951
38949
  }, options);
38952
38950
  if (!requestRes.ok) {
@@ -38995,10 +38993,9 @@ var init_aiConfigsGet2 = __esm(() => {
38995
38993
  request: GetAIConfigRequest$inboundSchema
38996
38994
  };
38997
38995
  tool$aiConfigsGet = {
38998
- name: "ai-configs-get",
38999
- description: `Get AI Config
39000
-
39001
- Retrieve a specific AI Config by its key.`,
38996
+ name: "get-ai-config",
38997
+ description: `Retrieves details of a specific AI Config, including variations and model settings.`,
38998
+ scopes: ["read"],
39002
38999
  args: args5,
39003
39000
  tool: async (client, args6, ctx) => {
39004
39001
  const [result, apiCall] = await aiConfigsGet(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -39048,6 +39045,7 @@ async function $do6(client, request, options) {
39048
39045
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39049
39046
  const requestSecurity = resolveGlobalSecurity(securityInput);
39050
39047
  const context = {
39048
+ options: client._options,
39051
39049
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39052
39050
  operationID: "getAIConfigVariation",
39053
39051
  oAuth2Scopes: [],
@@ -39063,6 +39061,7 @@ async function $do6(client, request, options) {
39063
39061
  path,
39064
39062
  headers,
39065
39063
  body,
39064
+ userAgent: client._options.userAgent,
39066
39065
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39067
39066
  }, options);
39068
39067
  if (!requestRes.ok) {
@@ -39111,10 +39110,9 @@ var init_aiConfigsGetVariation2 = __esm(() => {
39111
39110
  request: GetAIConfigVariationRequest$inboundSchema
39112
39111
  };
39113
39112
  tool$aiConfigsGetVariation = {
39114
- name: "ai-configs-get-variation",
39115
- description: `Get AI Config variation
39116
-
39117
- Get an AI Config variation by key. The response includes all variation versions for the given variation key.`,
39113
+ name: "get-ai-config-variation",
39114
+ description: `Retrieves an AI configuration variation.`,
39115
+ scopes: ["read"],
39118
39116
  args: args6,
39119
39117
  tool: async (client, args7, ctx) => {
39120
39118
  const [result, apiCall] = await aiConfigsGetVariation(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -39162,6 +39160,7 @@ async function $do7(client, request, options) {
39162
39160
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39163
39161
  const requestSecurity = resolveGlobalSecurity(securityInput);
39164
39162
  const context = {
39163
+ options: client._options,
39165
39164
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39166
39165
  operationID: "getAIConfigs",
39167
39166
  oAuth2Scopes: [],
@@ -39178,6 +39177,7 @@ async function $do7(client, request, options) {
39178
39177
  headers,
39179
39178
  query,
39180
39179
  body,
39180
+ userAgent: client._options.userAgent,
39181
39181
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39182
39182
  }, options);
39183
39183
  if (!requestRes.ok) {
@@ -39227,8 +39227,9 @@ var init_aiConfigsList2 = __esm(() => {
39227
39227
  };
39228
39228
  tool$aiConfigsList = {
39229
39229
  name: "list-ai-configs",
39230
- description: `Lists all AI Configs in a project, allowing agents to enumerate available configurations for analysis or testing.`,
39231
- scopes: ["read", "read"],
39230
+ description: `Retrieves AI configuration settings for a specific project. This endpoint allows agents to access and modify AI-related configurations, ensuring that the AI's behavior aligns with project requirements and user expectations.
39231
+ `,
39232
+ scopes: ["read"],
39232
39233
  args: args7,
39233
39234
  tool: async (client, args8, ctx) => {
39234
39235
  const [result, apiCall] = await aiConfigsList(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -39275,6 +39276,7 @@ async function $do8(client, request, options) {
39275
39276
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39276
39277
  const requestSecurity = resolveGlobalSecurity(securityInput);
39277
39278
  const context = {
39279
+ options: client._options,
39278
39280
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39279
39281
  operationID: "patchAIConfig",
39280
39282
  oAuth2Scopes: [],
@@ -39290,6 +39292,7 @@ async function $do8(client, request, options) {
39290
39292
  path,
39291
39293
  headers,
39292
39294
  body,
39295
+ userAgent: client._options.userAgent,
39293
39296
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39294
39297
  }, options);
39295
39298
  if (!requestRes.ok) {
@@ -39338,21 +39341,9 @@ var init_aiConfigsUpdate2 = __esm(() => {
39338
39341
  request: PatchAIConfigRequest$inboundSchema
39339
39342
  };
39340
39343
  tool$aiConfigsUpdate = {
39341
- name: "ai-configs-update",
39342
- description: `Update AI Config
39343
-
39344
- Edit an existing AI Config.
39345
-
39346
- The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields.
39347
-
39348
- Here's an example:
39349
- \`\`\`
39350
- {
39351
- "description": "Example updated description",
39352
- "tags": ["new-tag"]
39353
- }
39354
- \`\`\`
39355
- `,
39344
+ name: "update-ai-config",
39345
+ description: `Updates metadata or configuration of an existing AI Config.`,
39346
+ scopes: ["write"],
39356
39347
  args: args8,
39357
39348
  tool: async (client, args9, ctx) => {
39358
39349
  const [result, apiCall] = await aiConfigsUpdate(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -39405,6 +39396,7 @@ async function $do9(client, request, options) {
39405
39396
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39406
39397
  const requestSecurity = resolveGlobalSecurity(securityInput);
39407
39398
  const context = {
39399
+ options: client._options,
39408
39400
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39409
39401
  operationID: "patchAIConfigVariation",
39410
39402
  oAuth2Scopes: [],
@@ -39420,6 +39412,7 @@ async function $do9(client, request, options) {
39420
39412
  path,
39421
39413
  headers,
39422
39414
  body,
39415
+ userAgent: client._options.userAgent,
39423
39416
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39424
39417
  }, options);
39425
39418
  if (!requestRes.ok) {
@@ -39468,25 +39461,10 @@ var init_aiConfigsUpdateVariation2 = __esm(() => {
39468
39461
  request: PatchAIConfigVariationRequest$inboundSchema
39469
39462
  };
39470
39463
  tool$aiConfigsUpdateVariation = {
39471
- name: "ai-configs-update-variation",
39472
- description: `Update AI Config variation
39473
-
39474
- Edit an existing variation of an AI Config. This creates a new version of the variation.
39475
-
39476
- The request body must be a JSON object of the fields to update. The values you include replace the existing values for the fields.
39477
-
39478
- Here's an example:
39479
- \`\`\`
39480
- {
39481
- "messages": [
39482
- {
39483
- "role": "system",
39484
- "content": "The new message"
39485
- }
39486
- ]
39487
- }
39488
- \`\`\`
39464
+ name: "update-ai-config-variation",
39465
+ description: `Updates a specific variation within an AI Config. Enables fine-tuned control of model behavior.
39489
39466
  `,
39467
+ scopes: ["write"],
39490
39468
  args: args9,
39491
39469
  tool: async (client, args10, ctx) => {
39492
39470
  const [result, apiCall] = await aiConfigsUpdateVariation(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -39531,6 +39509,7 @@ async function $do10(client, request, options) {
39531
39509
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39532
39510
  const requestSecurity = resolveGlobalSecurity(securityInput);
39533
39511
  const context = {
39512
+ options: client._options,
39534
39513
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39535
39514
  operationID: "postFeatureFlag",
39536
39515
  oAuth2Scopes: [],
@@ -39547,6 +39526,7 @@ async function $do10(client, request, options) {
39547
39526
  headers,
39548
39527
  query,
39549
39528
  body,
39529
+ userAgent: client._options.userAgent,
39550
39530
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39551
39531
  }, options);
39552
39532
  if (!requestRes.ok) {
@@ -39596,7 +39576,8 @@ var init_featureFlagsCreate2 = __esm(() => {
39596
39576
  };
39597
39577
  tool$featureFlagsCreate = {
39598
39578
  name: "create-feature-flag",
39599
- description: `Creates a new feature flag within a project. AI agents can use this operation to define feature toggles for controlled rollouts, experimentation, or gated features, automating the flag setup process.`,
39579
+ description: `Creates a new feature flag within a project. AI agents can use this operation to define feature toggles for controlled rollouts, experimentation, or gated features, automating the flag setup process.
39580
+ `,
39600
39581
  scopes: ["write"],
39601
39582
  args: args10,
39602
39583
  tool: async (client, args11, ctx) => {
@@ -39642,6 +39623,7 @@ async function $do11(client, request, options) {
39642
39623
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39643
39624
  const requestSecurity = resolveGlobalSecurity(securityInput);
39644
39625
  const context = {
39626
+ options: client._options,
39645
39627
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39646
39628
  operationID: "deleteFeatureFlag",
39647
39629
  oAuth2Scopes: [],
@@ -39657,6 +39639,7 @@ async function $do11(client, request, options) {
39657
39639
  path,
39658
39640
  headers,
39659
39641
  body,
39642
+ userAgent: client._options.userAgent,
39660
39643
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39661
39644
  }, options);
39662
39645
  if (!requestRes.ok) {
@@ -39706,7 +39689,8 @@ var init_featureFlagsDelete2 = __esm(() => {
39706
39689
  };
39707
39690
  tool$featureFlagsDelete = {
39708
39691
  name: "delete-feature-flag",
39709
- description: `Removes a feature flag from the project. Used by AI agents to clean up deprecated toggles that are no longer in use, improving system hygiene and maintainability.`,
39692
+ description: `Removes a feature flag from the project. Used by AI agents to clean up deprecated toggles that are no longer in use, improving system hygiene and maintainability.
39693
+ `,
39710
39694
  scopes: ["write"],
39711
39695
  args: args11,
39712
39696
  tool: async (client, args12, ctx) => {
@@ -39755,6 +39739,7 @@ async function $do12(client, request, options) {
39755
39739
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39756
39740
  const requestSecurity = resolveGlobalSecurity(securityInput);
39757
39741
  const context = {
39742
+ options: client._options,
39758
39743
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39759
39744
  operationID: "getFeatureFlag",
39760
39745
  oAuth2Scopes: [],
@@ -39771,6 +39756,7 @@ async function $do12(client, request, options) {
39771
39756
  headers,
39772
39757
  query,
39773
39758
  body,
39759
+ userAgent: client._options.userAgent,
39774
39760
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39775
39761
  }, options);
39776
39762
  if (!requestRes.ok) {
@@ -39820,7 +39806,8 @@ var init_featureFlagsGet2 = __esm(() => {
39820
39806
  };
39821
39807
  tool$featureFlagsGet = {
39822
39808
  name: "get-feature-flag",
39823
- description: `Fetches the full configuration for a specific feature flag, including environments, variations, and targeting rules. Useful for agents auditing or managing specific feature toggles in a detailed, contextual manner.`,
39809
+ description: `Fetches the full configuration for a specific feature flag, including environments, variations, and targeting rules. Useful for agents auditing or managing specific feature toggles in a detailed, contextual manner.
39810
+ `,
39824
39811
  scopes: ["read"],
39825
39812
  args: args12,
39826
39813
  tool: async (client, args13, ctx) => {
@@ -39874,6 +39861,7 @@ async function $do13(client, request, options) {
39874
39861
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39875
39862
  const requestSecurity = resolveGlobalSecurity(securityInput);
39876
39863
  const context = {
39864
+ options: client._options,
39877
39865
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39878
39866
  operationID: "getFeatureFlags",
39879
39867
  oAuth2Scopes: [],
@@ -39890,6 +39878,7 @@ async function $do13(client, request, options) {
39890
39878
  headers,
39891
39879
  query,
39892
39880
  body,
39881
+ userAgent: client._options.userAgent,
39893
39882
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39894
39883
  }, options);
39895
39884
  if (!requestRes.ok) {
@@ -39939,7 +39928,8 @@ var init_featureFlagsList2 = __esm(() => {
39939
39928
  };
39940
39929
  tool$featureFlagsList = {
39941
39930
  name: "list-feature-flags",
39942
- description: `Retrieves all feature flags within a project, including metadata and targeting rules. Enables AI agents to enumerate existing flags for inspection, configuration analysis, or generating flag usage reports across environments.`,
39931
+ description: `Retrieves all feature flags within a project, including metadata and targeting rules. Enables AI agents to enumerate existing flags for inspection, configuration analysis, or generating flag usage reports across environments.
39932
+ `,
39943
39933
  scopes: ["read"],
39944
39934
  args: args13,
39945
39935
  tool: async (client, args14, ctx) => {
@@ -39989,6 +39979,7 @@ async function $do14(client, request, options) {
39989
39979
  const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39990
39980
  const requestSecurity = resolveGlobalSecurity(securityInput);
39991
39981
  const context = {
39982
+ options: client._options,
39992
39983
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39993
39984
  operationID: "patchFeatureFlag",
39994
39985
  oAuth2Scopes: [],
@@ -40005,6 +39996,7 @@ async function $do14(client, request, options) {
40005
39996
  headers,
40006
39997
  query,
40007
39998
  body,
39999
+ userAgent: client._options.userAgent,
40008
40000
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40009
40001
  }, options);
40010
40002
  if (!requestRes.ok) {
@@ -40054,7 +40046,8 @@ var init_featureFlagsPatch2 = __esm(() => {
40054
40046
  };
40055
40047
  tool$featureFlagsPatch = {
40056
40048
  name: "update-feature-flag",
40057
- description: `Updates the configuration of an existing feature flag. Enables agents to change targeting rules, modify variations, or adapt rollout strategies dynamically in response to user behavior or experiment results.`,
40049
+ description: `Updates the configuration of an existing feature flag. Enables agents to change targeting rules, modify variations, or adapt rollout strategies dynamically in response to user behavior or experiment results.
40050
+ `,
40058
40051
  scopes: ["write"],
40059
40052
  args: args14,
40060
40053
  tool: async (client, args15, ctx) => {
@@ -40075,7 +40068,7 @@ var init_featureFlagsPatch2 = __esm(() => {
40075
40068
  function createMCPServer(deps) {
40076
40069
  const server = new McpServer({
40077
40070
  name: "LaunchDarkly",
40078
- version: "0.2.7"
40071
+ version: "0.3.1"
40079
40072
  });
40080
40073
  const client = new LaunchDarklyCore({
40081
40074
  apiKey: deps.apiKey,
@@ -41317,7 +41310,7 @@ var routes = an({
41317
41310
  var app = He(routes, {
41318
41311
  name: "mcp",
41319
41312
  versionInfo: {
41320
- currentVersion: "0.2.7"
41313
+ currentVersion: "0.3.1"
41321
41314
  }
41322
41315
  });
41323
41316
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -41325,5 +41318,5 @@ export {
41325
41318
  app
41326
41319
  };
41327
41320
 
41328
- //# debugId=74ABC09135B2920A64756E2164756E21
41321
+ //# debugId=39793AD8090FB23C64756E2164756E21
41329
41322
  //# sourceMappingURL=mcp-server.js.map