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

Function mcpUrlForActiveLocalServer

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

Source from the content-addressed store, hash-verified

1338// ---------------------------------------------------------------------------
1339
1340const mcpUrlForActiveLocalServer = (
1341 connection: ExecutorServerConnection,
1342 elicitationMode: "browser" | "model",
1343): URL => {
1344 const url = new URL("/mcp", connection.origin);
1345 if (elicitationMode === "browser") {
1346 url.searchParams.set("elicitation_mode", "browser");
1347 }
1348 return url;
1349};
1350
1351/**
1352 * 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