BelAgent
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.
BelAgent: Beldex MCP payment-approval proof of concept (v0.2.0)
Status (3 November 2026): Runnable local architecture POC; simulated approval tested; real Beldex wallet testnet send integration implemented against the published browser provider protocol; file persistence, cancellation, request listing, and active UI polling supported.
BelAgent demonstrates AI requests payment -> deterministic local policy checks -> human opens local review page -> Beldex browser wallet prompts and signs (testnet mode) -> agent can query or cancel outcome.
It is not an autonomous spending wallet, deployed production payment processor, or evidence of a confirmed Beldex transaction. No mainnet path and no storage/access to private keys exist in this project.
Quick start (zero dependencies)
Requires Node.js 20+.
npm test
npm run demo
npm startnpm test: Runs deterministic test suite (20 unit and integration tests).npm run demo: Creates a request through the actual MCP stdio protocol, lists pending requests, simulates approval, and reads final status.npm start: Starts the local approval web server and MCP stdio listener on port 7417 (orBELAGENT_PORT).
To inspect the UI manually while npm start is running, configure your MCP client with the server below and call belagent_request_payment with a legitimate Beldex testnet recipient address (e.g. amount_bdx: "0.25" and reason: "POC service fee"). Open the approval_url returned by the tool.
{
"mcpServers": {
"belagent": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/belagent-beldex-mcp/src/server.mjs"],
"env": {
"BELAGENT_MODE": "demo",
"BELAGENT_PORT": "7417",
"BELAGENT_STORE_PATH": "./.belagent-data.json"
}
}
}
}For manual demo mode only, an address that passes the shape pre-screen can be generated for simulation only with "9" + "A".repeat(94) in JavaScript. It is NOT a valid destination for an actual wallet.
Related MCP server: PayAgents MCP Server
Connecting a real Beldex Extension Wallet on testnet
Install the Beldex browser extension from the official Beldex site. Use a dedicated, disposable testnet wallet, with the extension set to Testnet.
Obtain testnet BDX from the official faucet. Do not use mainnet BDX or a production recovery phrase.
Obtain a genuine checksummed testnet recipient address from a separate testnet wallet. Copy the exact address.
Start in locked-down testnet mode with the recipient allowlisted and persistent storage enabled:
BELAGENT_MODE=testnet BELAGENT_ALLOWLIST='PASTE_GENUINE_TESTNET_RECIPIENT' BELAGENT_MAX_PAYMENT_BDX=1 BELAGENT_MAX_DAILY_BDX=2 BELAGENT_STORE_PATH=./.belagent-data.json npm startConfigure the MCP client and request
0.1BDX to the allowlisted address. Open the returned localapproval_urlin the same browser profile as the Beldex extension.Press Continue to Beldex wallet, approve the connection, inspect the amount, full recipient, chain, and fee within the extension, and only approve if all data are correct.
Observe the returned state.
submitted_unverifiedmeans the browser reported a transaction hash, NOT independent on-chain payment confirmation. Check the Beldex testnet wallet/explorer independently before asserting settlement. If it returnsoutcome_unknown, NEVER blindly retry.
MCP Tools Provided
BelAgent exposes 5 tools over MCP standard I/O:
Tool | Parameters | Description |
| none | Query mode, chain, caps, and persistence state. |
|
| Create an immutable payment intent and return a local time-bound |
|
| Check the current lifecycle status of a specific payment request. |
|
| Cancel an open |
|
| List recent payment requests (filters: |
Architecture and Deliberate Limits
Untrusted AI / MCP client
|
v
MCP stdio server (NO spend/view keys)
- validates BDX decimal amounts as BigInt atomic units
- testnet-only address pre-screen, allowlist (live mode)
- per-request cap and reserved daily cap (survives restart via BELAGENT_STORE_PATH)
- immutable request id, reason, destination, amount, SHA-256 intent hash
- single-use, 10-minute local approval capability URL
- cancellation and listing tools for autonomous context management
|
127.0.0.1 browser approval page (local only)
- visible amount, destination, purpose, intent hash, one-click copy buttons
- live status polling & missing extension detector
- explicit human click; one-time transition to wallet_prompt
- direct link to Beldex Testnet Explorer when tx hash reported
|
Injected Beldex wallet provider (live testnet mode)
- request connect -> verify testnet -> request user-approved send
- cryptographic keys stay inside wallet extension
|
Browser reports tx hash to local status store (UNVERIFIED)
|
MCP client polls belagent_payment_status or lists active itemsSecurity notes / non-goals
127.0.0.1binding, literal host checking, same-origin POST protection, no CORS, Content Security Policy, no browser third-party scripts, no telemetry.The capability URL is a bearer secret. Do not paste it into public chat or publish screenshots with it. It expires automatically; there is no authentication beyond its unguessable token in this POC.
A localhost client with the approval URL might submit a fake success callback. Browser-reported hashes are therefore never called confirmed.
Setting
BELAGENT_STORE_PATHenables atomic JSON disk persistence, preventing daily cap bypass across server restarts.Automatic memory pruning sweeps terminal records older than 24 hours to prevent memory leaks in daemon environments.
Prompt injection can induce an AI to propose a bad payment within the agent's permissions. Deterministic policy, cancellation capability, and final wallet user review reduce this risk; they do not make a model immune to manipulation.
The testnet address check is a shape check, not checksum verification. The actual extension enforces final address validation before signing.
User approval in the browser alone is not equivalent to a real cryptographically signed transfer; in testnet mode the extension is the final authority.
References: Beldex Web3 SDK official overview, Beldex-Coin official SDK repository, Beldex grant rules.
This server cannot be deployed
Maintenance
Related MCP Connectors
Private stablecoin payments for people and AI agents on mainnet, hosted or local with limits.
Discover machine-payable APIs, probe x402 payment terms, and run seller operations. Non-custodial.
Testnet wallet for AI agents on Aether: pay, get paid and buy from paid APIs, with spending caps.
Advisory policy preflight for AI-agent spend requests; never executes payments or accesses wallets.
Related MCP Servers
FlicenseNot gradedqualityFmaintenanceEnables AI agents to discover and pay for monetized services such as PDF processing and DeFi operations using USDC on the Base blockchain. It provides automatic payment processing and secure local wallet management for seamless integration with MCP-compatible clients.17 npm-
PayAgents MCP Serverofficial
AlicenseAqualityBmaintenanceEnables AI agents to autonomously make policy-controlled payments for APIs and tools via Bitcoin Lightning (L402) and Base USDC (x402), including paying paywalled endpoints, checking balances, and reviewing transactions.311 npm1MIT- FlicenseNot gradedqualityCmaintenanceEnables AI agents to propose wallet payments while a local, human-authored policy decides whether each transaction is approved, requires human confirmation, or is refused, and records every decision in a signed, append-only ledger.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to make payments over x402-priced HTTP APIs using USDC on Monad testnet, with policy enforcement, budgets, and approval workflows, without exposing private keys.8AGPL 3.0