Skip to main content
Glama
tools.ts746 B
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); } }); }

Implementation Reference

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/flight505/mcp-think-tank'

If you have feedback or need assistance with the MCP directory API, please join our Discord server