Skip to content
Merged
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
7 changes: 4 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: cc3a5766-8b39-40da-a0be-fff57173d8e1
management:
docChecksum: 0372014a029d3ca9b9ac775262de6c3c
docChecksum: 75d07115da631245e6b9951136727d0f
docVersion: "2.0"
speakeasyVersion: 1.580.0
generationVersion: 2.654.2
releaseVersion: 0.4.1
configChecksum: ba03e6d279042b1bd9d661581831a3a7
releaseVersion: 0.4.2
configChecksum: 024bcd611bb1b466d728403f71b3b046
repoURL: https://github.com/launchdarkly/mcp-server.git
installationURL: https://github.com/launchdarkly/mcp-server
published: true
Expand All @@ -28,6 +28,7 @@ features:
ignores: 2.81.1
mcpServer: 0.9.3
nameOverrides: 2.81.2
nullables: 0.1.1
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.3.0
Expand Down
2 changes: 1 addition & 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.1
version: 0.4.2
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.580.0
sources:
LaunchDarkly REST API:
sourceNamespace: launchdarkly-rest-api
sourceRevisionDigest: sha256:95f3d4d718e88f72b27db5a22f2f827b642bc3283965fe76f83771570b5d8496
sourceBlobDigest: sha256:1b7ce6418864f3e86e17377a10e6060d1ea5cbbcf7f4cd1cfa0876c3439fb602
sourceRevisionDigest: sha256:1868673c9276536f547b28da2d496ef29e98642910836bdb4aac97a8a7407bb8
sourceBlobDigest: sha256:629c41ee8c6344e7a1122e74c9fd56d8cdf0581428e1baf659cb3812c1ac871a
tags:
- latest
- "2.0"
targets:
launchdarkly-mcp-server:
source: LaunchDarkly REST API
sourceNamespace: launchdarkly-rest-api
sourceRevisionDigest: sha256:95f3d4d718e88f72b27db5a22f2f827b642bc3283965fe76f83771570b5d8496
sourceBlobDigest: sha256:1b7ce6418864f3e86e17377a10e6060d1ea5cbbcf7f4cd1cfa0876c3439fb602
sourceRevisionDigest: sha256:1868673c9276536f547b28da2d496ef29e98642910836bdb4aac97a8a7407bb8
sourceBlobDigest: sha256:629c41ee8c6344e7a1122e74c9fd56d8cdf0581428e1baf659cb3812c1ac871a
codeSamplesNamespace: launchdarkly-rest-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:cbb7edd595888f46d13195a79ca2698a5cab5bbb30a27054db9c290c40638dda
codeSamplesRevisionDigest: sha256:bb64ea7b196a1e4d87408c6a5b64b013ad437af9d8b015036abf4567b74f6492
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.580.0
Expand Down
2 changes: 1 addition & 1 deletion 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.1",
"version": "0.4.2",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/mcp-server",
"version": "0.4.1",
"version": "0.4.2",
"author": "LaunchDarkly",
"keywords": [
"feature-flags",
Expand Down
2 changes: 2 additions & 0 deletions schemas/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -37544,6 +37544,7 @@
"lastRequested": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Timestamp of last time flag was requested",
"example": "2020-02-05T18:17:01.514Z"
},
Expand Down Expand Up @@ -38512,6 +38513,7 @@
"lastRequested": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Timestamp of last time flag was requested",
"example": "2020-02-05T18:17:01.514Z"
},
Expand Down
2 changes: 2 additions & 0 deletions schemas/output.json
Original file line number Diff line number Diff line change
Expand Up @@ -38478,6 +38478,7 @@
"lastRequested": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Timestamp of last time flag was requested",
"example": "2020-02-05T18:17:01.514Z"
},
Expand Down Expand Up @@ -39446,6 +39447,7 @@
"lastRequested": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Timestamp of last time flag was requested",
"example": "2020-02-05T18:17:01.514Z"
},
Expand Down
4 changes: 2 additions & 2 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.1",
sdkVersion: "0.4.2",
genVersion: "2.654.2",
userAgent:
"speakeasy-sdk/typescript 0.4.1 2.654.2 2.0 @launchdarkly/mcp-server",
"speakeasy-sdk/typescript 0.4.2 2.654.2 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.1",
currentVersion: "0.4.2",
},
});

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 @@ -43,7 +43,7 @@ export function createMCPServer(deps: {
}) {
const server = new McpServer({
name: "LaunchDarkly",
version: "0.4.1",
version: "0.4.2",
});

const client = new LaunchDarklyCore({
Expand Down
11 changes: 6 additions & 5 deletions src/models/components/featureflagstatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type FeatureFlagStatus = {
/**
* Timestamp of last time flag was requested
*/
lastRequested?: Date | undefined;
lastRequested?: Date | null | undefined;
/**
* Default value seen from code
*/
Expand Down Expand Up @@ -64,16 +64,16 @@ export const FeatureFlagStatus$inboundSchema: z.ZodType<
unknown
> = z.object({
name: Name$inboundSchema,
lastRequested: z.string().datetime({ offset: true }).transform(v =>
new Date(v)
lastRequested: z.nullable(
z.string().datetime({ offset: true }).transform(v => new Date(v)),
).optional(),
default: z.any().optional(),
});

/** @internal */
export type FeatureFlagStatus$Outbound = {
name: string;
lastRequested?: string | undefined;
lastRequested?: string | null | undefined;
default?: any | undefined;
};

Expand All @@ -84,7 +84,8 @@ export const FeatureFlagStatus$outboundSchema: z.ZodType<
FeatureFlagStatus
> = z.object({
name: Name$outboundSchema,
lastRequested: z.date().transform(v => v.toISOString()).optional(),
lastRequested: z.nullable(z.date().transform(v => v.toISOString()))
.optional(),
default: z.any().optional(),
});

Expand Down