gibwork-sentinel-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Gibwork MCP Sentinel (gibwork-mcp-sentinel)
Autonomous AI Agent & Maintainer Pre-Flight Guardrail, On-Chain Solana Vault Verifier, and Risk-Adjusted EV Router for Gibwork
Built for the Gibwork Developer Hackathon Bounty (1052f22d-3f87-4b1d-b0d7-71a60679e7fa) using@gibwork/sdk(v0.2.0), compatible with@gibwork/cli(v0.2.4) &@gibwork/mcp(v0.3.1), and anchored directly to Solana Mainnet Escrow ProgramBzYr7tV2ycbQU5bXc5LGpVTfQsbs7jUcrd1DhW4ma65y.
1. Executive Summary & Use Case (Non-Web-App Developer Tooling)
What problem does gibwork-mcp-sentinel solve?
As AI coding agents (Claude Code, Codex, Cursor) and autonomous bounty hunters increasingly interact with Gibwork via @gibwork/sdk, @gibwork/cli, and @gibwork/mcp, they face four critical operational blind spots when operating outside a browser:
Discovery Pool vs. On-Chain Vault Solvency Drift:
As documented in@gibwork/sdk,tasks.listAvailablereportsasset.amountas "the original reward pool, not remaining funds", while public indexer feeds (api.gib.work/explore) can lag behind on-chain payouts. For example, on Solana Mainnet (2026-10-21), task48b29af8-6516-43cd-8407-0247497c0f9alists a150 USDCpool via SDK discovery, but its on-chain SPL Vault (6YfKgkQkmyBhj1XfFDko4FKMmbRKYBHkPpYqeJFPgvhc) holds only60 USDCafter 90 approved payouts, with 189 pending submissions competing for the last 60 slots (315%queue saturation). Similarly, taskd321ae8f-34f0-4c2f-b6ef-af7773d096bareports400 CREDITSonapi.gib.work/explore, while its on-chain Token-2022 vault (7TAPbWNikpJbQFzpzkwWfyRaWtKpyGi9kVPbGfk3KQtc) holds200 CREDITSof a non-liquid token with a permanent delegate.Paid Submission Fee (
0.15 USDC) & Eligibility Gate Waste:
Every Gibwork work submission costs a0.15 USDCparticipation fee (submissions.prepareCreate/submitCreate). Agents that submit blindly without checking Discord role requirements (requiredDiscordRoleIds), X/Twitter verification (allowOnlyVerifiedTwitterAccountSubmissions), or queue saturation waste both compute and USDC participation fees.Silent Deliverable Link Stripping under
@gibwork/sdkHTML Sanitization:@gibwork/sdknormalizes submission content throughsanitize-html(1–50,000Unicode chars, strict<a href="https://...">transformation rules). Raw Markdown links[repo](https://...)or malformed relative links submitted by CLI scripts render as unclickable text or get stripped into<span>elements during reviewer inspection.Multi-Window Agent Swarm Collisions & Ambiguous Submit Recovery:
When developers run multiple AI agent terminals concurrently, agents can accidentally claim the same bounty twice or double-pay the0.15 USDCfee if a network timeout triggersGibworkAmbiguousSubmitError.
How gibwork-mcp-sentinel solves it (Pure Terminal CLI + MCP Server, Zero Web UI):
Cross-Layer Vault & EV Radar (
gibwork-sentinel radar/sentinel_scan_ev): Queries@gibwork/sdk(tasks.listAvailable+tasks.get),api.gib.work/explore, and Solana Mainnet (BzYr7tV2ycbQU5bXc5LGpVTfQsbs7jUcrd1DhW4ma65y99-byte Escrow State PDA +["vault", escrowState]SPL/Token-2022 Vault PDA) to rank every open bounty by Net Expected Value (EV), Remaining Payout Slots, and Queue Coverage.Deep Forensic Escrow Audit (
gibwork-sentinel audit <taskId>/sentinel_audit_bounty): Decodes the 99-byte Anchor Escrow State account on Solana Mainnet, verifies PDA bump seeds, fetches live vault transaction history, checks Discord/Twitter gates, and verifies worker wallet SOL/USDC readiness.Pre-Flight Deliverable Contract & HTML Sanitization Guard (
gibwork-sentinel preflight/sentinel_preflight_deliverable): Converts Markdown deliverables into@gibwork/sdk-compliant HTML, verifies all 6 mandatory submission gates, and generates a deterministic RFC-4122 UUIDv4idempotencyKey(sha256(taskId + walletAddress + htmlPayload)) plus a@gibwork/cli-compatiblework.jsonpayload.Multi-Window POSIX Atomic Lock & Idempotent Recovery Ledger (
gibwork-sentinel claim/sentinel_claim_lock/sentinel_prepare_submission): Coordinates concurrent terminal workers via POSIXmkdiratomic locks and persists pre-prepare recovery records compatible with@gibwork/sdk'ssubmissions.prepareCreate/getIntentworkflow.
Related MCP server: Escrow Sentinel
2. Demo Video, Screenshots & Exported Artifacts
Demo Video (Screen Recording of Setup -> Execution -> Output)
MP4 Demo Video URL:
docs/screenshots/demo-workflow.mp4
Terminal Screenshots (Live Solana Mainnet + @gibwork/sdk v0.2.0 Execution)
Screenshot 1: gibwork-sentinel radar — Cross-Layer Solana Mainnet Vault & Risk-Adjusted EV Router

Screenshot 2: gibwork-sentinel audit 1052f22d-3f87-4b1d-b0d7-71a60679e7fa — On-Chain Escrow & Vault Forensics

Screenshot 3: gibwork-sentinel preflight & Automated Protocol Test Suite (npm test)

Exported Deliverable Artifacts (in ./artifacts/)
Artifact File | Description |
Full JSON output of | |
Deep on-chain & | |
Pre-flight contract check, link verification, and deterministic UUIDv4 | |
Ready-to-submit | |
Exported Markdown executive audit report generated by |
3. Gibwork Toolset Integration (@gibwork/sdk, @gibwork/mcp, @gibwork/cli)
Gibwork Component | Version | How |
|
| Uses |
|
| Generates |
|
| Ships |
Solana Mainnet Escrow Program |
| Decodes the 99-byte Anchor Escrow State PDA ( |
4. Setup & Usage Instructions
Prerequisites
Node.js:
>= 22.0.0(required by@gibwork/sdk)Solana Wallet Keypair (Optional for read-only discovery/audit; required for wallet-bound operations): Supports standard Solana CLI JSON byte arrays (
[1,2,3,...]), base58 private keys, or PKCS#8 Ed25519 JSON keyfiles. If omitted during read-only commands (radar,audit,preflight), Sentinel automatically generates an ephemeral Ed25519 keypair to authenticate discovery requests againsthttps://sdk.gib.work.
Installation
git clone https://github.com/195440/gibwork-mcp-sentinel.git
cd gibwork-mcp-sentinel
npm installEnvironment Variables
Variable | Required | Description |
| Optional (Read) / Required (Write) | Path to your Solana keypair JSON file (e.g. |
| Optional | Alternative to |
| Optional |
|
| Optional | Custom Solana Mainnet RPC URL (defaults to |
Running the CLI Commands
1. Scan & Rank All Open Gibwork Bounties by On-Chain Vault Solvency & Net EV
node ./bin/gibwork-sentinel.mjs radar
# Or output structured JSON:
node ./bin/gibwork-sentinel.mjs radar --json --output ./artifacts/live-mainnet-radar.json2. Deep Forensic Audit of a Single Bounty (Escrow PDA + Vault PDA + Queue + Wallet Readiness)
node ./bin/gibwork-sentinel.mjs audit 1052f22d-3f87-4b1d-b0d7-71a60679e7fa \
--wallet JE4JnH1Y8tYcBhhRKcTL6iqFW6xyhcsmAPsWNdapUWpg3. Validate Deliverable Contract & Emit @gibwork/cli-Compatible work.json
node ./bin/gibwork-sentinel.mjs preflight 1052f22d-3f87-4b1d-b0d7-71a60679e7fa \
--file ./README.md \
--wallet JE4JnH1Y8tYcBhhRKcTL6iqFW6xyhcsmAPsWNdapUWpg \
--work-out ./artifacts/work-submission-payload.json4. Acquire or Release Multi-Window Atomic Claim Lock
node ./bin/gibwork-sentinel.mjs claim 1052f22d-3f87-4b1d-b0d7-71a60679e7fa --worker worker-gibwork
node ./bin/gibwork-sentinel.mjs claim 1052f22d-3f87-4b1d-b0d7-71a60679e7fa --release5. Run the Automated Unit & Protocol Test Suite
npm test6. Regenerate Live Mainnet Artifacts
npm run demo5. Connecting gibwork-sentinel-mcp to Claude Code, Codex, or Cursor
Add gibwork-sentinel-mcp to your MCP client configuration (~/.cursor/mcp.json or .claude.json):
{
"mcpServers": {
"gibwork-sentinel": {
"command": "node",
"args": ["/absolute/path/to/gibwork-mcp-sentinel/bin/gibwork-sentinel-mcp.mjs"],
"env": {
"GIBWORK_ENVIRONMENT": "production",
"GIBWORK_KEYPAIR_PATH": "/absolute/path/to/solana-keypair.json"
}
}
}
}Exposed MCP Tools
MCP Tool Name | Purpose |
| Cross-layer scan ( |
| Deep forensic audit of one bounty's 99-byte Escrow State PDA, Vault balance, transactions, and gates |
| Validates Markdown/HTML deliverable against |
| Multi-window POSIX-atomic task lock ( |
| Persists recovery state and prepares (or dry-runs) a |
| Reconciles an existing submission intent via local ledger and |
6. Sample Output (Real Solana Mainnet Run — 2026-10-21)
$ gibwork-sentinel audit 1052f22d-3f87-4b1d-b0d7-71a60679e7fa --wallet JE4JnH1Y8tYcBhhRKcTL6iqFW6xyhcsmAPsWNdapUWpg
==========================================================================================================
GIBWORK SENTINEL FORENSIC AUDIT — Gibwork Developer Hackathon Bounty
==========================================================================================================
Task UUID : 1052f22d-3f87-4b1d-b0d7-71a60679e7fa
Gibwork URL : https://gib.work/bounties/1052f22d-3f87-4b1d-b0d7-71a60679e7fa
Creator : @gibwork (ID: 70b7628d-cf0b-4f5b-b8df-f7f687d3b057, Rating: 100)
Created / Deadline : 2026-09-08T18:26:43.726Z -> 2026-10-30T04:00:00.000Z
Sentinel Verdict : GATED_HIGH_EV_CLAIM (Score: 88/100, Net EV: +51.77 USDC)
----------------------------------------------------------------------------------------------------------
[1] ON-CHAIN SOLANA MAINNET ESCROW & VAULT VERIFICATION
Program ID : BzYr7tV2ycbQU5bXc5LGpVTfQsbs7jUcrd1DhW4ma65y
Escrow State PDA : CPoj222pQE9TTqd8DuXC4Q57dGKgRbXXX9EpTDGhmKfz (bump=254, 99 bytes)
SPL Vault PDA : 9Nw5KFDj2vZsBJnQiYpKxpr9K2P1UkJGooLX9MtPWaEd (bump=255, verified=true)
Maker Authority : CdJBwL9X16QaSJgjVayX3xvGwEmYenrzSE4UqywX1BN
Token Mint : EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v (HIGH_TRUST_SPL_USDC)
Listed Pool : 1000 USDC
Live Vault Bal : 1000 USDC (1000000000 base units)
Pool Drift : 0 USDC disbursed | Explore API Drift: 0 USDC
----------------------------------------------------------------------------------------------------------
[2] QUEUE PRESSURE, PAYOUT CAPACITY & GATE ANALYSIS
Min Submission : 50 USDC
Remaining Slots : 20 minimum payouts supported by live vault
Submissions : 12 pending | 0 approved | 0 rejected
Queue Coverage : 1.667x slots/pending (60% saturation)
Discord Gate : Guild=1004566368475164683 | Roles=["1546941199859060768"]
Identity Gates : VerifiedOnly=false | TwitterVerifiedOnly=false
----------------------------------------------------------------------------------------------------------
[3] WORKER WALLET READINESS & RECENT VAULT TRANSACTIONS
Worker Wallet : JE4JnH1Y8tYcBhhRKcTL6iqFW6xyhcsmAPsWNdapUWpg (file:~/.config/gibwork/solana-wallet.json)
Wallet Balances : 0 SOL | 0 USDC (0.15 USDC fee ready: false)
Vault Tx : kCeLQApVyWGuS61fNXSTde5C8Tow834aM7FE8vaStgXM5CwYodFvZRGXqRwBec4ybv8eUvPG1pykjpsVNvae8bV (Slot 445406190, 2026-09-08T18:26:43.000Z, CONFIRMED)
==========================================================================================================For full technical details on the 99-byte Escrow State PDA layout, EV scoring mathematics, and idempotent recovery state machine, see docs/architecture.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Task coordination for AI agents. Exclusive locks, shared files, handoffs, per-agent spending limits.
Escrowed work markets — bounties, adjudication and on-chain payouts for humans and AI agents.
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
Sell unused AI subscription capacity as finished work. SOL/USDC escrow on Solana, 0% fees.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, retrieve, create, triage codebases, scaffold solutions, and validate deliverables for Gibwork bounties on Solana.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to discover Gibwork bounties, verify their Solana escrow accounts on-chain, rank opportunities by value, competition and deadline, diff captures over time, and export Markdown/CSV/JSON reports through four read-only MCP tools requiring no wallet or API key.MIT
- AlicenseAqualityNot gradedmaintenanceEnables AI agents and terminal users to discover Solana Gibwork bounties, inspect deliverable requirements, verify on-chain escrow and token mints, and scaffold local development workspaces.4MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP stdio server that lets agents inspect Gibwork bounties for hidden submission blockers such as Discord roles, credit costs, deadlines, verification rules, and crowding, then audit a local repository against the bounty's "What to Submit" checklist with fix-lists and Go/Conditional/Not-Ready/No-Go guidance.MIT