Skip to content

Commit dbfbfc0

Browse files
committed
fix: use Cursor status command in MCP bridge hints
1 parent f011f1b commit dbfbfc0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

mcp/evolver-proxy.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ async function proxyFetch(method, path, body) {
6363
let hint = '';
6464
if ([401, 403].includes(res.status)) {
6565
hint = token
66-
? ' The Proxy token in ~/.evolver/settings.json looks stale (the Proxy mints a fresh token on restart). Restart this Claude session so the bridge re-reads it, or run /evolver:status.'
67-
: ` No Proxy token found in ~/.evolver/settings.json and the request was rejected — another process may be using ${base}. Start the Proxy (run \`evolver\` once in a git repo) or set EVOMAP_PROXY_PORT, then run /evolver:status.`;
66+
? ' The Proxy token in ~/.evolver/settings.json looks stale (the Proxy mints a fresh token on restart). Restart this Cursor session so the bridge re-reads it, or run /status.'
67+
: ` No Proxy token found in ~/.evolver/settings.json and the request was rejected — another process may be using ${base}. Start the Proxy (run \`evolver\` once in a git repo) or set EVOMAP_PROXY_PORT, then run /status.`;
6868
} else if (res.status === 404) {
69-
hint = ` Endpoint not found at ${base} — it may not be the Evolver Proxy. Confirm with /evolver:status.`;
69+
hint = ` Endpoint not found at ${base} — it may not be the Evolver Proxy. Confirm with /status.`;
7070
}
7171
return { ok: false, error: `Proxy at ${base} returned HTTP ${res.status}: ${typeof data === 'object' ? JSON.stringify(data) : text}.${hint}` };
7272
}
7373
return { ok: true, data };
7474
} catch (e) {
75-
const hint = `Evolver Proxy not reachable at ${base}. Start it by running \`evolver\` once inside a git repo (the CLI launches the Proxy), or run /evolver:status. Set EVOMAP_PROXY_PORT if you use a non-default port.`;
75+
const hint = `Evolver Proxy not reachable at ${base}. Start it by running \`evolver\` once inside a git repo (the CLI launches the Proxy), or run /status. Set EVOMAP_PROXY_PORT if you use a non-default port.`;
7676
return { ok: false, error: `${e.name === 'AbortError' ? 'Proxy request timed out' : 'Proxy connection failed: ' + e.message}. ${hint}` };
7777
} finally {
7878
clearTimeout(timer);

0 commit comments

Comments
 (0)