@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.
27 lines • 1.15 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { experimentsGetExperimentsAnyEnv } from "../../funcs/experimentsGetExperimentsAnyEnv.js";
import * as operations from "../../models/operations/index.js";
import { formatResult } from "../tools.js";
const args = {
request: operations.GetExperimentsAnyEnvRequest$inboundSchema,
};
export const tool$experimentsGetExperimentsAnyEnv = {
name: "list-experiments-any-environment",
description: `Lists experiments in a project across all environments. Use to discover experiments before fetching one by environment.`,
scopes: ["read"],
args,
tool: async (client, args, ctx) => {
const [result, apiCall] = await experimentsGetExperimentsAnyEnv(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
if (!result.ok) {
return {
content: [{ type: "text", text: result.error.message }],
isError: true,
};
}
const value = result.value;
return formatResult(value, apiCall);
},
};
//# sourceMappingURL=experimentsGetExperimentsAnyEnv.js.map