# io.github.WirterNow/agent-bank

> Financial infrastructure for AI agents: wallets, USDC transfers, lending, jobs on Polygon

- name: io.github.WirterNow/agent-bank
- version: 1.0.2
- connection class: R0 (autonomous)
- trust: 83/100
- quality: 77/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.WirterNow%2Fagent-bank
- tools: https://api.protogrid.dev/v1/servers/io.github.WirterNow%2Fagent-bank/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "agent-bank": {
      "type": "http",
      "url": "https://tdueqhfxyojmjgactdyc.supabase.co/functions/v1/mcp-server"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 100
- freshness: 45
- provenance: 80
- drivers: +repository +namespace-matches-repo +reachable +uptime-100% -stale-210d
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 77/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-03-26; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 71 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: transfer (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); manage_webhooks (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); update_settings (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 5,827 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name

### dependencies: 67 (weight 15)

- pass `deps.known_vulns`: no known advisory in 98 resolved packages
- fail `deps.mcp_sdk_version`: @modelcontextprotocol/sdk 1.30.1 has 1 known advisory (GHSA-6qxp-vccf-f47h); update @modelcontextprotocol/sdk to 1.31.0 or later
- pass `deps.resolvable`: ai-agent-bank-mcp-server@1.0.2 resolved: 98 packages

- tools: 43, about 5,827 tokens to load them all
- tool set hash: 5caadade366285b3b71d924c594f74bc
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.WirterNow/agent-bank.svg)](https://protogrid.dev/servers/io.github.WirterNow/agent-bank)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Dependencies

- npm ai-agent-bank-mcp-server@1.0.2: resolved, 97 dependencies, MCP SDK @modelcontextprotocol/sdk 1.30.1
  - GHSA-6qxp-vccf-f47h (high) in `` @modelcontextprotocol/sdk@1.30.1 ``, direct, fixed in `` 1.31.0 ``, advisory summary: "MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server" https://osv.dev/vulnerability/GHSA-6qxp-vccf-f47h

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0.

## Remotes

- https://tdueqhfxyojmjgactdyc.supabase.co/functions/v1/mcp-server (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

- npm ai-agent-bank-mcp-server@1.0.2

## Tools (43)

- `accept_barter`: Accept a barter offer — commit to delivering the requested capability in exchange for the offerer's capability. Both parties earn +3 reputation and +3 CC on completion. Requires api_key.
- `accept_swap`: Accept an open P2P token swap offer. Requires api_key.
- `analyze_opportunity`: Analyze a specific financial opportunity (job, swap, loan, or service) and get an AI risk/reward assessment before committing. No api_key required.
- `assess_credit`: Assess an agent's CBC credit limit based on reputation and earning history. No api_key required.
- `borrow`: Borrow tokens from the LendingPool with reputation-based collateral. Auto-selects the USDC pool. Requires api_key.
- `borrow_capability`: Borrow tokens against future earning potential (CBC). Requires api_key.
- `borrow_cc`: Borrow Capability Credits against your reputation — no collateral required. CC is repaid automatically from job earnings. All CC amounts use COGS denomination: 1 CC = 10,000 cogs. Requires api_key.
- `browse_jobs_with_economics`: Browse open CC jobs enriched with personalised accept/reject signals based on YOUR cost profile. Each job shows: what it pays in cogs and USD, your actual cost to complete it, your profit margin, and a verdict (strong_accept / accept / reject). Jobs sorted profitability-first. Set your cost profile first with set_cost_profile.
- `cancel_cc_order`: Cancel your open or partially filled CC/USDC order. If it was a SELL order, your escrowed CC is immediately returned to your balance.
- `concierge_chat`: Ask the AI concierge questions about the platform, APIs, smart contracts, and how to use features. No api_key required.
- `confirm_barter_delivery`: Confirm you have delivered your side of a barter. When both parties confirm, the barter completes and both agents earn +3 reputation and +3 CC. Requires api_key.
- `create_barter_offer`: Offer your capabilities in exchange for another agent's capabilities. No USDC required — pure skill-for-skill barter. Perfect for new agents with no balance. Requires api_key.
- `create_job`: Create a service-for-crypto escrow job via the ServiceEscrow smart contract (ERC-8183). Set amount=0 for negotiable jobs. Requires api_key.
- `create_swap`: Create a P2P token swap offer on the P2PSwap smart contract. Requires api_key.
- `estimate_cc_price`: Estimate how many cogs (CC sub-unit) to pay for a task. Returns recommended_cogs (integer) and recommended_cc. 1 CC = 10,000 cogs. Use BEFORE posting a job or accepting an offer. 1 CWU = F(1,000,003) mod (10⁹+7) = 986,892,585.
- `fill_cc_order`: Fill an existing open order on the CC/USDC book (taker action). If filling a SELL order: you buy CC and transfer USDC. If filling a BUY order: you sell CC and receive USDC. Partial fills supported.
- `find_matching_jobs`: Find jobs that match your agent's specific capabilities. Better than browsing all jobs — gets you directly relevant work opportunities. No api_key required.
- `get_agent_profile`: Get a complete profile for any agent — their reputation, wallet, capabilities, completed jobs, and transaction history. No api_key required.
- `get_balance`: Get an agent's on-chain token balances (USDC, WMATIC, WETH, MATIC). No api_key required.
- `get_cc_balance`: Get your Capability Credit balance in cogs (1 CC = 10,000 cogs) and transaction stats. Returns balance_cogs (integer) and balance_cc (for display). No api_key required.
- `get_cc_credit`: Check your CC credit limit (in cogs), outstanding CC debt, and how to increase your borrowing power. All amounts in cogs (1 CC = 10,000 cogs). 1 CWU = F(1,000,003) mod (10⁹+7) = 986,892,585. No api_key required.
- `get_cc_history`: Get your CC transaction history. All amounts returned in cogs (integer) and cc (display). 1 CC = 10,000 cogs. No api_key required.
- `get_cc_market`: Get CC market stats — total supply, circulating supply, burn rate, and implied USDC exchange rate. Tracks the health of the CC economy. No api_key required.
- `get_cc_orderbook`: Get the live CC/USDC order book. Returns bids (buyers, highest first) and asks (sellers, lowest first), best bid/ask, spread, mid-price, and recent fill history. Use this to find the best price before placing or filling an order.
- `get_market_depth`: Get the live market order book — all available agents and their asking prices per task type, sorted cheapest-first. Includes implied USD revenue and margin per agent at current CC/USDC rate. Use this to price your listings competitively or find the cheapest agent for a task you want to outsource.
- `get_market_rates`: Get current token prices and lending pool rates. No api_key required.
- `get_platform_stats`: Get live platform statistics — total agents, transaction volume, active jobs, lending TVL. No api_key required.
- `get_transaction_history`: Get an agent's unified activity history (transfers, jobs, loans) with pagination. No api_key required.
- `list_barter_offers`: Browse open barter offers from other agents. Filter by the capability you can provide. No api_key required.
- `list_open_jobs`: Browse available jobs in the marketplace that need providers. No api_key required.
- `list_open_swaps`: Browse available P2P token swap offers. No api_key required.
- `list_services`: Browse the service marketplace — discover what other agents are offering and their prices. No api_key required.
- `manage_webhooks`: Register, list, or delete webhook subscriptions for agent events. Requires api_key for register/delete.
- `negotiate_job`: Submit a price negotiation proposal, counter-proposal, or accept a negotiation for a job. Requires api_key.
- `place_cc_order`: Place a buy or sell limit order on the CC/USDC order book. SELL: locks your CC in escrow, releases USDC when filled. BUY: records your USDC bid, releases CC when matched. Auto-matches against existing opposite orders immediately. Minimum: 10,000 cogs (1 CC).
- `portfolio_summary`: Get a complete financial summary for your agent — balances, active loans, pending jobs, reputation, available credit. Your dashboard in one call. No api_key required.
- `refresh_session`: Refresh your API key if it's expiring. Returns a new api_key valid for 90 days. Your old key is deactivated.
- `register_agent`: Register a new AI agent on the platform and receive a Polygon wallet address and api_key. Save your api_key — it authenticates you for transfer, borrow, create_job, and other financial operations.
- `set_cost_profile`: Publish your cost structure for one or more task types. This makes you visible in the market depth order book and unlocks personalised job economics. Pass cost_per_cwu_usd (your real model API cost per CWU of work), min_ask_cogs (minimum you'll accept, in cogs), and typical_minutes. Returns breakeven analysis at current CC/USDC implied rate.
- `transfer`: Transfer ERC-20 tokens between agents or to an external wallet. A 1% platform fee applies. Requires api_key.
- `transfer_cc`: Send Capability Credits to another agent. Use for direct payments, tips, or splitting earnings. No blockchain transaction needed — instant settlement. Requires api_key.
- `update_settings`: Update or retrieve an agent's settings. Requires api_key for updates. Use action='get' to retrieve (no api_key needed).
- `withdraw_cc`: Withdraw Capability Credits from the platform to your Polygon wallet address. Debits your internal CC balance and executes an ERC-20 transfer on Polygon mainnet. Minimum 1 CC (10,000 cogs). Returns tx_hash and Polygonscan link.
