Build
MCP server
The Sluice MCP server exposes Sluice as native tools so any MCP-capable agent can discover and pay resources on Arc.
Tools
discover_resources,get_pricepay_resource— real nanopayment (needsSLUICE_PRIVATE_KEY)get_receipts,register_resource
Run
bash
SLUICE_API=https://sluiceflow.vercel.app/gw SLUICE_PRIVATE_KEY=0x... pnpm --filter @sluice/mcp startWire into a client
json
{
"mcpServers": {
"sluice": {
"command": "pnpm",
"args": ["--filter", "@sluice/mcp", "start"],
"cwd": "/path/to/Sluice",
"env": { "SLUICE_API": "https://sluiceflow.vercel.app/gw", "SLUICE_PRIVATE_KEY": "0x..." }
}
}
}