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

Function normalizeHandlerConfig

apps/local/src/mcp.ts:131–133  ·  view source on GitHub ↗
(
  input: ExecutorMcpToolConfig | LocalMcpRequestHandlerConfig,
)

Source from the content-addressed store, hash-verified

129 "engine" in config ? config.engine : null;
130
131const normalizeHandlerConfig = (
132 input: ExecutorMcpToolConfig | LocalMcpRequestHandlerConfig,
133): LocalMcpRequestHandlerConfig => ("defaultConfig" in input ? input : { defaultConfig: input });
134
135export const createMcpRequestHandler = (
136 input: ExecutorMcpToolConfig | LocalMcpRequestHandlerConfig,

Callers 1

createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected