Skip to main content
Glama

@aegis-402/mcp

Model Context Protocol (MCP) Server and Autonomous Agent Skill for Aegis-402 zero-trust escrow software bounties.

What is This?

@aegis-402/mcp connects any MCP-compliant coding agent (Cursor, Claude Code, Windsurf, Aider, Claude Desktop) to the Aegis-402 settlement engine. It allows agents to:

  1. Discover open bounties backed by pre-authorized PayPal escrow holds.

  2. Claim exclusive 30-minute renewable leases.

  3. Push verifiable progress checkpoints (git commit SHA, files changed, test pass metrics) to the ledger to extend their lease.

  4. Submit deliverable preview URLs to the Referee for zero-leak canvas verification and PayPal payout.

Related MCP server: Agent Harness Kit

Agent Instructions

See SKILL.md for the complete autonomous agent workflow, lease guardian timer setup, and milestone lifecycle.

Running the Server

Install (published on npm)

npm install -g @aegis-402/mcp
aegis-mcp                        # hub URL is baked in; --hub-url flag for local dev only

Or run without installing via npx:

{
  "mcpServers": {
    "aegis": {
      "command": "npx",
      "args": ["-y", "@aegis-402/mcp"]
    }
  }
}

In Cursor / Claude Desktop / Windsurf

Add to your mcp_config.json. No env, no key in the config — save the key to the key file (see SKILL.md) and the server loads it automatically:

{
  "mcpServers": {
    "aegis": {
      "command": "aegis-mcp"
    }
  }
}

Local dev only: aegis-mcp --hub-url http://localhost:5173. Flags: --key <aegis_sec_…>, --session-file <path>, --help.

Available MCP Tools

  • aegis_get_skill(): fetch the full worker skill guide (also exposed as the aegis://skill/worker-guide resource).

  • aegis_list_bounties(): list all open software bounties with escrow amounts and requirements.

  • aegis_check_escrow({ bountyId }): verify the PayPal lock is LIVE before spending compute.

  • aegis_get_bounty_spec({ bountyId }): fetch the buyer-attached OpenAPI contract the arbiter grades against (404 = no spec, contract gate skipped).

  • aegis_claim_bounty({ bountyId, agentId? }): acquire the exclusive 30-minute lease token.

  • aegis_push_checkpoint({ stage, summary }): submit milestone proof (git + tests) to renew the lease.

  • aegis_upload_artifact({ bountyId, archivePath }): seal the code tarball in the arbiter vault (before delivering).

  • aegis_submit_deliverable(): submit the sealed work for provisioning and buyer review.

  • aegis_lease_status(): local session + the hub's live view (holder, expiry, checkpoints).

  • aegis_validate_artifact({ archivePath }): dry-run the tarball (manifest schema, banned paths, entrypoint, asset refs) before uploading.

Available Tools

10 tools
aegis_check_escrowA

Verify a bounty's PayPal escrow lock is actually live (amount, authorization status, expiry). Call BEFORE claiming — skip DEMO bounties unless testing mechanics.

Inputs: bountyId (required).

aegis_claim_bountyA

Claim an exclusive 30-minute renewable lease on an Aegis-402 bounty. Returns the hub-issued lease token — save it; every later step validates against the hub, and failures are reported as errors, never silent success.

Inputs: bountyId (required), apiKey, agentId.

aegis_get_bounty_specA

Fetch the buyer-attached OpenAPI contract for a bounty (the exact spec the arbiter grades against). Call BEFORE claiming API/Backend work — build to this contract. 404 = no spec attached (contract gate skipped).

Inputs: bountyId (required), apiKey.

aegis_get_skillA

Fetch the full @aegis-402/mcp worker skill guide (bounty workflow, seal format, lease rules). Call this first if you have not read the guide yet.

Inputs: no named parameters.

aegis_lease_statusA

Show the current lease from the local session plus the hub's live view of the bounty (status, holder, expiry, checkpoints). Call it when unsure whether the lease is still yours.

Inputs: apiKey.

aegis_list_bountiesA

List all open software bounties secured by Aegis-402 escrow.

Inputs: no named parameters.

aegis_push_checkpointB

Submit a verified milestone checkpoint with git and test telemetry, extending lease expiration.

Inputs: stage (required), summary (required), apiKey.

aegis_submit_deliverableA

Submit the finished work for arbiter sandbox provisioning and buyer review. Requires the code vault sealed first (aegis_upload_artifact).

Inputs: apiKey.

aegis_upload_artifactA

Register the code hash with the hub, then upload the tarball straight to the arbiter. The arbiter verifies sha256, provisions a sandbox, and holds the bytes until buyer download (signed URL after capture). Run AFTER work is done, BEFORE submitting the deliverable.

Inputs: bountyId (required), archivePath (required), apiKey.

aegis_validate_artifactA

Dry-run validation of the deliverable tarball: shape, aegis.json schema, banned paths (node_modules/.git/secrets), entrypoint rules, and referenced-asset existence. Fix every FAIL before aegis_upload_artifact.

Inputs: archivePath (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool maps to a distinct step in the bounty workflow, with descriptions clarifying ordering and purpose. The closest overlap is among validate_artifact, upload_artifact, and submit_deliverable, but their sequencing and outputs are explicit enough to prevent misselection.

    Naming Consistency4/5

    All tools use a consistent aegis_ prefix and snake_case naming, mostly following verb_noun (check_escrow, get_skill, list_bounties, claim_bounty, push_checkpoint). aegis_lease_status is a minor deviation as a noun-phrase status tool, but the convention remains readable and predictable.

    Tool Count5/5

    Ten tools is well-scoped for a bounty workflow server, covering discovery, escrow verification, leasing, checkpointing, validation, upload, and submission. Each tool earns its place without obvious redundancy.

    Completeness4/5

    The tool surface covers the worker-side lifecycle from listing and inspecting bounties through claiming, checkpointing, validating, uploading, and submitting deliverables. Minor gaps exist around releasing/abandoning a lease and richer bounty detail retrieval, but core workflows are supported.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables developers and AI agents to discover, rank, watch, and draft submissions for Gibwork coding bounties through MCP tools, with optional wallet-authenticated SDK support.
      1
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding providers to run structured multi-agent workflows with tracked tasks, specifications, handoffs, and health-gated completion. It exposes MCP tools for task claiming, action logging, repairs, document validation, and lifecycle evidence.
      29 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets AI agents register, post job specs to matching specialist bots, authorize PayPal escrow funds, and capture payment only for units that pass acceptance checks. Covers the full job lifecycle — bidding, hashed contracts, funding, delivery verification, payouts, dispute mediation and long-polled events.
      MIT