Skip to main content
Glama
arjshiv

Local Utilities MCP Server

by arjshiv

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
NameRequiredDescriptionDefault

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) }] }; } );
  • 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);
  • Closure state variable that stores the array of recorded thoughts used by the get_thoughts handler.
    let thoughts: Thought[] = [];

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/arjshiv/localutils-mcp-server'

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