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

Function tinySpec

e2e/cloud/toolkit-policy-perf.test.ts:48–64  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

46// One-operation OpenAPI spec for the control identity: a real toolkit session,
47// minimal catalog, so its connect time is "the handshake without the walk".
48const tinySpec = (baseUrl: string): string =>
49 JSON.stringify({
50 openapi: "3.0.3",
51 info: { title: "Tiny API", version: "1.0.0" },
52 servers: [{ url: baseUrl }],
53 paths: {
54 "/ping/{id}": {
55 get: {
56 operationId: "getPing",
57 security: [{ apiKey: [] }],
58 parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
59 responses: { "200": { description: "ok" } },
60 },
61 },
62 },
63 components: { securitySchemes: { apiKey: { type: "apiKey", in: "header", name: "x-tok" } } },
64 });
65
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). */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected