import { FastMCP } from 'fastmcp';
import { z } from 'zod';
import path from 'path';
import os from 'os';
/**
* Register utility tools for the MCP server
*/
export function registerUtilityTools(server: FastMCP): void {
// 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);
}
});
}