* 更新 Server 配置 * @param serverId Server ID * @param updates 更新内容 * @returns 更新后的 Server 信息
(serverId: string, updates: Partial<MCPServerConfig>)
| 64 | * @returns 更新后的 Server 信息 |
| 65 | */ |
| 66 | async updateServer(serverId: string, updates: Partial<MCPServerConfig>): Promise<MCPServerInfo> { |
| 67 | return this.request<MCPServerInfo>(`/v1/mcp/servers/${serverId}`, { |
| 68 | method: "PATCH", |
| 69 | body: updates, |
| 70 | }); |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * 移除 MCP Server |