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

Function normalizeHandlerConfig

apps/local/src/mcp.ts:130–132  ·  view source on GitHub ↗
(
  input: ExecutorMcpServerConfig | LocalMcpRequestHandlerConfig,
)

Source from the content-addressed store, hash-verified

128 "engine" in config ? config.engine : null;
129
130const normalizeHandlerConfig = (
131 input: ExecutorMcpServerConfig | LocalMcpRequestHandlerConfig,
132): LocalMcpRequestHandlerConfig => ("defaultConfig" in input ? input : { defaultConfig: input });
133
134// `--port 0` (e2e, some CLI boots) installs EXECUTOR_WEB_BASE_URL with port 0
135// before the OS assigns a listen port. That origin is not browser-reachable

Callers 1

createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected