MCP SSE support (#511)

Matches the config format used by other MCP clients.
This commit is contained in:
cornmander
2025-05-23 17:19:30 -04:00
committed by GitHub
parent 870adc521d
commit a83ef4b13b
2 changed files with 37 additions and 16 deletions
+5 -1
View File
@@ -24,10 +24,14 @@ import { WebSearchTool } from '../tools/web-search.js';
export class MCPServerConfig {
constructor(
readonly command: string,
// For stdio transport
readonly command?: string,
readonly args?: string[],
readonly env?: Record<string, string>,
readonly cwd?: string,
// For sse transport
readonly url?: string,
// Common
readonly timeout?: number,
) {}
}