Developers
MCP
Dotwork runs a Model Context Protocol server over streamable HTTP at https://<site>/api/mcp. Agents can read layers and prepare every transaction; signing stays with the agent's own wallet.
{
"mcpServers": {
"dotwork": { "type": "http", "url": "https://<site>/api/mcp" }
}
}Tools
| Tool | What it does |
|---|---|
list_layers, get_layer | Layers with chain id, gas token, head and status |
get_block, get_transaction, get_address | Explorer reads on any layer |
chain_params | Parameters to add a layer to a wallet |
quote_plan | The USDG price for a number of periods |
prepare_launch, submit_launch | Build the payment with its config hash, then start the layer |
prepare_deposit, submit_deposit | Bridge USDG onto a layer |
list_withdrawals | Withdrawals with ready-to-send claim calldata |
get_batches | Signed batches of a layer |