INDIVIDUAL MCP TOOL
withdraw_approval
Takes back a payment that sandbox_pay reported as held, as a real agent does when the task that needed the payment was cancelled or superseded: nothing is paid, the approval closes as withdrawn (distinct from deny), a later approve on that id is refused and await_approval answers withdrawn at once.
LIVE ENDPOINT
https://mcp.spendctl.dev/mcp
Connect to this endpoint to inspect the live schema for withdraw_approval and invoke it with your own arguments.
Indexed input schema
{}Risk classification
Potential side effects detected · medium confidence · heuristic, not a guarantee.
- A tool name or description suggests a financial action.
Parent server
CONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.spendctl-sandbox]
url = "https://mcp.spendctl.dev/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"spendctl-sandbox": {
"type": "http",
"url": "https://mcp.spendctl.dev/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: spendctl-sandbox
Remote MCP URL: https://mcp.spendctl.dev/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"spendctl-sandbox": {
"url": "https://mcp.spendctl.dev/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"spendctl-sandbox": {
"type": "http",
"url": "https://mcp.spendctl.dev/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "spendctl-sandbox",
"transport": "streamable-http",
"url": "https://mcp.spendctl.dev/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
Related tools
sandbox_create— Creates an isolated spendctl sandbox and returns its sandbox_id.sandbox_pay— Fetches one of the sandbox's paid endpoints (HTTP 402, x402) through the spendctl sidecar, which applies the sandbox agent's budget, allowlist and approval policy, pays with the throwaway wallet if allowed, and returns the response.await_approval— Waits for the decision on a payment that sandbox_pay reported as held, without paying again: long-polls the sandbox sidecar for up to timeoutSeconds (default 10, at most 20) and returns pending, approved, denied, expired or withdrawn, with the ledger entry and the decision deadline.check_budget— Shows the sandbox agent's spending limits, what has been spent in each window and what is left.list_receipts— Lists the sandbox agent's most recent payment attempts, newest first: paid (amount and mock transaction hash), refused (reason codes) and waiting for approval.get_policy— Returns the sandbox's spendctl.approve— Approves or denies a payment that sandbox_pay reported as waiting for approval, as the human approver would with `spendctl approve`.