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

Function normalizeHandlerConfig

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

Source from the content-addressed store, hash-verified

117 "engine" in config ? config.engine : null;
118
119const normalizeHandlerConfig = (
120 input: ExecutorMcpServerConfig | LocalMcpRequestHandlerConfig,
121): LocalMcpRequestHandlerConfig => ("defaultConfig" in input ? input : { defaultConfig: input });
122
123export const createMcpRequestHandler = (
124 input: ExecutorMcpServerConfig | LocalMcpRequestHandlerConfig,

Callers 1

createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected