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

Function normalizeHandlerConfig

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

Source from the content-addressed store, hash-verified

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

Callers 1

createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected