MCPcopy Create free account
hub / github.com/vercel/vercel / createOpenApiCache

Function createOpenApiCache

packages/cli/src/util/openapi/spec-url.ts:97–109  ·  view source on GitHub ↗
(
  client: Client,
  specUrl?: string
)

Source from the content-addressed store, hash-verified

95}
96
97export function createOpenApiCache(
98 client: Client,
99 specUrl?: string
100): OpenApiCache {
101 return new OpenApiCache(
102 specUrl
103 ? {
104 specUrl,
105 fetchSpecUrl: url => fetchSpecUrl(client, url),
106 }
107 : undefined
108 );
109}
110
111async function fetchWithTimeout(
112 url: string,

Callers 4

promptEndpointSelectionFunction · 0.90
listEndpointsFunction · 0.90
runTagOperationFunction · 0.90

Calls 1

fetchSpecUrlFunction · 0.85

Tested by

no test coverage detected