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

Function configForResource

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

Source from the content-addressed store, hash-verified

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

Callers 1

createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected