MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / queryProxy

Function queryProxy

src/cli.ts:93–97  ·  view source on GitHub ↗

Query the running proxy HTTP API

(path: string, port: number)

Source from the content-addressed store, hash-verified

91
92/** Query the running proxy HTTP API */
93async function queryProxy(path: string, port: number): Promise<unknown> {
94 const res = await fetch(`http://127.0.0.1:${port}${path}`);
95 if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
96 return res.json();
97}
98
99/**
100 * Pipe text into the system clipboard via the platform-native command.

Callers 6

cmdShareFunction · 0.85
cmdStatusFunction · 0.85
cmdWalletFunction · 0.85
cmdModelsFunction · 0.85
cmdStatsFunction · 0.85
cmdCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected