Skip to main content

Developers · MCP

Connect an AI client with MCP

The Coverline MCP server lets an AI client read the market and prepare orders. It never holds a key, never signs and never sends. You review what it prepares and sign in your own wallet, or you do not.

In development Testnet only today: test assets, no value. The server runs on your own computer.

What it does, and what it cannot do

Connect a client

Today the supported way is local: your AI client starts the server as a command. Build coverline-services (its source is available to reviewers on request), then add the server to the client’s MCP settings:

{
  "mcpServers": {
    "coverline": {
      "command": "node",
      "args": ["<path>/coverline-services/dist/mcp/main.js"],
      "env": {
        "RPC_URL": "<testnet RPC URL>",
        "MCP_INDEXER_URL": "<indexer URL>"
      }
    }
  }
}

Replace the placeholders with your path and the testnet RPC and indexer URLs. No key is needed, and none can be given.

Public endpoint

Coming soon A hosted endpoint, so you do not have to run anything. It is not running yet, and this page will show its address when it is.

Tools

The list below is read from the server’s own definitions (15 tools), not written by hand.

Read tools
ToolReturns
coverline_statusWhich network this server serves (testnet first), the market address, whether its tokens are test mocks, whether the indexer serves the same market and how far behind it is, and the oracle's current test price per token.
coverline_list_seriesOpen option series with the best ask and bid per lot (premium in USDG), lots offered and bid.
coverline_get_bookAsk and bid levels (premium per lot in USDG, lots, orders) of one series, and the best open offers and bids with their ids.
coverline_get_offerOne offer by id: its series, writer, lots (total, filled, free), premium per lot, collateral per lot, settle bounty, status and settlement state.
coverline_get_positionsWhat an address holds and has open: option positions (lots per offer), its open offers (as writer) and open bids, and payouts it can claim now (as holder or writer).
coverline_get_agent_grantsOn-chain grants that let an agent write, buy or cancel for an owner: permissions, validity, budgets granted, spent and remaining.
Build tools (unsigned transactions)
ToolPrepares
coverline_build_write_offerPrepares an unsigned createOffer: the writer locks collateral (calls: the tokens; puts: USDG) and a settle bounty, and earns the premium (net of the fee) when buyers fill.
coverline_build_place_bidPrepares an unsigned createBid: the bidder escrows the premium; writers can sell into the bid.
coverline_build_buyPrepares an unsigned fillOffer: the buyer pays the premium and receives option positions.
coverline_build_sell_to_bidPrepares an unsigned sellToBid: the writer locks collateral and a settle bounty and receives the bid's premium (net of the fee) now.
coverline_build_cancelPrepares an unsigned cancelOffer (unfilled lots: collateral back) or cancelBid (unfilled lots: premium back).
coverline_build_settlePrepares an unsigned settle of an expired offer.
coverline_build_claimPrepares an unsigned claim on a settled offer: as holder (positions are burned, the payoff net of the exercise fee is paid) or as writer (the remaining collateral).
coverline_build_grant_agentPrepares an unsigned grantAgent from the owner: lets an agent address write, buy or cancel for the owner on one Stock Token, within budgets, a validity date, a maximum offer duration and a minimum premium.
coverline_build_revoke_agentPrepares an unsigned revokeAgent from the owner: deletes the grant for one agent and Stock Token at once.

Tool list from coverline-services main @47f041e.

You stay in charge

An AI client can make mistakes. Read every preview, check the amounts and the worst case, and sign only what you understand. Stock Tokens are tokenized debt securities; the server calls them “tokens” and never invents numbers. To let an agent act on its own inside limits, use agent grants. For the SDK and the indexer API, see Developers.