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.

22 lines • 704 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 Message$inboundSchema = z.object({ content: z.string(), role: z.string(), }); /** @internal */ export const Message$outboundSchema = z.object({ content: z.string(), role: z.string(), }); export function messageToJSON(message) { return JSON.stringify(Message$outboundSchema.parse(message)); } export function messageFromJSON(jsonString) { return safeParse(jsonString, (x) => Message$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Message' from JSON`); } //# sourceMappingURL=message.js.map