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

Function normalizeHandlerConfig

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

Source from the content-addressed store, hash-verified

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

Callers 1

createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected