Open Agent Memory

v0.0.1
io.github.rocke2020/oam Checked 23 hours ago Published 20 days ago

Self-hosted OAM memory with cited recall over your existing deployment

Values you need

VariableWhat it is
OAM_BASE_URLrequired URL of your existing OAM deployment, for example http://127.0.0.1:17333
OAM_USER_IDrequired Your authorized OAM user ID
OAM_USER_API_KEYrequired secret User-scoped API key for your OAM deployment

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add oam -e 'OAM_BASE_URL=<OAM_BASE_URL>' -e 'OAM_USER_API_KEY=<OAM_USER_API_KEY>' -e 'OAM_USER_ID=<OAM_USER_ID>' -- npx -y @rocke-dong/oam-mcp@0.0.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "oam": {
      "args": [
        "-y",
        "@rocke-dong/oam-mcp@0.0.1"
      ],
      "command": "npx",
      "env": {
        "OAM_BASE_URL": "<OAM_BASE_URL>",
        "OAM_USER_API_KEY": "<OAM_USER_API_KEY>",
        "OAM_USER_ID": "<OAM_USER_ID>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "oam": {
      "args": [
        "-y",
        "@rocke-dong/oam-mcp@0.0.1"
      ],
      "command": "npx",
      "env": {
        "OAM_BASE_URL": "<OAM_BASE_URL>",
        "OAM_USER_API_KEY": "<OAM_USER_API_KEY>",
        "OAM_USER_ID": "<OAM_USER_ID>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "OAM_BASE_URL",
      "id": "oam-base-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "OAM_USER_API_KEY",
      "id": "oam-user-api-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "OAM_USER_ID",
      "id": "oam-user-id",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "oam": {
      "args": [
        "-y",
        "@rocke-dong/oam-mcp@0.0.1"
      ],
      "command": "npx",
      "env": {
        "OAM_BASE_URL": "${input:oam-base-url}",
        "OAM_USER_API_KEY": "${input:oam-user-api-key}",
        "OAM_USER_ID": "${input:oam-user-id}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.oam]
command = "npx"
args = ["-y", "@rocke-dong/oam-mcp@0.0.1"]
env = { "OAM_BASE_URL" = "<OAM_BASE_URL>", "OAM_USER_API_KEY" = "<OAM_USER_API_KEY>", "OAM_USER_ID" = "<OAM_USER_ID>" }

For AI agents

  1. Ask the user for: OAM_BASE_URL, OAM_USER_ID, OAM_USER_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: memory_recall, memory_add, memory_add_document, memory_operation, memory_profile, memory_remove.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json