Build
MCP server
An MCP server over stdio that gives any MCP client the credit tools of its agent. It uses the SDK next to it.
npm i viem
curl -O https://www.softlinecredits.com/sdk/softline.mjs
curl -O https://www.softlinecredits.com/sdk/softline-mcp.mjsAdd it to your client's MCP configuration:
{
"mcpServers": {
"softline": {
"command": "node",
"args": ["/path/to/softline-mcp.mjs"],
"env": { "SOFTLINE_KEY": "0x<agent key>", "SOFTLINE_API": "https://www.softlinecredits.com" }
}
}
}Tools
| softline_agents | List agents and their open lines. |
|---|---|
| softline_agent | One agent, its lines and recent settlements. |
| softline_underwrite | Revenue profile of an address or an agent, with the ceiling. |
| softline_register | Enrol the agent. |
| softline_apply | Open a line with the given terms. |
| softline_line | Read a line: funded, owed, repaid, status. |
| softline_draw | Draw a funded line. |
| softline_repay | Repay directly. |
| softline_settle | Settle the inbox. |
| softline_pay | Call an x402 URL and pay it. |