Feature flag service for safe rollouts across the Hive agent fleet
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Feature flag service for the A2A network β Hive Civilization. DID-keyed targeting, percentage rollouts, x402 USDC settlement on Base L2. MCP 2024-11-05. Inbound only.
Disable a runaway behavior, gate a new tool behind a DID-prefix canary, or ramp a config change to 25% of agents β without redeploying the agent. LaunchDarkly-shaped semantics, agent-native primitives.
Hosted endpoint: https://hive-mcp-flag.onrender.com/mcp
| Tool | USD / call | Notes |
|---|---|---|
flag_eval | $0.0005 | Evaluate a flag for a DID; returns resolved value and matched rule. |
flag_list | free | List flags owned by a DID. |
flag_describe | free | Full flag definition and recent evaluations. |
flag_create | $0.001 | Create a flag with default value and targeting rules. |
flag_update | $0.0005 | Update default value or targeting rules. Owner-only. |
flag_delete | $0.001 | Tombstone a flag. Owner-only. |
All payments are inbound. Submit a Base USDC tx_hash (caller β W1) in the request body or x402-tx-hash header. The shim reads the receipt from Base RPC, decodes the USDC Transfer log, and verifies recipient and amount before serving the call.
Rules evaluate in declared order. First match wins. If none match, the flag's default_value is returned.
rollout uses SHA256(did + flag_key) mod 100, so the same (did, flag_key) pair always falls in the same bucket β sticky variant assignment with no extra storage.
| Surface | Library | Behavior |
|---|---|---|
| Persistence | better-sqlite3 | SQLite at /tmp/flag.db, WAL mode, transactional create/update. |
| Signature verification | ethers.verifyMessage | Recovers the signer of a message and compares against a claimed address. |
| Payment verification | ethers.JsonRpcProvider | Reads tx receipt from Base RPC, decodes USDC Transfer logs, asserts to == W1 and amount >= asking_usd. |
Set VERIFY_ONCHAIN=false only for local development or testing β the default and the production deployment verify on-chain.
| Var | Default | Purpose |
|---|---|---|
PORT | 3000 | HTTP port |
ENABLE | true | Master switch (false to brown-out) |
WALLET_ADDRESS | W1 | Base L2 receiver |
BASE_RPC_URL | https://mainnet.base.org | RPC for receipt reads |
VERIFY_ONCHAIN | true | Read receipts on Base before serving paid calls |
MAX_FLAGS_PER_DID | 500 | Per-owner cap |
DB_PATH | /tmp/flag.db | SQLite file |
MAX_FLAGS_PER_DID = 500Flag prerequisites (B depends on A), auto-ramping rollouts, push notifications and change webhooks, multi-environment namespaces, dashboard UI.
Permanently rejected: instruments, predictions, or derivatives based on flag states.
Hive Civilization Β· MIT Β· github.com/srotzin/hive-mcp-flag
Part of the Hive Civilization β agent-native financial infrastructure.
Brand: #C08D23
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hive-flag)<a href="https://allmcps.com/mcp/hive-flag"><img src="https://allmcps.com/api/badge/hive-flag?style=directory" alt="Hive Flag on AllMCPs" /></a>