@the-situation/mcp
v0.11.3
Published
MCP servers for The Situation indexer, on-chain reads, and guarded trade execution
Downloads
356
Readme
@the-situation/mcp
MCP servers for The Situation stack.
Binaries
situation-indexer-mcp- Read-only indexer tools (
indexer_*). - Uses
SITUATION_INDEXER_URL(defaulthttps://situation-indexer.fly.dev).
- Read-only indexer tools (
situation-market-read-mcp- Read-only on-chain market tools (
market_read_*) via@the-situation/sdk. - Uses
SITUATION_NODE_URL(defaulthttps://api.cartridge.gg/x/starknet/sepolia).
- Read-only on-chain market tools (
situation-trade-mcp- Trade planning and guarded execution tools (
trade_*). - Writes are gated and disabled by default.
- Trade planning and guarded execution tools (
All servers return compact summaries and persist full payloads in sqlite cache.
Cache
All tools cache full payloads in sqlite and return cache metadata in responses.
- Env:
SITUATION_MCP_CACHE_DB(default/data/workspace/state/superforecast/mcp_cache.db, falls back to./.state/superforecast/mcp_cache.dbwhen/datais not writable) - Per-server cache tools:
indexer_cache_list,indexer_cache_getmarket_read_cache_list,market_read_cache_gettrade_cache_list,trade_cache_get
Trade Policy Gates
Trade execution (trade_execute_guarded) requires all gates to pass:
SITUATION_MCP_ENABLE_TRADING=true- Matching
confirmationPhraseargument (default phrase fromSITUATION_MCP_TRADE_CONFIRM_PHRASE, defaultEXECUTE_TRADE) - If configured, market must be in
SITUATION_MCP_TRADE_ALLOWED_MARKETS - If configured, projected collateral must be <=
SITUATION_MCP_MAX_COLLATERAL SITUATION_ACCOUNT_ADDRESSandSITUATION_PRIVATE_KEYmust be present- Confirmation mismatch errors do not echo the configured phrase value
Local Run
cd the-situation-sdk
bun run --filter '@the-situation/mcp' build
# Run one server on stdio
bun run --filter '@the-situation/mcp' start:indexer
# Or run the others
bun run --filter '@the-situation/mcp' start:market-read
bun run --filter '@the-situation/mcp' start:trade