saihm-mcp

v0.3.17
io.github.SAIHM-Admin/saihm-mcp Checked 2 days ago Published 1 month ago

MCP standards client for your own custodial SAIHM operator.

Values you need

VariableWhat it is
SAIHM_ENDPOINT_URLrequired Endpoint URL of the custodial SAIHM operator you run or subscribe to. Not the hosted service at https://saihm.net, which is non-custodial: use @saihm/mcp-server-pro for that.
SAIHM_AUTH_HEADERrequired secret Authorization header (typically 'Bearer <token>') issued by your operator.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add saihm-mcp -e 'SAIHM_AUTH_HEADER=<SAIHM_AUTH_HEADER>' -e 'SAIHM_ENDPOINT_URL=<SAIHM_ENDPOINT_URL>' -- npx -y --package=@saihm/mcp-server@0.3.17 saihm-mcp-server
Add to claude_desktop_config.json
{
  "mcpServers": {
    "saihm-mcp": {
      "args": [
        "-y",
        "--package=@saihm/mcp-server@0.3.17",
        "saihm-mcp-server"
      ],
      "command": "npx",
      "env": {
        "SAIHM_AUTH_HEADER": "<SAIHM_AUTH_HEADER>",
        "SAIHM_ENDPOINT_URL": "<SAIHM_ENDPOINT_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "saihm-mcp": {
      "args": [
        "-y",
        "--package=@saihm/mcp-server@0.3.17",
        "saihm-mcp-server"
      ],
      "command": "npx",
      "env": {
        "SAIHM_AUTH_HEADER": "<SAIHM_AUTH_HEADER>",
        "SAIHM_ENDPOINT_URL": "<SAIHM_ENDPOINT_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SAIHM_AUTH_HEADER",
      "id": "saihm-auth-header",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "SAIHM_ENDPOINT_URL",
      "id": "saihm-endpoint-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "saihm-mcp": {
      "args": [
        "-y",
        "--package=@saihm/mcp-server@0.3.17",
        "saihm-mcp-server"
      ],
      "command": "npx",
      "env": {
        "SAIHM_AUTH_HEADER": "${input:saihm-auth-header}",
        "SAIHM_ENDPOINT_URL": "${input:saihm-endpoint-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.saihm-mcp]
command = "npx"
args = ["-y", "--package=@saihm/mcp-server@0.3.17", "saihm-mcp-server"]
env = { "SAIHM_AUTH_HEADER" = "<SAIHM_AUTH_HEADER>", "SAIHM_ENDPOINT_URL" = "<SAIHM_ENDPOINT_URL>" }

For AI agents

  1. Ask the user for: SAIHM_ENDPOINT_URL, SAIHM_AUTH_HEADER. 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: saihm_remember, saihm_recall, saihm_forget, saihm_status, saihm_share, saihm_revoke_share, saihm_governance_propose, saihm_governance_vote.
  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