UNPKG

mcp-think-tank

Version:

Structured thinking and knowledge management tool for Model Context Protocol

22 lines (21 loc) 646 B
/** * Set up FastMCP resources and templates * * @param server FastMCP server instance */ export function setupResources(server) { try { // Add basic resources server.addResource({ uri: "status://health", name: "Health Check", mimeType: "text/plain", load: async () => ({ text: "ok" }) }); console.error("[INFO] [resources] Resources and templates set up successfully"); } catch (error) { console.error(`[ERROR] [resources] Error setting up resources: ${error instanceof Error ? error.message : String(error)}`); throw error; } }