diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index eeea70b..dab253f 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -3,10 +3,10 @@ id: cc3a5766-8b39-40da-a0be-fff57173d8e1
management:
docChecksum: 2e0929fc035a4d91d9fbf708633ca988
docVersion: "2.0"
- speakeasyVersion: 1.580.0
- generationVersion: 2.654.2
- releaseVersion: 0.4.0
- configChecksum: 941cd2dd2f7c5a28dd935c935f7e8ac2
+ speakeasyVersion: 1.604.1
+ generationVersion: 2.683.1
+ releaseVersion: 0.4.1
+ configChecksum: 71774eeee05fdd51b4baf5da00d1a07c
repoURL: https://github.com/launchdarkly/mcp-server.git
installationURL: https://github.com/launchdarkly/mcp-server
published: true
@@ -14,7 +14,7 @@ features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.12
- core: 3.21.13
+ core: 3.21.20
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
devContainers: 2.90.0
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 85ccfdb..1f092b0 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -24,7 +24,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
typescript:
- version: 0.4.0
+ version: 0.4.1
additionalDependencies:
dependencies: {}
devDependencies: {}
@@ -67,4 +67,5 @@ typescript:
packageName: '@launchdarkly/mcp-server'
responseFormat: flat
templateVersion: v2
+ usageSDKInitImports: []
useIndexModules: true
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 9bf1482..922283a 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,4 +1,4 @@
-speakeasyVersion: 1.580.0
+speakeasyVersion: 1.604.1
sources:
LaunchDarkly REST API:
sourceNamespace: launchdarkly-rest-api
@@ -6,7 +6,7 @@ sources:
sourceBlobDigest: sha256:2a2d6840880d11e156b354f916820df9b75048fe92fda6203ee6d0aaf0f21227
tags:
- latest
- - speakeasy-sdk-regen-1752019878
+ - speakeasy-sdk-regen-1752106275
- "2.0"
targets:
launchdarkly-mcp-server:
@@ -15,7 +15,7 @@ targets:
sourceRevisionDigest: sha256:667150cae7854e824a91a3ea68fc1e92bdfa475bdc24a89722778a0493d53b4f
sourceBlobDigest: sha256:2a2d6840880d11e156b354f916820df9b75048fe92fda6203ee6d0aaf0f21227
codeSamplesNamespace: launchdarkly-rest-api-typescript-code-samples
- codeSamplesRevisionDigest: sha256:7088f7fcad1698616ec4a48146b51f644af8dacef407aa1e013db650dd42e42b
+ codeSamplesRevisionDigest: sha256:6d06cb8fe689f2ac03153edb83085075560bc4676d1c96a84d6d90814230edde
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/RELEASES.md b/RELEASES.md
index 17609a4..9bf6a30 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -74,4 +74,14 @@ Based on:
### Generated
- [typescript v0.4.0] .
### Releases
-- [NPM v0.4.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.0 - .
\ No newline at end of file
+- [NPM v0.4.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.0 - .
+
+## 2025-08-15 00:11:31
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.604.1 (2.683.1) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [typescript v0.4.1] .
+### Releases
+- [NPM v0.4.1] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.1 - .
\ No newline at end of file
diff --git a/docs/sdks/aiconfigs/README.md b/docs/sdks/aiconfigs/README.md
index d4ed85c..b016fb3 100644
--- a/docs/sdks/aiconfigs/README.md
+++ b/docs/sdks/aiconfigs/README.md
@@ -23,6 +23,7 @@ Retrieves a specific AI Config's targeting by its key
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -659,6 +660,7 @@ Here's an example:
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -761,6 +763,7 @@ Get a list of all AI Configs in the given project.
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -837,6 +840,7 @@ Create a new AI Config within the given project.
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -933,6 +937,7 @@ Delete an existing AI Config.
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -1011,6 +1016,7 @@ Retrieve a specific AI Config by its key.
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -1100,6 +1106,7 @@ Here's an example:
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -1210,6 +1217,7 @@ The model
in the request body requires a modelName
and
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -1326,6 +1334,7 @@ Delete a specific variation of an AI Config by config key and variation key.
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -1406,6 +1415,7 @@ Get an AI Config variation by key. The response includes all variation versions
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -1501,6 +1511,7 @@ Here's an example:
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
diff --git a/docs/sdks/featureflags/README.md b/docs/sdks/featureflags/README.md
index 09588dd..ffb64df 100644
--- a/docs/sdks/featureflags/README.md
+++ b/docs/sdks/featureflags/README.md
@@ -81,6 +81,7 @@ To learn more, read [Migration Flags](https://launchdarkly.com/docs/home/flags/m
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -185,6 +186,7 @@ To learn more, read [Migration Flags](https://launchdarkly.com/docs/home/flags/m
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -291,6 +293,7 @@ For example, `expand=evaluation` includes the `evaluation` field in the response
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -1558,6 +1561,7 @@ To learn more, read [Migration flags](https://launchdarkly.com/docs/home/flags/m
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
@@ -1656,6 +1660,7 @@ Delete a feature flag in all environments. Use with caution: only delete feature
### Example Usage
+
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";
diff --git a/examples/.env.template b/examples/.env.template
index 3067dcd..45abb17 100644
--- a/examples/.env.template
+++ b/examples/.env.template
@@ -6,11 +6,9 @@
# The SDK supports loading security credentials from environment variables
# with the prefix: LAUNCHDARKLY_
#
-# Example security environment variables:
-# LAUNCHDARKLY_API_KEY=your_api_key_here
-# LAUNCHDARKLY_BEARER_TOKEN=your_bearer_token_here
-# LAUNCHDARKLY_USERNAME=your_username_here
-# LAUNCHDARKLY_PASSWORD=your_password_here
-#
-# Check the SDK documentation for the exact environment variable names
-# required for your specific authentication method.
+# Security environment variables:
+LAUNCHDARKLY_API_KEY=your_api_key_here
+
+# Debug Configuration
+# Enable HTTP request/response logging for debugging
+LAUNCHDARKLY_DEBUG=false
diff --git a/examples/README.md b/examples/README.md
index a7a9494..37d8dd4 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -24,3 +24,8 @@ To run an example file from the examples directory:
npm run build && npx tsx example.ts
```
+## Creating new examples
+
+Duplicate an existing example file, they won't be overwritten by the generation process.
+
+
diff --git a/examples/featureFlagsList.example.ts b/examples/featureFlagsList.example.ts
index aa9fd70..fb006bc 100644
--- a/examples/featureFlagsList.example.ts
+++ b/examples/featureFlagsList.example.ts
@@ -2,11 +2,13 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
+import dotenv from "dotenv";
+dotenv.config();
/**
* Example usage of the @launchdarkly/mcp-server SDK
*
* To run this example from the examples directory:
- * npm run build && npx tsx featureFlagsList.ts
+ * npm run build && npx tsx featureFlagsList.example.ts
*/
import { LaunchDarkly } from "@launchdarkly/mcp-server";
diff --git a/examples/package-lock.json b/examples/package-lock.json
index 540f2aa..9a7bb1f 100644
--- a/examples/package-lock.json
+++ b/examples/package-lock.json
@@ -18,8 +18,11 @@
},
"..": {
"name": "@launchdarkly/mcp-server",
- "version": "0.4.0",
+ "version": "0.4.1",
"license": "MIT",
+ "dependencies": {
+ "zod": "^3.20.0"
+ },
"bin": {
"mcp": "bin/mcp-server.js"
},
@@ -34,13 +37,11 @@
"express": "^4.21.2",
"globals": "^15.14.0",
"tshy": "^2.0.0",
- "typescript": "^5.4.5",
- "typescript-eslint": "^8.22.0",
- "zod": "^3.25.17"
+ "typescript": "~5.8.3",
+ "typescript-eslint": "^8.26.0"
},
"peerDependencies": {
- "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
- "zod": ">= 3"
+ "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
},
"peerDependenciesMeta": {
"@modelcontextprotocol/sdk": {
diff --git a/jsr.json b/jsr.json
index bebea31..43ca9a5 100644
--- a/jsr.json
+++ b/jsr.json
@@ -2,7 +2,7 @@
{
"name": "@launchdarkly/mcp-server",
- "version": "0.4.0",
+ "version": "0.4.1",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
diff --git a/package-lock.json b/package-lock.json
index daee7a0..ca4f2b8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,13 +1,16 @@
{
"name": "@launchdarkly/mcp-server",
- "version": "0.4.0",
+ "version": "0.4.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@launchdarkly/mcp-server",
- "version": "0.4.0",
+ "version": "0.4.1",
"license": "MIT",
+ "dependencies": {
+ "zod": "^3.20.0"
+ },
"bin": {
"mcp": "bin/mcp-server.js"
},
@@ -22,13 +25,11 @@
"express": "^4.21.2",
"globals": "^15.14.0",
"tshy": "^2.0.0",
- "typescript": "^5.4.5",
- "typescript-eslint": "^8.22.0",
- "zod": "^3.25.17"
+ "typescript": "~5.8.3",
+ "typescript-eslint": "^8.26.0"
},
"peerDependencies": {
- "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
- "zod": ">= 3"
+ "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
},
"peerDependenciesMeta": {
"@modelcontextprotocol/sdk": {
@@ -3995,7 +3996,6 @@
"version": "3.25.17",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.17.tgz",
"integrity": "sha512-8hQzQ/kMOIFbwOgPrm9Sf9rtFHpFUMy4HvN0yEB0spw14aYi0uT5xG5CE2DB9cd51GWNsz+DNO7se1kztHMKnw==",
- "dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
diff --git a/package.json b/package.json
index 477f7e1..5afb2a2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/mcp-server",
- "version": "0.4.0",
+ "version": "0.4.1",
"author": "LaunchDarkly",
"keywords": [
"feature-flags",
@@ -41,8 +41,7 @@
"prepublishOnly": "npm run build"
},
"peerDependencies": {
- "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
- "zod": ">= 3"
+ "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
},
"peerDependenciesMeta": {
"@modelcontextprotocol/sdk": {
@@ -60,11 +59,12 @@
"express": "^4.21.2",
"globals": "^15.14.0",
"tshy": "^2.0.0",
- "typescript": "^5.4.5",
- "typescript-eslint": "^8.22.0",
- "zod": "^3.25.17"
+ "typescript": "~5.8.3",
+ "typescript-eslint": "^8.26.0"
+ },
+ "dependencies": {
+ "zod": "^3.20.0"
},
- "dependencies": {},
"exports": {
".": {
"import": {
diff --git a/src/lib/config.ts b/src/lib/config.ts
index ca204dd..06273f9 100644
--- a/src/lib/config.ts
+++ b/src/lib/config.ts
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "2.0",
- sdkVersion: "0.4.0",
- genVersion: "2.654.2",
+ sdkVersion: "0.4.1",
+ genVersion: "2.683.1",
userAgent:
- "speakeasy-sdk/typescript 0.4.0 2.654.2 2.0 @launchdarkly/mcp-server",
+ "speakeasy-sdk/typescript 0.4.1 2.683.1 2.0 @launchdarkly/mcp-server",
} as const;
diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts
index f2be119..ed62bfd 100644
--- a/src/mcp-server/mcp-server.ts
+++ b/src/mcp-server/mcp-server.ts
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
export const app = buildApplication(routes, {
name: "mcp",
versionInfo: {
- currentVersion: "0.4.0",
+ currentVersion: "0.4.1",
},
});
diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts
index 12d9022..ef4fb9a 100644
--- a/src/mcp-server/server.ts
+++ b/src/mcp-server/server.ts
@@ -40,7 +40,7 @@ export function createMCPServer(deps: {
}) {
const server = new McpServer({
name: "LaunchDarkly",
- version: "0.4.0",
+ version: "0.4.1",
});
const client = new LaunchDarklyCore({