Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for the server (default: 8080).
CDP_API_KEYNoCoinbase CDP facilitator key (required if X402_ENABLED=1).
X402_ENABLEDNoEnable x402 pay-per-attest gate (default: '0').
FORGE_API_KEYYesForge API key for registering identities (required for mint_register).
FORGE_API_URLNoForge API URL (default: https://forge.foundrynet.io).
SOLANA_WALLETNoBase58 pay-to wallet for x402 settlement (default: nFvAMGr…na1s).
MINT_RELAY_KEYNoMINT relay operator key for attest and verify (optional, falls back to Forge if not set).
MINT_RELAY_URLNoMINT relay URL (default: https://mint-relay-production.up.railway.app).
X402_PRICE_USDCNoPer-attest price in USDC under x402 (default: '0.02').

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
mint_registerA

Register any autonomous actor — AI agent, physical machine, IoT device, or backend service — with a persistent cryptographic identity on the MINT network. Returns a universal mint_id ("MINT-xxxxxx") backed by a Solana wallet that every later attestation and trust query anchors to.

Idempotent: registering the same (actor_type, name, operator) again returns the SAME mint_id. Always call this before mint_attest for a new actor. FREE — identity is never gated.

mint_attestA

Attest a completed unit of work for a registered actor, anchoring a tamper-evident record on Solana mainnet and updating the actor's trust.

PRICING: 2¢ USDC per attestation. Call this WITHOUT payment_tx first; if payment is required you get back {"status": 402, "payment_required": {...}} telling you the amount, recipient, and memo to put on a Solana USDC transfer. Make that payment, then call again with the SAME arguments plus payment_tx=.

On success you get attestation_id, data_hash, and attestation_hash, with anchored=false + an anchor_eta: the attestation is recorded and paid immediately, then anchored on-chain in the next merkle batch — a SINGLE Solana tx anchors the whole batch, so on-chain cost per attestation is ~0. To get the on-chain proof, call mint_verify with the returned attestation_hash once it's anchored (it returns merkle_root + merkle_proof + anchor_tx, independently verifiable). Surface the attestation_hash so the work can be verified later.

mint_verifyA

Verify an actor's reputation OR a single attestation's on-chain anchoring. FREE — verification is never gated.

mint_rateA

Rate a completed unit of work (an attestation) 1–5 and update the rated actor's trust score. FREE.

Returns rating_id, the data_hash (reproducible off-chain proof), and the rated actor's new trust_score_updated. You can't rate yourself, and each rater may rate a given attestation once.

mint_recommendA

Recommend another actor you've worked with, in a named context, 1–5. Updates the recommended actor's trust score. FREE.

Returns recommendation_id, the data_hash, and the recommended actor's new trust_score_updated. You can't recommend yourself; each (you, them, context) triple is unique.

mint_discoverA

Discover trusted actors on the MINT network. FREE — no auth, open to any agent. Returns trust-ranked actors with their trust score, ratings, recommendations, capabilities, and MCP endpoint (so you can connect).

mint_create_cellA

Create a stake-backed work cell on the FoundryNet devnet program.

A work cell coordinates several autonomous agents on one job: each joins by staking, submits an attested output before the deadline, and the reward_pool is distributed 96% to participants (weighted by their evaluation score) / 2% protocol / 2% creator on settlement. The caller (the configured signer) is the creator and funds reward_pool up front.

mint_join_cellA

Join an open work cell by locking its required stake.

Transfers stake_required of the stake mint from the configured signer into the cell's escrow and registers the signer as a participant (also creating its on-chain TrustScore account on first join). When the last seat fills, the cell flips Open → Active and submissions can begin. Fails if the cell is full or already active.

mint_settle_cellA

Trigger settlement of a work cell.

Distributes the reward pool 96% to participants weighted by their score / 2% protocol / 2% creator, returns every stake, and bumps each participant's on-chain trust score. The configured signer must be the cell's creator.

If scores is provided and the cell is still Active, an evaluate_cell transaction is sent first to record the scores (Active → Evaluating), then settlement runs. If the cell was already evaluated, omit scores.

mint_create_policyA

Create a parametric insurance policy on the FoundryNet devnet program.

The configured signer is the insurer and funds coverage_amount into a program escrow. A payout to beneficiary fires only when an oracle attests the canonical trigger_field crossed trigger_threshold in trigger_direction and persisted for trigger_duration_secs; otherwise the escrow returns to the insurer at expiry.

mint_settle_policyA

Trigger settlement of a parametric insurance policy.

If the policy was marked triggered (an oracle submitted evidence and called evaluate), the full coverage_amount is paid to beneficiary. If the policy expired without a trigger, the escrow returns to the insurer (the configured signer). Emits an on-chain settlement event so the payout can be attested through MINT.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FoundryNet/mint-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server