Skip to main content
Glama
SquadSentinel AI

SquadSentinel AI

SquadSentinel AI

Grounded Solana Treasury & Squads v4 Multisig Policy Agent + Zero-Dependency stdio MCP Server powered live by CoinGecko API, GeckoTerminal Solana Pools, and Solana Mainnet JSON-RPC.

Built fresh in December 2026 for the CoinGecko × Superteam Long Tail Hackathon (AI Agents Track).

Why Grounded Treasury Agents Matter

Generic LLM bots hallucinate token balances, invent runway figures, and size single swaps larger than pool liquidity allows. SquadSentinel AI enforces deterministic tool grounding:

  1. inspect_solana_treasury (src/solana.mjs) — Queries live api.mainnet-beta.solana.com (getEpochInfo, getBalance, getTokenAccountsByOwner), aggregating duplicate SPL token accounts sharing the same mint and anchoring the audit to the exact Solana Mainnet Epoch & Slot.

  2. fetch_batched_token_prices (src/coingecko.mjs) — Prices all held SPL mints in one batched request via CoinGecko /simple/token_price/solana (with optional user-provided Pro/Analyst key header x-cg-pro-api-key) or GeckoTerminal fallback, with HTTP 429 exponential backoff.

  3. check_treasury_policy (src/policy.mjs) — Evaluates runway months, stablecoin floor %, single-token concentration %, and optional solShockPct drawdown stress tests.

  4. size_rebalance_tranches & draft_squads_proposal (src/agent.mjs) — Queries deepest Solana DEX pool reserves (/networks/solana/tokens/{mint}/pools), splits oversized swaps into TWAP tranches capped at <= maxPoolImpactPct% of pool TVL into USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v), outputs a squads-v4-rebalance-proposal/1.0 JSON payload + Markdown governance memo, and binds every number to [E1..En] citations.

Related MCP server: merkl-mcp

CLI & Verification

# Run automated test suite (policy math, TWAP splits, citations, Squads JSON, stdio MCP, live RPC + CoinGecko)
npm test

# Audit live Solana Mainnet preset vault & print grounded governance memo
node cli/squadsentinel.mjs --preset startup_runway_12m --format memo

# Export raw Squads v4 rebalance proposal JSON with -25% SOL stress test
node cli/squadsentinel.mjs --shock -25 --format squads

# Run end-to-end stdio MCP server smoke verification
node cli/squadsentinel.mjs --mcp-smoke

Model Context Protocol (mcp/server.mjs) Usage

Add SquadSentinel AI directly to Claude Desktop, Cursor, or any MCP client supporting stdio:

{
  "mcpServers": {
    "squadsentinel": {
      "command": "node",
      "args": ["mcp/server.mjs"]
    }
  }
}

Exposed MCP Tools

  • inspect_solana_treasury

  • check_treasury_policy

  • size_rebalance_tranches

  • draft_squads_proposal

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP-compatible AI clients to access live crypto market data and AI-driven quantitative analysis, with structured outputs and full observability.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to propose policy-gated treasury payments and swaps, check pending human approvals, read transaction receipts, and locally verify their integrity through MCP tools.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Solana AI agents and treasury operators to run pre-trade swap safety checks, citation-grounded token due diligence, multisig treasury policy audits, and new-pool screening through MCP tools backed by CoinGecko data and Solana RPC. It returns deterministic ALLOW/WARN/BLOCK decisions and evidence-grounded reports with SHA-256 receipts.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents and MCP clients to screen Solana long-tail trades through deterministic fail-closed policy checks, block unsafe or prompt-injected swaps, compute safe trade limits, run red-team probes, and commit and verify decisions in a SHA-256 hash-chained audit ledger using CoinGecko and Solana RPC data.
      MIT