Hybrid Recursive Ladder

v0.0.8
io.github.MagicSquarekey/hybrid-recursive-ladder Checked 2 days ago Published 20 days ago

Aggregate long time-series ranges with a few source requests instead of one per bucket.

Values you need

VariableWhat it is
HL_SOURCEoptional Source backend: demo (default), thingsboard, or postgres.
HL_TB_URLoptional ThingsBoard base URL, for example http://localhost:9090.
HL_TB_USERNAMEoptional ThingsBoard username; pair with HL_TB_PASSWORD.
HL_TB_PASSWORDoptional secret ThingsBoard password.
HL_TB_TOKENoptional secret ThingsBoard access token, used instead of username and password.
HL_PG_DSNoptional secret PostgreSQL DSN for the local materialized store.
HL_TIMEZONEoptional IANA timezone for calendar boundaries; default Asia/Shanghai.
HL_FINESToptional Finest ladder level: minute, hour, day, or month.

PyPI (uvx) discovery passed

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

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

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: ladder_meta, ladder_decompose, ladder_sum, ladder_verify, ladder_calc.
  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