UNPKG

@launchdarkly/mcp-server

Version:

The local [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [LaunchDarkly](https://launchdarkly.com/) federal and European Union (EU) environments.

26 lines • 949 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; /** @internal */ export const GetMetricRequest$inboundSchema = z.object({ projectKey: z.string(), metricKey: z.string(), expand: z.string().optional(), versionId: z.string().optional(), }); /** @internal */ export const GetMetricRequest$outboundSchema = z.object({ projectKey: z.string(), metricKey: z.string(), expand: z.string().optional(), versionId: z.string().optional(), }); export function getMetricRequestToJSON(getMetricRequest) { return JSON.stringify(GetMetricRequest$outboundSchema.parse(getMetricRequest)); } export function getMetricRequestFromJSON(jsonString) { return safeParse(jsonString, (x) => GetMetricRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMetricRequest' from JSON`); } //# sourceMappingURL=getmetric.js.map