retrievr

Guide

Add document search to pi, Hermes and Kiro

After this, the harness can answer from your own documents and quote the page it read. The install is the same for all three; what differs is the entry — a command for pi, YAML for Hermes, and flags for Kiro.

1. Give the harness the tool

Paste this into a session and let it work:

Fetch https://retrievr.io/install and follow it.

The sheet gets a key without printing it, writes it to ~/.config/retrievr/credentials, and downloads the MCP server to ~/.config/retrievr/mcp.mjs. Then pick your harness below.

2. pi

pi has a CLI for this, so the shell expands the path for you:

pi mcp add retrievr -- node ~/.config/retrievr/mcp.mjs

That writes the entry into ~/.pi/agent/mcp.json. If you would rather add it yourself, this is what lands in the file — note that the path is absolute here, because a JSON argument reaches node without a shell and nothing expands a tilde:

{
  "mcpServers": {
    "retrievr": {
      "command": "node",
      "args": ["/home/you/.config/retrievr/mcp.mjs"]
    }
  }
}

The CLI form and the file form disagree about ~ for a real reason: the command is a shell line and the file is not. Both are correct where they are written, and copying either into the other place is the mistake.

If it does not appear: if you used pi mcp add, the path was expanded by your shell and is already absolute — open ~/.pi/agent/mcp.json and confirm it. A hand-copied CLI form keeps the tilde, and node then looks for a directory literally named ~. The other cause is the session: pi reads its servers when a session starts, so the one you have open predates the entry.

3. Hermes

Hermes reads YAML, so the entry is a block rather than a command — in ~/.hermes/config.yaml:

mcp_servers:
  retrievr:
    command: "node"
    args: ["/home/you/.config/retrievr/mcp.mjs"]

Whitespace is part of the instruction here: two spaces per level, no tabs, and mcp_servers at the top level.

If it does not appear: a YAML file that fails to parse is ignored quietly, so the first check is that the block is real YAML rather than YAML-shaped. The second is the path — an array of arguments reaches the process without a shell, so ~ is a literal character. And if you already had an mcp_servers block, the new one replaces it rather than merging: the other servers go missing at the same moment, which is the clue.

4. Kiro

Kiro has a CLI, and it takes the command and its arguments as separate flags — --args takes the server path, not a node line:

kiro-cli mcp add --name retrievr --scope global \
  --command node --args /home/you/.config/retrievr/mcp.mjs

--scope global makes the tool available in every workspace; leave it out to keep it to this one. The path is absolute because the arguments reach node without a shell, so ~ is not expanded — echo $HOME prints the prefix to use. That writes into ~/.kiro/settings/mcp.json.

If it does not appear: scope is the usual cause. An entry added without --scope global belongs to the workspace it was added in, so a session in another folder has no retrievr and nothing is broken. And if the flags were given as one string — --args "node /path/mcp.mjs" — Kiro sees a single argument that is two words, and the server exits on start.

5. Check it loaded

Open a new session and ask for the tool list. retrievr should be there with five: retrievr_search, retrievr_documents, retrievr_upload, retrievr_upload_status and retrievr_delete_document.

6. Ask it something

Add a document from your library — the first five are free — then ask:

In the agreement, what does it say about renewal?
Which of my documents mentions the invoice?

Passages come back with the page, the character range and the licence, so the answer can be checked rather than trusted. The service is always ready: a query is answered in well under a second.

7. What it costs

$0.01 per query, charged when it is accepted; uploading and indexing are free. The full price list, or the guides for Claude Code and Cursor.