superlocalmemory icon indicating copy to clipboard operation
superlocalmemory copied to clipboard

superlocalmemory pi.dev integration

Open MelleKoning opened this issue 5 months ago • 1 comments

This might be useful as enhanced documentation, for integrating superlocalmemory with pi.dev. It took me some time to understand how to install it with the terminal code tool.

Tried to integrate this as model-context-protocol (mcp) with "pi.dev¨, the terminal code agent.

after installing superlocalmemory, had to configure the mcp in the local home folder in an mcp.json file, located at ~/.pi/agent/mcp.json

{
  "mcpServers": {
    "superlocalmemory": {
      "command": "slm",
      "args": [
        "mcp"
      ],
      "directTools": true
    }
  }
}

and configuring the mcp, that did not yet work out of the box, but after typing

/mcp

then enabling with "space" and a "ctrl-s" the 40 tools of superlocalmemory got added.

Image

then finally after asking "can you store your knowledge to memory?" it reveals it at least knows about the tool:

Image

Hope that this will be useful for others who try to integrate superlocalmemory with the pi.dev coding agent.

MelleKoning avatar Jun 06 '26 18:06 MelleKoning

Thanks for the detailed write-up! The mcp.json config you found works perfectly and is now the recommended approach for pi.dev.

Confirmed working config (~/.pi/agent/mcp.json):

{
  "mcpServers": {
    "superlocalmemory": {
      "command": "slm",
      "args": ["mcp"],
      "directTools": true
    }
  }
}

The /mcp → enable → Ctrl-S sequence you described is the standard pi.dev flow for activating MCP servers — nothing SLM-specific there.

We'll add a pi.dev integration section to the official documentation so future users don't have to rediscover this. If you run into any issues, feel free to open a new issue. Thanks for contributing! 🙏

varun369 avatar Jun 06 '26 21:06 varun369