MCPcopy
hub / github.com/inkeep/open-knowledge / get

Function get

packages/cli/src/commands/ui.test.ts:100–104  ·  view source on GitHub ↗
(port: number, path: string)

Source from the content-addressed store, hash-verified

98}
99
100async function get(port: number, path: string) {
101 const res = await fetch(`http://127.0.0.1:${port}${path}`);
102 const body = await res.text();
103 return { status: res.status, body, headers: res.headers };
104}
105
106function seedDist(dir: string, hash: string): string {
107 const dist = resolve(dir, 'dist');

Callers 1

ui.test.tsFile · 0.70

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected