get_thoughts
Retrieve all recorded thoughts from the Local Utilities MCP Server to access stored mental notes and ideas.
Instructions
Retrieve all recorded thoughts
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/think.ts:84-97 (registration)Registers the get_thoughts MCP tool. The inline handler retrieves a copy of all recorded thoughts from the closure state and returns them as a formatted JSON string in a text content block.// Register get_thoughts command server.tool( "get_thoughts", "Retrieve all recorded thoughts", async () => { const currentThoughts = [...thoughts]; return { content: [{ type: "text", text: JSON.stringify(currentThoughts, null, 2) }] }; } );
- src/mcp/think.ts:5-8 (schema)TypeScript interface defining the structure of each thought object returned by the get_thoughts tool.export interface Thought { timestamp: string; content: string; }
- src/index.ts:25-25 (registration)Invokes the registerThinkTool function on the MCP server, which includes the registration of the get_thoughts tool.registerThinkTool(server);
- src/mcp/think.ts:64-64 (helper)Closure state variable that stores the array of recorded thoughts used by the get_thoughts handler.let thoughts: Thought[] = [];