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

Function readToolMode

packages/hosts/mcp/src/browser-approval.ts:92–95  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

90 * reads as the default.
91 */
92export const readToolMode = (request: Request): McpToolMode => {
93 const value = new URL(request.url).searchParams.get("mode");
94 return value === "passthrough" ? "passthrough" : "codemode";
95};
96
97/**
98 * Build the console approval URL for a paused execution:

Callers 5

buildOptionsForFunction · 0.90
createMcpRequestHandlerFunction · 0.90
propsForPrincipalFunction · 0.85
propsForPrincipalFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected