mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
MCP SSE support (#511)
Matches the config format used by other MCP clients.
This commit is contained in:
parent
8590efd229
commit
635666dec9
2 changed files with 37 additions and 16 deletions
|
|
@ -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,
|
||||
) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue