Skip to content

chore: 🐝 Update SDK - Generate 0.4.1 #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ 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.603.0
generationVersion: 2.681.1
releaseVersion: 0.4.1
configChecksum: 71774eeee05fdd51b4baf5da00d1a07c
repoURL: https://github.com/launchdarkly/mcp-server.git
installationURL: https://github.com/launchdarkly/mcp-server
published: true
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
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
typescript:
version: 0.4.0
version: 0.4.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down Expand Up @@ -67,4 +67,5 @@ typescript:
packageName: '@launchdarkly/mcp-server'
responseFormat: flat
templateVersion: v2
usageSDKInitImports: []
useIndexModules: true
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.580.0
speakeasyVersion: 1.603.0
sources:
LaunchDarkly REST API:
sourceNamespace: launchdarkly-rest-api
sourceRevisionDigest: sha256:667150cae7854e824a91a3ea68fc1e92bdfa475bdc24a89722778a0493d53b4f
sourceBlobDigest: sha256:2a2d6840880d11e156b354f916820df9b75048fe92fda6203ee6d0aaf0f21227
tags:
- latest
- speakeasy-sdk-regen-1752019878
- speakeasy-sdk-regen-1752106275
- "2.0"
targets:
launchdarkly-mcp-server:
Expand All @@ -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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [NPM v0.4.0] https://www.npmjs.com/package/@launchdarkly/mcp-server/v/0.4.0 - .

## 2025-08-13 00:11:16
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.603.0 (2.681.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 - .
11 changes: 11 additions & 0 deletions docs/sdks/aiconfigs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Retrieves a specific AI Config's targeting by its key

### Example Usage

<!-- UsageSnippet language="typescript" operationID="getAIConfigTargeting" method="get" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -659,6 +660,7 @@ Here's an example:

### Example Usage

<!-- UsageSnippet language="typescript" operationID="patchAIConfigTargeting" method="patch" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -761,6 +763,7 @@ Get a list of all AI Configs in the given project.

### Example Usage

<!-- UsageSnippet language="typescript" operationID="getAIConfigs" method="get" path="/api/v2/projects/{projectKey}/ai-configs" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -837,6 +840,7 @@ Create a new AI Config within the given project.

### Example Usage

<!-- UsageSnippet language="typescript" operationID="postAIConfig" method="post" path="/api/v2/projects/{projectKey}/ai-configs" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -933,6 +937,7 @@ Delete an existing AI Config.

### Example Usage

<!-- UsageSnippet language="typescript" operationID="deleteAIConfig" method="delete" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -1011,6 +1016,7 @@ Retrieve a specific AI Config by its key.

### Example Usage

<!-- UsageSnippet language="typescript" operationID="getAIConfig" method="get" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -1100,6 +1106,7 @@ Here's an example:

### Example Usage

<!-- UsageSnippet language="typescript" operationID="patchAIConfig" method="patch" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -1210,6 +1217,7 @@ The <code>model</code> in the request body requires a <code>modelName</code> and

### Example Usage

<!-- UsageSnippet language="typescript" operationID="postAIConfigVariation" method="post" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -1326,6 +1334,7 @@ Delete a specific variation of an AI Config by config key and variation key.

### Example Usage

<!-- UsageSnippet language="typescript" operationID="deleteAIConfigVariation" method="delete" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -1406,6 +1415,7 @@ Get an AI Config variation by key. The response includes all variation versions

### Example Usage

<!-- UsageSnippet language="typescript" operationID="getAIConfigVariation" method="get" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -1501,6 +1511,7 @@ Here's an example:

### Example Usage

<!-- UsageSnippet language="typescript" operationID="patchAIConfigVariation" method="patch" path="/api/v2/projects/{projectKey}/ai-configs/{configKey}/variations/{variationKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down
5 changes: 5 additions & 0 deletions docs/sdks/featureflags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ To learn more, read [Migration Flags](https://launchdarkly.com/docs/home/flags/m

### Example Usage

<!-- UsageSnippet language="typescript" operationID="getFeatureFlags" method="get" path="/api/v2/flags/{projectKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -185,6 +186,7 @@ To learn more, read [Migration Flags](https://launchdarkly.com/docs/home/flags/m

### Example Usage

<!-- UsageSnippet language="typescript" operationID="postFeatureFlag" method="post" path="/api/v2/flags/{projectKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -291,6 +293,7 @@ For example, `expand=evaluation` includes the `evaluation` field in the response

### Example Usage

<!-- UsageSnippet language="typescript" operationID="getFeatureFlag" method="get" path="/api/v2/flags/{projectKey}/{featureFlagKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -1558,6 +1561,7 @@ To learn more, read [Migration flags](https://launchdarkly.com/docs/home/flags/m

### Example Usage

<!-- UsageSnippet language="typescript" operationID="patchFeatureFlag" method="patch" path="/api/v2/flags/{projectKey}/{featureFlagKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down Expand Up @@ -1656,6 +1660,7 @@ Delete a feature flag in all environments. Use with caution: only delete feature

### Example Usage

<!-- UsageSnippet language="typescript" operationID="deleteFeatureFlag" method="delete" path="/api/v2/flags/{projectKey}/{featureFlagKey}" -->
```typescript
import { LaunchDarkly } from "@launchdarkly/mcp-server";

Expand Down
14 changes: 6 additions & 8 deletions examples/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


4 changes: 3 additions & 1 deletion examples/featureFlagsList.example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
13 changes: 7 additions & 6 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/mcp-server",
"version": "0.4.0",
"version": "0.4.1",
"author": "LaunchDarkly",
"keywords": [
"feature-flags",
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.681.1",
userAgent:
"speakeasy-sdk/typescript 0.4.0 2.654.2 2.0 @launchdarkly/mcp-server",
"speakeasy-sdk/typescript 0.4.1 2.681.1 2.0 @launchdarkly/mcp-server",
} as const;
2 changes: 1 addition & 1 deletion src/mcp-server/mcp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const routes = buildRouteMap({
export const app = buildApplication(routes, {
name: "mcp",
versionInfo: {
currentVersion: "0.4.0",
currentVersion: "0.4.1",
},
});

Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down