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

Function configForResource

apps/local/src/mcp.ts:147–150  ·  view source on GitHub ↗
(resource: McpResource)

Source from the content-addressed store, hash-verified

145 : Promise.resolve(null);
146
147 const configForResource = async (resource: McpResource): Promise<LocalMcpServerConfig> => {
148 if (!handlerConfig.createConfigForResource) return { config: handlerConfig.defaultConfig };
149 return handlerConfig.createConfigForResource(resource);
150 };
151
152 const dispose = async (id: string, opts: { transport?: boolean; server?: boolean } = {}) => {
153 const t = transports.get(id);

Callers 1

createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected