Skip to content

v0.1.10 — runtime-tunable safety limits

Choose a tag to compare

@cejor6 cejor6 released this 13 Jul 01:16
· 50 commits to main since this release
c597dd8

Runtime-tunable safety limits — tighten the risk envelope without a redeploy.

Highlights

  • feat(safety): the four per-order caps (MCP_MAX_ORDER_SIZE_USD, MCP_DAILY_LIMIT_USD, MCP_MAX_CONTRACTS_PER_ORDER, MCP_CASH_RESERVE_USD) can now be tightened at runtime via kalshi_set_safety_limits — a fast clamp-down with no redeploy. The env vars remain the hard ceiling: the three caps may only go down, the cash reserve only up, and a runtime actor can never loosen past the env ceiling (fail-closed). Optional Redis persistence (MCP_REDIS_URL) makes a clamp-down survive restarts; in-memory otherwise. The tool is gated by MCP_ALLOW_RUNTIME_LIMIT_TUNING (#27, #35).

Install

pipx install kalshi-mcp-server

Multi-arch image: ghcr.io/cejor6/kalshi-mcp-server:v0.1.10.

Full changelog: v0.1.9...v0.1.10