MCPcopy Create free account
hub / github.com/astercloud/aster / updateServer

Method updateServer

client-sdks/client-js/src/resources/mcp.ts:66–71  ·  view source on GitHub ↗

* 更新 Server 配置 * @param serverId Server ID * @param updates 更新内容 * @returns 更新后的 Server 信息

(serverId: string, updates: Partial<MCPServerConfig>)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected