Skip to main content
Glama
proofmarket-mcp

proofmarket-mcp

by Zhekinmaksim

proofmarket-mcp

An MCP server that exposes a machine-callable proof-market surface. An agent connects over the Model Context Protocol, submits Proof Requests, reads the market's supply / allocated / utilized, and composes multi-step workflows that run with no human in the loop.

It is the surface Fermah keeps describing: the primary user of a protocol is no longer a human clicking a dashboard, it is an agent calling an execution surface directly. This repo is a small, runnable answer to "what does that surface look like."

This is a reference model, not Fermah's production Kernel and not live network data. The coordination mechanics come from proofmarket-sim; the same engine settles every number. Vocabulary follows Fermah: Seekers submit Proof Requests, the Matchmaker assigns them to Prover Nodes.

Tools

  • market_state - snapshot supply, allocated, utilized, and the matching and scheduling gaps of the running market.

  • simulate_coordination - run the coordination model over a full horizon for a regime (today / no-operator / coordinated). Same supply in every regime; only coordination changes.

  • submit_proof_request - a Seeker submits a Proof Request; returns an id to poll.

  • poll_proof - check a request; on settle it carries a proof id and attestation, delivered the way a proof returns to a Seeker callback. Zero humans.

  • compose_workflow - define an ordered sequence (observe, request_proof, act, settle) and the surface runs the whole thing, returning an attested trace with humans in the loop = 0.

There is also an proofmarket://about resource describing what the surface is and is not.

Related MCP server: ADEXTO MCP Server

Run it

npm install
npm test          # in-memory MCP client lists tools, drives the surface
npm run demo      # an agent drives the surface end to end, no human in the loop
npm start         # start the MCP server on stdio

Connect it to an agent

Claude Desktop (claude_desktop_config.json), Cursor, or any MCP client over stdio:

{
  "mcpServers": {
    "proofmarket-surface": {
      "command": "node",
      "args": ["/absolute/path/to/proofmarket-mcp/src/server.js"]
    }
  }
}

Then ask the agent to check the market, compare coordination regimes, and compose a proof workflow. It will call the tools directly, with no human in the loop.

Why this exists

A protocol without a machine-callable surface is invisible to agents no matter how capable its onchain logic is. The point of this repo is not to reimplement Fermah. It is to make the surface concrete, runnable, and honest: an agent can drive a proof market end to end, and you can read every line of how it works.

License

MIT. Built by ZERTH MAXX (@0maxxdev). Not affiliated with or endorsed by Fermah.

Available Tools

5 tools
compose_workflowCompose a multi-step workflowA

The agentic path: define an ordered sequence and the surface runs the whole thing, no human in the loop. Steps: observe a condition, request_proof, act, settle. Returns an attested trace.

Inputs: steps (required).

market_stateRead supply, allocated, utilizedA

Snapshot the running market: the three numbers most protocols collapse into one, plus the matching and scheduling gaps. A model, not live telemetry.

Inputs: no named parameters.

poll_proofPoll a Proof RequestA

Check a Proof Request. When it settles, the result carries a proof id and attestation, delivered the way Fermah returns a proof to a Seeker callback URL. Zero humans involved.

Inputs: requestId (required).

simulate_coordinationRun the coordination modelA

Run the proofmarket-sim engine over a full horizon for a coordination regime and return utilization and the two gaps. Same supply in every regime; only coordination changes.

Inputs: load, seed, nodes, regime.

submit_proof_requestSubmit a Proof Request (Seeker side)A

A Seeker submits a Proof Request to the market. Returns a request id you can poll. The Matchmaker assigns it to a Prover Node when capacity is free.

Inputs: system, sizeUnits, deadlineTicks.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation4/5

    Most tools have clear boundaries: submit_proof_request and poll_proof handle request lifecycle, simulate_coordination explores scenarios, and compose_workflow orchestrates. However, market_state and simulate_coordination both report utilization and gaps, so agents could initially confuse which to use for current market health vs. hypothetical coordination regimes.

    Naming Consistency4/5

    The set is mostly verb_noun (simulate_coordination, submit_proof_request, poll_proof, compose_workflow), but market_state breaks the pattern as a noun phrase rather than get_market_state, creating minor inconsistency.

    Tool Count5/5

    Five tools is appropriate for the server's focus on market analysis, request submission, status polling, and workflow composition. It's neither sparse nor bloated, covering the core interactions with a proof market.

    Completeness4/5

    The core lifecycle is covered: market state inquiry, simulation for planning, request submission, result polling, and workflow orchestration. Missing operations like canceling requests or listing historical requests are workable gaps, but the essential seeker-approval journey is represented.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers