( connection: ExecutorServerConnection, elicitationMode: "browser" | "model", )
| 1315 | // --------------------------------------------------------------------------- |
| 1316 | |
| 1317 | const 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 |