MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / timeToolkitConnect

Function timeToolkitConnect

e2e/cloud/toolkit-policy-perf.test.ts:68–75  ·  view source on GitHub ↗
(mcp: McpSurface, identity: Identity, url: string)

Source from the content-addressed store, hash-verified

66/** Time how long a fresh MCP client takes to connect to a toolkit endpoint and
67 * read its advertised tools (the path that pays the catalog-walk cost). */
68const timeToolkitConnect = (mcp: McpSurface, identity: Identity, url: string) =>
69 Effect.gen(function* () {
70 const session = mcp.session(identity, { url });
71 const startedAt = Date.now();
72 const defs = yield* session.describeTools();
73 const elapsedMs = Date.now() - startedAt;
74 return { elapsedMs, toolNames: defs.map((d) => d.name) };
75 });
76
77scenario(
78 "Toolkits · connect time does not scale with catalog size",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected