/** * MCP server manifest resolver. * * Converts upstream MCP registry `ServerDetail` distributions into an * agent-neutral invocation, then projects that invocation through an agent * capability dialect. * * @experimental This API is unstable and may change without notice. */ import type { McpExtensionCapability } from "../agent-capabilities/index.js"; import type { McpServerManifest } from "./manifest-schema.js"; type UpstreamRemoteTransport = "streamable-http" | "sse"; export type McpResolution = { readonly _tag: "resolved"; readonly entry: Readonly>; readonly transport: "stdio" | UpstreamRemoteTransport; readonly shimmed: boolean; readonly warnings: ReadonlyArray; } | { readonly _tag: "nothing-runnable"; readonly reason: string; } | { readonly _tag: "no-distribution"; readonly reason: string; } | { readonly _tag: "needs-input"; readonly entry: Readonly>; readonly transport: "stdio" | UpstreamRemoteTransport; readonly shimmed: boolean; readonly missing: ReadonlyArray; readonly warnings: ReadonlyArray; }; export interface ResolveMcpServerArgs { readonly manifest: McpServerManifest; readonly capability: McpExtensionCapability; readonly values: Readonly>; readonly enabled: boolean; } export declare const resolveMcpServer: (args: ResolveMcpServerArgs) => McpResolution; export {}; //# sourceMappingURL=resolution.d.ts.map