ClientConfig: {
additionalToolNamePrefix: undefined | string;
mcpServers: Record<string, {
args: string[];
command: string;
cwd?: string;
encoding?: string;
env?: Record<string, string>;
outputHandling?: "content" | "artifact" | {
audio: undefined | "content" | "artifact";
image: undefined | "content" | "artifact";
resource: undefined | "content" | "artifact";
text: undefined | "content" | "artifact";
};
restart?: {
delayMs?: number;
enabled?: boolean;
maxAttempts?: number;
};
stderr?:
| "overlapped"
| "pipe"
| "ignore"
| "inherit";
transport?: "stdio";
type?: "stdio";
} | {
authProvider?: OAuthClientProvider;
automaticSSEFallback?: boolean;
headers?: Record<string, string>;
outputHandling?: "content" | "artifact" | {
audio: undefined | "content" | "artifact";
image: undefined | "content" | "artifact";
resource: undefined | "content" | "artifact";
text: undefined | "content" | "artifact";
};
reconnect?: {
delayMs?: number;
enabled?: boolean;
maxAttempts?: number;
};
transport?: "http" | "sse";
type?: "http" | "sse";
url: string;
}>;
outputHandling:
| undefined
| "content"
| "artifact"
| {
audio: undefined | "content" | "artifact";
image: undefined | "content" | "artifact";
resource: undefined | "content" | "artifact";
text: undefined | "content" | "artifact";
};
prefixToolNameWithServerName: undefined | boolean;
throwOnLoadError: undefined | boolean;
useStandardContentBlocks: undefined | boolean;
}
Type for MultiServerMCPClient configuration