78 lines
2.7 KiB
TypeScript
78 lines
2.7 KiB
TypeScript
import { z } from 'zod';
|
|
export declare const McpServerConfigSchema: z.ZodObject<{
|
|
name: z.ZodOptional<z.ZodString>;
|
|
type: z.ZodOptional<z.ZodEnum<["stdio", "sse", "streamable-http"]>>;
|
|
command: z.ZodOptional<z.ZodString>;
|
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
url: z.ZodOptional<z.ZodString>;
|
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
headers?: Record<string, string>;
|
|
name?: string;
|
|
type?: "stdio" | "sse" | "streamable-http";
|
|
url?: string;
|
|
command?: string;
|
|
args?: string[];
|
|
env?: Record<string, string>;
|
|
}, {
|
|
headers?: Record<string, string>;
|
|
name?: string;
|
|
type?: "stdio" | "sse" | "streamable-http";
|
|
url?: string;
|
|
command?: string;
|
|
args?: string[];
|
|
env?: Record<string, string>;
|
|
}>;
|
|
export declare const ConfigSchema: z.ZodObject<{
|
|
mcpServers: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
name: z.ZodOptional<z.ZodString>;
|
|
type: z.ZodOptional<z.ZodEnum<["stdio", "sse", "streamable-http"]>>;
|
|
command: z.ZodOptional<z.ZodString>;
|
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
url: z.ZodOptional<z.ZodString>;
|
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
headers?: Record<string, string>;
|
|
name?: string;
|
|
type?: "stdio" | "sse" | "streamable-http";
|
|
url?: string;
|
|
command?: string;
|
|
args?: string[];
|
|
env?: Record<string, string>;
|
|
}, {
|
|
headers?: Record<string, string>;
|
|
name?: string;
|
|
type?: "stdio" | "sse" | "streamable-http";
|
|
url?: string;
|
|
command?: string;
|
|
args?: string[];
|
|
env?: Record<string, string>;
|
|
}>>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
mcpServers?: Record<string, {
|
|
headers?: Record<string, string>;
|
|
name?: string;
|
|
type?: "stdio" | "sse" | "streamable-http";
|
|
url?: string;
|
|
command?: string;
|
|
args?: string[];
|
|
env?: Record<string, string>;
|
|
}>;
|
|
}, {
|
|
mcpServers?: Record<string, {
|
|
headers?: Record<string, string>;
|
|
name?: string;
|
|
type?: "stdio" | "sse" | "streamable-http";
|
|
url?: string;
|
|
command?: string;
|
|
args?: string[];
|
|
env?: Record<string, string>;
|
|
}>;
|
|
}>;
|
|
export type McpServerConfig = z.infer<typeof McpServerConfigSchema>;
|
|
export type Config = z.infer<typeof ConfigSchema>;
|
|
export declare function detectServerType(config: McpServerConfig): 'stdio' | 'sse' | 'streamable-http';
|
|
export declare function loadConfig(configPath: string): Config;
|
|
//# sourceMappingURL=config.d.ts.map
|