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

Function mcpUrlForActiveLocalServer

apps/cli/src/main.ts:1317–1326  ·  view source on GitHub ↗
(
  connection: ExecutorServerConnection,
  elicitationMode: "browser" | "model",
)

Source from the content-addressed store, hash-verified

1315// ---------------------------------------------------------------------------
1316
1317const mcpUrlForActiveLocalServer = (
1318 connection: ExecutorServerConnection,
1319 elicitationMode: "browser" | "model",
1320): URL => {
1321 const url = new URL("/mcp", connection.origin);
1322 if (elicitationMode === "browser") {
1323 url.searchParams.set("elicitation_mode", "browser");
1324 }
1325 return url;
1326};
1327
1328/**
1329 * Bridge a stdio MCP client to a local server's HTTP `/mcp` endpoint. `executor

Callers 1

runMcpHttpBridgeFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected