MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / close

Function close

packages/agent-core/test/mcp/client-http.test.ts:166–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 return {
165 url: `http://127.0.0.1:${port}/mcp`,
166 async close() {
167 await new Promise<void>((resolve, reject) => {
168 httpServer.close((err) => {
169 if (err) {
170 reject(err);
171 return;
172 }
173 resolve();
174 });
175 });
176 },
177 };
178}
179

Callers

nothing calls this directly

Calls 3

rejectFunction · 0.85
closeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected