( connection: ExecutorServerConnection, elicitationMode: "browser" | "model", )
| 1338 | // --------------------------------------------------------------------------- |
| 1339 | |
| 1340 | const 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 |