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

Method getServerStats

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

* 获取 Server 统计信息 * @param serverId Server ID * @returns Server 统计数据

(serverId: string)

Source from the content-addressed store, hash-verified

246 * @returns Server 统计数据
247 */
248 async getServerStats(serverId: string): Promise<{
249 serverId: string;
250 totalCalls: number;
251 successfulCalls: number;
252 failedCalls: number;
253 avgResponseTime: number;
254 }> {
255 return this.request(`/v1/mcp/servers/${serverId}/stats`);
256 }
257}

Callers

nothing calls this directly

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected