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

Function configForResource

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

Source from the content-addressed store, hash-verified

165 : Promise.resolve(null);
166
167 const configForResource = async (resource: McpResource): Promise<LocalMcpServerConfig> => {
168 if (!handlerConfig.createConfigForResource) return { config: handlerConfig.defaultConfig };
169 return handlerConfig.createConfigForResource(resource);
170 };
171
172 const dispose = async (id: string, opts: { transport?: boolean; server?: boolean } = {}) => {
173 const t = transports.get(id);

Callers 1

createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected