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
Reads the market
Series, order book, offers, positions and agent grants, each from the indexer and the chain.
Prepares, never sends
A build tool returns the full preview (what you pay, what you receive, when, the worst case) and unsigned transactions. Every result says it was not sent.
Checks first
Every build is simulated. If it would fail, you get the reason in plain words and no transaction. The server has no setting for a private key; a test fails the build if signing or sending is ever added.
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.
| Tool | Returns |
|---|---|
coverline_status | Which 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_series | Open option series with the best ask and bid per lot (premium in USDG), lots offered and bid. |
coverline_get_book | Ask 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_offer | One offer by id: its series, writer, lots (total, filled, free), premium per lot, collateral per lot, settle bounty, status and settlement state. |
coverline_get_positions | What 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_grants | On-chain grants that let an agent write, buy or cancel for an owner: permissions, validity, budgets granted, spent and remaining. |
| Tool | Prepares |
|---|---|
coverline_build_write_offer | Prepares 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_bid | Prepares an unsigned createBid: the bidder escrows the premium; writers can sell into the bid. |
coverline_build_buy | Prepares an unsigned fillOffer: the buyer pays the premium and receives option positions. |
coverline_build_sell_to_bid | Prepares an unsigned sellToBid: the writer locks collateral and a settle bounty and receives the bid's premium (net of the fee) now. |
coverline_build_cancel | Prepares an unsigned cancelOffer (unfilled lots: collateral back) or cancelBid (unfilled lots: premium back). |
coverline_build_settle | Prepares an unsigned settle of an expired offer. |
coverline_build_claim | Prepares 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_agent | Prepares 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_agent | Prepares 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.