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 8590efd229
commit 635666dec9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 37 additions and 16 deletions

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,
) {}
}