kushbitx-agent-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kushbitx-agent-mcpPreview a KushBitx token, evaluate SpendGuard policy, and discover the payment challenge"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
kushbitx-agent-mcp
A real AI-agent integration with the published @kushbitx/sdk, built for the kushBitxHQ/kushbitx-sdk#1 free acceptance path.
The agent is model-directed: an OpenAI-compatible chat-completions loop decides which tools to call and in what order. The tools are exposed through a real MCP stdio server — the model crosses an actual agent/tool boundary, not a fixed script.
What the agent does
Step | Tool | Result |
1 |
| Free Base token market preview |
2 |
| One stateless SpendGuard policy evaluation — advisory only |
3 |
| Discovers the |
SpendGuard never executes or blocks a transaction here; enforcement belongs to the signing/execution layer. The challenge tool decodes the PAYMENT-REQUIRED terms and returns them unsigned and unpaid.
Related MCP server: L402 Gateway
Boundary
Exactly three tools exist. There is no signing, payment, recovery, wallet-funding, or policy-mutation tool —
node audit.mjsfails if one ever appears.No private key is requested, read, stored, logged, or committed anywhere.
The model API key (if any) travels only in the
Authorizationheader of an in-processfetch— never in a child-process argv or env. The MCP server child receives a curated env (PATH,HOME,KUSHBITX_BASE_URL).Committed evidence is sanitized: EVM addresses, tx hashes, bearer tokens, and JWTs are redacted (
src/sanitize.mjs, regression-tested).
Requirements
Node.js 22+
A chat-completions endpoint. Default: a local Ollama server — free, no API key, fully offline-capable for the model call (the KushBitx calls still hit
kushbitx.com).
Quick start
npm ci --ignore-scripts
# Model backend — pick one:
# a) local Ollama (default; free, no key):
ollama pull qwen3:0.6b && ollama serve
# b) any OpenAI-compatible endpoint:
# export AGENT_BASE_URL=https://api.deepseek.com/v1 AGENT_MODEL=deepseek-chat AGENT_API_KEY=sk-...
npm startnpm start spawns the MCP server, lets the model drive the three checks, prints a PASS/FAIL summary, and writes sanitized evidence to evidence/run-output.txt. Exit code is non-zero unless all three checks pass.
Configuration
Variable | Default | Purpose |
|
| OpenAI-compatible endpoint |
|
| Model name for that endpoint |
| (unset) | Optional bearer token for the model endpoint |
|
| Agent-loop step cap |
|
| Service base URL (used by tests for stubbing) |
|
| Where sanitized evidence is written |
| (unset) | Set |
No variable accepts or needs a private key. If your network blocks Node's TLS to kushbitx.com (some Cloudflare edges do), run the calls through your own proxy — e.g. Node 24+ honors NODE_USE_ENV_PROXY=1 with HTTPS_PROXY.
Tests
npm test # hermetic suite: unit, protocol e2e vs a stub, agent-loop, sanitizer
npm run test:live # live checks vs kushbitx.com (needs KUSHBITX_LIVE=1; run via the launcher)
node audit.mjs # boundary probes: tool allowlist, forbidden APIs, env hygiene, evidenceLayout
src/server.mjs MCP stdio server — the only tool surface
src/tools.mjs three tool schemas + handlers over @kushbitx/sdk
src/agent.mjs model-directed chat-completions tool loop (the agent)
src/sanitize.mjs evidence redaction
test/ unit, e2e, agent-loop, sanitizer, and gated live tests
audit.mjs boundary probes (no signing/payment/recovery/private key)
evidence/ sanitized run outputEvidence
evidence/run-output.txt is regenerated by npm start and committed sanitized — tool arguments and results are preserved with addresses and secrets redacted.
License
Apache-2.0. Hosted KushBitx services, risk models, and non-public components are not covered by this repository's license.
This server cannot be deployed
Maintenance
Related MCP Connectors
113 MCP tools: oracle, escrow, compliance, remittance, AI. 12 free tools, PAYG $0.001/call.
Pay-per-call research tools for AI agents, paid via x402 USDC. Remote MCP, one free tool.
Paid token risk and security intelligence for AI agents over MCP with x402 payments.
Policy-gated MCP treasury for AI agents — x402 subscribe, 50+ tools, multi-chain.
Related MCP Servers
- FlicenseAqualityDmaintenanceAccess 5+ ATXP agent tools via MCP: web search, AI image generation, email, and music generation. Free tier with pay-per-use Pro tier via x402 micropayments (USDC on Base mainnet).5-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage Bitcoin micropayments, service offers, and escrow contracts through MCP tools, without requiring a Lightning node.4 npmMIT
- AlicenseAqualityFmaintenanceEnables crypto intelligence, GitHub trends, prediction market signals, token analysis, and AI content advisory via 23 MCP tools, with free options and paid tools through x402 micropayments.2330 npm1MIT
- AlicenseNot gradedqualityCmaintenanceExposes a live catalogue of specialist tools as MCP endpoints and returns x402 payment challenges for each call, letting agents pay per use in USDC from their own wallet without subscriptions or API keys.MIT