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

Method connectServer

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

* 连接到 Server * @param serverId Server ID * @returns 连接结果

(serverId: string)

Source from the content-addressed store, hash-verified

94 * @returns 连接结果
95 */
96 async connectServer(serverId: string): Promise<MCPServerInfo> {
97 return this.request<MCPServerInfo>(`/v1/mcp/servers/${serverId}/connect`, {
98 method: "POST",
99 });
100 }
101
102 /**
103 * 启动 MCP Server(别名方法)

Callers 2

startServerMethod · 0.95
mainFunction · 0.95

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected