Get up and running with MoltVault in 5 minutes. This guide walks through creating your first agent bank account, configuring spending policies, and executing payments via x402.
import { MCPClient } from '@modelcontextprotocol/sdk';
// Connect to MoltVault MCP server
const mcp = new MCPClient({
serverUrl: 'https://mcp.moltvault.app',
apiKey: process.env.MOLTVAULT_API_KEY
});
// Agent can now use natural language commands
// "Send $500 to AWS for compute"
// "What did we spend on software last month?"
// "Create a new card with $1000 daily limit"
const moltvault = new MoltVault({
apiKey: process.env.MOLTVAULT_SANDBOX_KEY,
environment: 'sandbox'
});
// All operations work identically
// Transactions are simulated
// No real money moves