mcp-think-tank
Version:
Structured thinking and knowledge management tool for Model Context Protocol
22 lines (21 loc) • 749 B
JavaScript
import { z } from 'zod';
import path from 'path';
import os from 'os';
/**
* Register utility tools for the MCP server
*/
export function registerUtilityTools(server) {
// Tool to display the memory path
server.addTool({
name: 'show_memory_path',
description: 'Return absolute path of the active knowledge-graph file.',
parameters: z.object({
random_string: z.string().describe("Dummy parameter for no-parameter tools").optional()
}),
execute: async (_args, { log }) => {
const memoryPath = process.env.MEMORY_PATH || path.join(os.homedir(), '.mcp-think-tank/memory.jsonl');
// Removed debug log
return JSON.stringify(memoryPath);
}
});
}