Chopper

v0.1.10
io.github.wiiiktor/chopper Checked 4 days ago Published 17 days ago

Cuts the exact quotes that answer a question out of long text and reranks passages, in one pass.

Values you need

VariableWhat it is
CHOPPER_VARIANToptional Model size and language: base (default), small, base-pl (Polish), mmbert-base-pl, small-pl Default: base
CHOPPER_DEVICEoptional auto (default), cpu or cuda; a GPU is recommended Default: auto
CHOPPER_ALLOWED_DIRSoptional Directories chop_files may read (default: the home directory)
CHOPPER_SNAPoptional sentence (default: whole sentences), word (never cut inside a word) or none (raw) Default: sentence

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add chopper -- uvx --from chopper-rag==0.1.10 chopper-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "chopper": {
      "args": [
        "--from",
        "chopper-rag==0.1.10",
        "chopper-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "chopper": {
      "args": [
        "--from",
        "chopper-rag==0.1.10",
        "chopper-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "chopper": {
      "args": [
        "--from",
        "chopper-rag==0.1.10",
        "chopper-mcp"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.chopper]
command = "uvx"
args = ["--from", "chopper-rag==0.1.10", "chopper-mcp"]

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: chop_passages, rank_passages, chop_files.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json