XGuard Secretless Agent Gateway
Allows agents to call Cloudflare APIs with credentials injected server-side, without exposing the reusable Cloudflare credential to the agent.
Allows agents to make authenticated GitHub API requests, such as repository operations, using scoped capabilities instead of a reusable GitHub token.
Allows agents to interact with Notion APIs through secretless egress, with the Notion credential stored in XGuard and injected server-side.
Allows agents to call OpenAI APIs without receiving the reusable OpenAI API key, using XGuard-issued short-lived capabilities.
Allows agents to make authenticated Slack API calls with server-side credential injection, keeping the Slack token out of agent context.
Allows agents to make Stripe API requests without possessing the Stripe credential, using XGuard's scoped egress capability and billing controls.
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., "@XGuard Secretless Agent GatewayUse my saved GitHub capability to create an issue on acme/web."
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.
XGuard: public sources into usable results
Give an agent pages, product URLs or feeds. XGuard fetches bounded public sources, selects working alternatives, parses and normalizes the output, removes duplicates, and returns source evidence in one result.
Get your first result without an account, key, wallet or installation:
curl https://api.xguardgate.com/v1/execute \
-H 'content-type: application/json' \
-d '{"intent":"demo"}'This runs the real extraction parser on labelled sample HTML. Supply html to process
up to 12 KiB of your own document for free. The preview makes no external requests.
Outcome | Exact USDC price | Delivery |
| Free | Supplied HTML or labelled sample: text, metadata, offers and digests |
| 0.003 | Up to three pages, normalized evidence and duplicate groups |
| 0.006 | Schema.org offers, identifier/currency grouping and provenance |
| 0.002 | RSS/Atom merge, backup sources, deduplication and chronology |
Prices are per bounded execution, including fallback. Read the live capability index for current availability, exact prices, limits, schemas and examples. There is no web-wide search, browser rendering, OCR or general AI model. Supplied merchant data is not independently verified.
One paid call from an agent
Send a supported intent directly, for example
{"intent":"Get a technology news digest","limit":10}.
The first HTTP request returns 402, the exact price, delivery description,
Payment-Required and an input-bound X-XGuard-Quote. A funded x402 v2 client signs
and retries the identical body. XGuard verifies and settles before source access.
The repository includes an automatic helper:
import { createXGuardOutcomeClient } from './sdk/outcomes.js';
// payer is your configured x402Client with a caller-owned, funded signer.
const xguard = createXGuardOutcomeClient({ payer, maxAmountAtomic: '2000' });
const output = await xguard.execute({ intent: 'Get a technology news digest' });
console.log(output.result);
// Keep output.recovery private; use it if delivery needs to be retrieved later.
const same = await xguard.getResult(output.recovery);One logical execute call uses two XGuard HTTP requests for paid work. It refuses
payments outside the explicit budget, network or USDC asset. It never creates a new
payment to recover an uncertain response. A wallet is required for paid work; installing
MCP alone does not provide one. This helper ships in this repository; no new npm release
is claimed. See the runnable paid example.
If all sources fail after settlement, the response carries an execution credit bound
to the same outcome. Retry with X-XGuard-Credit and the signed quote; no second payment
is required. Credit fulfillment is stored and recoverable using the original quote.
A credit is not an automatic cash refund. Read-only recovery continues to accept the
original quote after its execution expiry; treat that quote as a private bearer token.
Related MCP server: SecretVault MCP
JavaScript, Python, MCP and A2A
const response = await fetch('https://api.xguardgate.com/v1/execute', {
method: 'POST', headers: {'content-type': 'application/json'},
body: JSON.stringify({intent: 'demo'})
});
console.log(await response.json());import requests
print(requests.post('https://api.xguardgate.com/v1/execute',
json={'intent': 'demo'}, timeout=15).json())The MCP endpoint lists only xguard_discover,
xguard_execute and xguard_get_result. Call xguard_execute with {"intent":"demo"}.
Editor configurations are ready to copy.
Funded agents can use the official @x402/mcp client directly. A paid MCP call returns
an HTTP 200 JSON-RPC tool result with isError: true and the payment requirements in
both structuredContent and content[0].text. The client retries identical arguments
with params._meta["x402/payment"]. Preserve the challenge extensions: they carry the
payment identifier and signed, input-bound XGuard quote. Successful settlement is
returned in result._meta["x402/payment-response"]. The tool output schema covers
successful results, price challenges and errors so standard MCP validation succeeds.
Installing a plain MCP client still does not supply payment capability or funds.
HTTP execution retains its 402/header flow. New quotes explicitly declare
extra.paymentFlow: "upfront"; outstanding older quotes retain their original terms.
The existing bounded payer/recovery example remains the easiest complete runnable
purchase. No payment is necessary to inspect the price or try supplied HTML.
For A2A, use SendMessage
with one user part: {"text":"demo"} or {"data":{"intent":"demo"}}.
The same four executable outcomes are the advertised skills.
Agent instructions explain discovery, execution,
402 retry, recovery and errors. OpenAPI starts
with POST /v1/execute. Malformed or unsupported intents return repair.suggested_request.
English/Arabic intent matching is bounded; arbitrary natural-language jobs are not promised.
Evidence, limits and compatibility
A successful response has ok, intent, capability, result, verification, cost
and receipt. Paid receipts and digests establish execution/content integrity, not the
truth of a page or a merchant's actual checkout price. Partial source coverage is explicit.
Caches require origin permission and caller allowance; product offers always use fresh reads.
HTTPS/443, public-DNS/private-IP checks, manual redirects, bounded decompressed bodies, credential isolation, payment binding, replay protection and durable state remain enforced. The current Cloudflare fetch transport does not pin the connection to the DNS-checked IP; complete DNS-rebinding prevention remains a transport limitation.
Existing credential-backed actions and operator credits remain supported at operator pricing. The old gateway quickstart is archived; durable delegated actions and existing SDK imports remain compatible. Reusable vendor credentials are never required for the public-source outcomes.
Verification and commercial evidence
Run npm ci --prefix apps/relay and
node --test apps/relay/src/outcome-http-test.js for real HTTP-socket flows with controlled
source/facilitator fixtures and actual quote/proof cryptography. Mock settlement is not
an on-chain payment. node scripts/verify-production-identity.mjs verifies public free
execution and signed paid challenges without spending funds.
Read the audit, capability selection, distribution work and release verification. The metrics endpoint distinguishes external production settlement, recognized delivery, liabilities and synthetic tests. Event ratios are not user cohorts; actual infrastructure costs and gross margin remain unknown. Working outcomes and successful deployment do not establish customer demand or adoption.
Self-serve purchasing
Try your own HTML, compare the
live prices, then follow the
paid developer quickstart.
The customer script is sdk/examples/outcome-buy.mjs; run it with --help first.
It requires explicit --pay, a budget cap and a caller-owned funded Base USDC signer.
It saves a private recovery file before submitting a payment authorization. A storage
failure stops the purchase. --recover only retrieves an outcome; it never pays again.
Private failure details retain any execution credit for the documented credit flow.
Recovery/response files contain bearer material and are excluded from this repository.
Use --synthetic for operator tests. The older outcome-paid.mjs remains a synthetic
verification example, not the customer purchase command.
SDK callers can provide onPaymentPrepared: async recovery => { /* save privately */ }.
The SDK awaits this callback before submitting the paid request. Keep a copy of the
original request for credit redemption if all sources fail. Public-source outcomes
still use x402; operator card credits remain a separate product.
This server cannot be deployed
Maintenance
Related MCP Connectors
- FullmaktOAuthai.fullmakt
Credential broker for AI agents: scoped, revocable API access with policy enforcement and audit.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Give your AI hands. Identity, credential vault, and API gateway for autonomous agents.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely access authenticated services (HTTP, SSH, SMTP) without exposing secrets, by acting as a server-side proxy that injects authentication.MIT
- AlicenseNot gradedqualityBmaintenanceBounded egress gateway & secret proxy for AI agents and applications, enabling safe credential injection into upstream requests while keeping raw secrets out of LLM prompt contexts.8 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to make authenticated API calls and run commands with secrets injected, while keeping credentials completely hidden from the model, with policy enforcement, grants, and audit logging.6MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to call external endpoints under per-endpoint policy enforcement, with credentials and personal data kept inside a hardware enclave and every allowed or denied attempt recorded to an immutable audit ledger.2-