InkRelay

v0.1.1
io.github.GauravBR/inkrelay Checked 1 day ago Published 1 month ago

Print PDFs, ZPL labels and ESC/POS receipts on your printers and follow print jobs via InkRelay

Values you need

VariableWhat it is
INKRELAY_API_KEYrequired secret InkRelay API key from app.inkrelay.app/api-keys. ir_test_ keys print only to free virtual printers.
INKRELAY_FILE_ROOToptional Folder that filePath arguments must stay inside. Defaults to the working directory.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add inkrelay -e 'INKRELAY_API_KEY=<INKRELAY_API_KEY>' -- npx -y --package=@inkrelay/mcp@0.1.1 inkrelay-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "inkrelay": {
      "args": [
        "-y",
        "--package=@inkrelay/mcp@0.1.1",
        "inkrelay-mcp"
      ],
      "command": "npx",
      "env": {
        "INKRELAY_API_KEY": "<INKRELAY_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "inkrelay": {
      "args": [
        "-y",
        "--package=@inkrelay/mcp@0.1.1",
        "inkrelay-mcp"
      ],
      "command": "npx",
      "env": {
        "INKRELAY_API_KEY": "<INKRELAY_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "INKRELAY_API_KEY",
      "id": "inkrelay-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "inkrelay": {
      "args": [
        "-y",
        "--package=@inkrelay/mcp@0.1.1",
        "inkrelay-mcp"
      ],
      "command": "npx",
      "env": {
        "INKRELAY_API_KEY": "${input:inkrelay-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.inkrelay]
command = "npx"
args = ["-y", "--package=@inkrelay/mcp@0.1.1", "inkrelay-mcp"]
env = { "INKRELAY_API_KEY" = "<INKRELAY_API_KEY>" }

For AI agents

  1. Ask the user for: INKRELAY_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: whoami, list_computers, list_printers, get_printer, update_printer, print_pdf, print_raw, get_print_job, ….
  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