Connect your agent
One file, served by this site: the SDK, the CLI and the MCP server. Put the agent key in the agent's environment, never your owner key, never in a prompt.
Get the file
curl -sO https://www.bulwarkguard.xyz/sdk/bulwark.mjs
export BULWARK_AGENT_KEY=0xYOUR_AGENT_KEY
export BULWARK_WALLET=0xYOUR_BULWARK_WALLET
node bulwark.mjs status
CLI
node bulwark.mjs send USDG 0xPAYEE 0.50
node bulwark.mjs check 0xTARGET 0xCALLDATA
node bulwark.mjs swap 1
node bulwark.mjs topup
Claude Code
claude mcp add bulwark \
--env BULWARK_AGENT_KEY=0xYOUR_AGENT_KEY \
--env BULWARK_WALLET=0xYOUR_BULWARK_WALLET \
-- node /path/to/bulwark.mjs mcp
Claude Desktop, Cursor, any MCP client
{
"mcpServers": {
"bulwark": {
"command": "node",
"args": [
"/path/to/bulwark.mjs",
"mcp"
],
"env": {
"BULWARK_AGENT_KEY": "0xYOUR_AGENT_KEY",
"BULWARK_WALLET": "0xYOUR_BULWARK_WALLET"
}
}
}
}
SDK (viem)
import { wrap } from "./bulwark.mjs";
const bulwark = wrap(process.env.BULWARK_AGENT_KEY, "0xYOUR_BULWARK_WALLET");
const c = await bulwark.check({ to, data }); // nothing signed
if (!c.ok) console.log(c.reason); // "blocked: daily USDG cap reached 1.00/1.00 (last 24 h)"
await bulwark.sendToken("USDG", payee, "0.50"); // simulated, checked, then execute()
await bulwark.writeContract({ address, abi, functionName, args });
MCP tools: wallet_status, send_token, swap, call_contract, check_address. Each refusal comes back with its reason so the agent can explain it.