k402
io.github.Kali123411/k402
Serveur MCP OK 44 outils
Agent-payable APIs on Kaspa: LLMs, chain data, covenants, zk proofs — pay per call, no API key
Fiche technique
- Auteur
- Kali123411 (espace de noms du registre)
- Dépôt
- —
- Site
- —
- Version
- 0.7.0
- Transport
- Streamable HTTP stdio
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://x402-compute.68cxgfyr0.workers.dev/mcp Streamable HTTP
- Paquets
- k402-mcp 0.7.0 pypi stdio
- Outils
- 44
- Catégories
- IA, agents et mémoire
- Dernière mise à jour
- 18 juil. 2026
- Publication
- 18 juil. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.Kali123411/k402)<a href="https://latlas.dev/mcp/io.github.Kali123411/k402"><img src="https://latlas.dev/badge/fiche/io.github.Kali123411/k402.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://x402-compute.68cxgfyr0.workers.dev/mcp
- Dernier résultat
- OK 28 nov. 2026, 11:02
- Temps de réponse
- 1 632 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- k402 1.28.1
- Outils
- 44
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 11:02 | OK | 1 632 ms | 44 |
Outils exposés (44, réponse à tools/list, 28 nov. 2026)
catalog
List every service this gateway sells (text tools, Kaspa chain data, LLM tiers) with live prices in KAS and USD. Free. Start here to see what's available and what calls cost.
Aucun paramètre.
open_session
Open a prepaid payment session: returns a session key and a personal Kaspa MAINNET deposit address. Send KAS to the address from any wallet (min 0.25 KAS); confirmed deposits become spendable balance within seconds and every paid tool call meters against it. Free. The session is saved locally so subsequent calls use it automatically.
Aucun paramètre.
use_session
Attach an existing k402 session key (from a previous open_session) so paid calls meter against its balance — use after reconnecting to the hosted endpoint, or to carry one funded session across clients. Returns the session's current balance. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| session | string | oui |
session_status
Check the current payment session: deposit address, deposited / spent / remaining KAS. Free.
Aucun paramètre.
registry_search
Discover providers in the k402 service exchange — an open marketplace of agent-payable services, each settled directly with the provider (no custodian): over a Kaspa payment channel, or per call in kUSD (the covenant-native dollar on Kaspa). Filter by capability (e.g. 'summarize', 'llm:reason', 'zk-prove'), max USD price, minimum reputation (settled KAS volume, chain-verified), and currency ('KAS' | 'kUSD'; kUSD listings carry price_cents and are ranked by settled cents). Results are ranked reputation-first. Free. Returns each provider's endpoint, payee pubkey, price, channel terms, and reputation. To pay a kUSD listing, use pay_kusd.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| capability | string | non | |
| max_price_usd | number | non | |
| min_reputation_kas | number | non | |
| limit | integer | non | |
| currency | string | non |
registry_provider
Full detail on one provider in the Kaspa Agent Market by its payee pubkey: every service it lists, its reputation derived from chain-verified settlements (settled KAS, settled kUSD cents, counts, first/last), and its payee address. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| payee_pubkey | string | oui |
registry_activity
The Kaspa Agent Market's settlements feed: kUSD payments the registry verified on its own node, newest first (txid, box index, payee, cents, capability, time) and the all-time total. This is what agents actually paid, not what anyone claimed. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | integer | non |
verify_settlement
Did a kUSD payment count? Two independent answers. `registry`: the Kaspa Agent Market's verified settlement row(s) for the txid (it checked the box on its own node before recording it), or verified:false when it has none. `node`: when you also give the offer's payee_pubkey, cents and payment_id and this k402-mcp has a local kUSD wallet (stdio), the box is checked again on the wallet's node — an unspent kUSD box of exactly those cents, owned by the listed key tweaked by the payment_id, carrying the family's covenant id. A box the node has not indexed yet is asked again for up to `wait_seconds` (the index lags a broadcast by a few seconds). Free; never pays anything.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| txid | string | oui | |
| payee_pubkey | string | non | |
| cents | integer | non | |
| payment_id | string | non | |
| wait_seconds | integer | non |
channel_config
Parameters for opening a kaspa-channel — a covenant-enforced payment channel that settles per-call vouchers on Kaspa L1 with NO custodian (the trustless alternative to a prepaid session). Returns the payee pubkey, min/max channel size, required expiry lead, and maxfee. Free. Opening a channel means funding the channel covenant on-chain (payer holds the key), then paying per call with signed vouchers — use the `k402` Python client (`pip install k402`, k402.channel) to build the covenant and sign vouchers, since that flow needs your Kaspa key. Returns {error} if this gateway hasn't enabled the (experimental) channel rail.
Aucun paramètre.
channel_status
Status of a kaspa-channel by its channel id (covenant id): funded value, amount spent via vouchers, remaining, expiry, and whether it has been closed on-chain. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| channel_id | string | oui |
payment_options
Which coins and schemes this gateway accepts for payment. Free. Ways to pay any paid tool: a prepaid KAS session (open_session — simplest, no per-call step); per-call in any listed coin (pay the offer a 402 returns, then pay_per_call); or, where the experimental 'kaspa-channel' scheme is offered, a covenant payment channel that settles per-call vouchers on L1 with no custodian (see channel_config). Coins may include Kaspa, Pearl, BTC, LTC, DOGE, BCH, DASH, and EVM assets (ETC, ETH, USDC, USDT).
Aucun paramètre.
pay_per_call
Complete a PER-CALL coin payment. After a paid tool returns a 402 with pay_per_call_offers, pay one offer on-chain from your own wallet, then call this with the 402's `endpoint` and `request_body`, the chosen offer's `scheme` and `payment_id`, and your payment `txid`. The gateway verifies the payment landed and returns the tool's real result. (Alternative to a prepaid session — use this when you'd rather pay each call directly in a specific coin.)
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| endpoint | string | oui | |
| request_body | object | oui | |
| scheme | string | oui | |
| payment_id | string | oui | |
| txid | string | oui |
pay_kusd
Buy one call from the kUSD market: discover the providers listing `capability` for kUSD (registry_search currency='kUSD'), rank them (policy: registry | cheapest | reputation), pay the best one from YOUR kUSD wallet — at most `max_price_cents` — and return its result. The payment is a kUSD box of exactly the quoted cents to the provider, on the x402 wire (PAYMENT-REQUIRED / PAYMENT-SIGNATURE) or k402's kusd-utxo header; each payment also locks 1.5 KAS in the box (yours to recover is the provider's) plus ~0.1 KAS fee, reported in `outlay`. If the wallet is short it buys the shortfall + 50 cents through the kUSD PSM with your KAS. Fails over to the next provider when one is dead. Every payment stays inside the bounds the wallet's OPERATOR set (per-call ceiling, budgets, rate, top-up cap, allowlists, freeze — see kusd_spend_status); a refusal returns {"error", "code", "spend"} and nothing was paid. Local (stdio) k402-mcp only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| capability | string | oui | |
| request_body | object | oui | |
| max_price_cents | integer | non | |
| path | string | non | |
| policy | string | non |
get_quote
What one call would cost, fully checked, with NOTHING paid. Give a `capability` (the best listing on the Kaspa Agent Market is quoted, ranked by `policy`: registry | cheapest | reputation) or an `endpoint` (+ its listed `payee_pubkey` so the quote can be checked against it). Fetches the provider's 402 and returns the kUSD requirement: cents, the per-offer payee key, payment_id, wire, the full outlay (cents + 1.5 KAS in the box + fee), the checks that passed (our family, our network, payTo = the listed key tweaked by the offer, price within the cap) and what the operator's policy has left. A quote the policy or the checks refuse comes back as {error, code}. Local (stdio) k402-mcp only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| capability | string | non | |
| request_body | object | non | |
| endpoint | string | non | |
| payee_pubkey | string | non | |
| path | string | non | |
| max_price_cents | integer | non | |
| policy | string | non |
list_service
Sell on the Kaspa Agent Market: publish a kUSD-priced listing for YOUR 402-gated endpoint. The listing is signed with your kUSD wallet key (so payments reach you and nobody else can list as you) and the registry's listing fee (10¢ of kUSD on TN10) is paid through k402 from your wallet, inside the operator's policy. The endpoint must answer an unpaid request with a 402 carrying a kUSD requirement (k402's K402(kusd=…) does this). Returns the listing as stored, the registry's answer and the fee payment. Local (stdio) only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| capability | string | oui | |
| endpoint | string | oui | |
| price_cents | integer | oui | |
| description | string | non | |
| max_fee_cents | integer | non | |
| meta | object | non |
delist_service
Remove YOUR listing from the Kaspa Agent Market: a signed DELETE with the same listing body (same capability, endpoint, price, description), signed by your kUSD wallet key. Free. Local (stdio) only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| capability | string | oui | |
| endpoint | string | oui | |
| price_cents | integer | oui | |
| description | string | non |
kusd_balance
Your kUSD market wallet: kUSD cents (and the boxes they sit in), KAS, and the payee key other agents would pay. Local (stdio) k402-mcp only; free.
Aucun paramètre.
kusd_spend_status
What your kUSD wallet's OPERATOR allows pay_kusd to spend, and what is left: frozen (kill switch), lifetime total, this window's cents / calls / PSM top-ups / unserved payments, the remaining amount on each bounded axis, and the policy itself. Read-only and free; the policy can only be changed by the operator (k402-spend CLI, KUSD_SPEND_POLICY). Local (stdio) k402-mcp only.
Aucun paramètre.
summarize
Summarize text or a public URL in at most max_words. Paid (~$0.001 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| text | string | non | |
| url | string | non | |
| max_words | integer | non |
extract
Extract structured data from text as JSON guaranteed to match your JSON schema (schema-constrained decoding, not best-effort). Paid (~$0.0015 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| text | string | oui | |
| schema | object | oui | |
| instruction | string | non |
rewrite
Rewrite text per an instruction (tone, format, length...). Paid (~$0.001 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| text | string | oui | |
| instruction | string | oui |
classify
Classify text into one (or multiple, if multi=true) of 2-32 labels; the result is constrained to your label set. Paid (~$0.0003 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| text | string | oui | |
| labels | array<string> | oui | |
| multi | boolean | non |
read_url
Fetch a public web page and return its title + clean markdown; distill=true adds key-fact bullets. Useful when you have no web access of your own. Paid (~$0.0012 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| url | string | oui | |
| distill | boolean | non |
embed_text
Embed up to 64 texts (768-dim vectors, nomic-embed-text). Paid (~$0.0003 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| texts | array<string> | oui |
search_index
Store documents [{id, text, meta?}] in a named server-side collection for semantic search. Use an unguessable collection name and keep it secret. Paid (~$0.0015 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| collection | string | oui | |
| documents | array<object> | oui | |
| replace | boolean | non |
search_query
Semantic-search a collection you indexed earlier; returns top-k matches with scores. Paid (~$0.0003 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| collection | string | oui | |
| q | string | oui | |
| top_k | integer | non |
kaspa_balance
Balance of any Kaspa MAINNET address, straight from a node (no indexer, no API key). Paid (~$0.00015 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| address | string | oui |
kaspa_utxos
UTXO set of a Kaspa mainnet address, including scriptPublicKey and covenant_id where set. Paid (~$0.0003 in KAS).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| address | string | oui |
kaspa_tx_status
Mempool status of a Kaspa transaction. Absent from mempool means accepted-or-unknown — confirm acceptance by checking one of its outputs with kaspa_utxos. Paid (~$0.00015).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| txid | string | oui |
kaspa_fee_estimate
Current Kaspa mainnet feerate buckets (sompi per gram of tx mass). Paid (~$0.00015).
Aucun paramètre.
kaspa_network
Kaspa mainnet status: DAA score, block count, difficulty, node sync state. Paid (~$0.00015 in KAS).
Aucun paramètre.
generate
Run a prompt on a GPU model tier: 'chat' (fast 7B, ~$0.0015), 'llama' (budget 8B, ~$0.0008), 'reason' (35B, ~$0.004), 'think' (deep chain-of-thought 35B MoE, ~$0.004), 'code' (coder model, ~$0.0025), or 'kaspa-expert' (RAG-grounded, current Kaspa knowledge, ~$0.0015). Returns the completion text.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| prompt | string | oui | |
| tier | string | non | |
| system | string | non | |
| max_tokens | integer | non |
covenant_compile
Compile a Silverscript covenant to script hex, ABI, hardened template hash, and its P2SH address on each network. constructor_args is the silverc ctor JSON (e.g. [{"kind":"int","data":7}]). Paid (~$0.002). NOTE: 'compiles' ≠ proven on-chain.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| source | string | oui | |
| constructor_args | array<any> | non |
covenant_address
Derive the covenant P2SH address for a compiled script on 'mainnet' or 'testnet-10'. Paid (~$0.0003).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| script_hex | string | oui | |
| network | string | non |
covenant_utxos
Live UTXO set locked under a covenant address (covenant state inspection), from the node. Optionally filter by covenant_id. Paid (~$0.0003).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| address | string | oui | |
| network | string | non | |
| covenant_id | string | non |
covenant_build
Assemble a covenant spend tx. Each input: {txid, index, entry, compute_budget?, and either sigscript:{source,decl,args,is_leader?} to build a covenant sigscript server-side, or omit sigscript for a P2PK input you sign locally}. Each output: {amount, address|script_public_key_hex, covenant?:{authorizing_input,covenant_id}}. Returns the tx, a broadcast-ready rpc_transaction, fee accounting, and (if fully authorized) a pre-verify. We never sign. Paid (~$0.001).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| inputs | array<any> | oui | |
| outputs | array<any> | oui | |
| network | string | non | |
| lock_time | integer | non | |
| payload_hex | string | non |
covenant_check
Local txscript pre-verify of a signed covenant tx BEFORE broadcast — catches script failures that would otherwise cost you a broadcast. 'entries' are the spent UTXOs (covenant_utxos output plugs in directly). Returns {all_ok, inputs:[{index, ok, error?}]}. Paid (~$0.0005).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| transaction | object | oui | |
| entries | array<any> | oui |
covenant_broadcast
Broadcast a signed covenant tx (RpcTransaction JSON from covenant_build). MAINNET moves real KAS — run covenant_check first. Paid (~$0.0003).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| transaction | object | oui | |
| network | string | non |
prove_guest_upload
Upload a RISC Zero program binary (the .bin risc0-build emits, base64) once; returns its content-addressed image_id (also the verification key), reusable across proofs. Paid (~$0.01).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| program_b64 | string | oui |
prove_preflight
Execute a guest WITHOUT proving: exact cycle count + a signed price quote {total_cycles, price_kas, quote_id, quote_expires}. Run this first — proving cost scales with cycles by orders of magnitude. Paid (~$0.002).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| image_id | string | oui | |
| input_b64 | string | non |
prove_submit
Queue a proving job -> {job_id, cost_kas}. Pass quote_id (from prove_preflight; charged the quote) or max_kas (skip preflight; priced on actual cycles, refuses if over the cap). Then poll job_status and fetch job_result. Paid: the proof's cycle-based price (dynamic).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| image_id | string | oui | |
| input_b64 | string | non | |
| quote_id | string | non | |
| max_kas | number | non |
job_status
Poll a proving job: queued/running/done/failed, queue position, cost. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| job_id | string | oui |
job_result
Fetch a finished proving job's result {image_id, total_cycles, journal_b64, receipt_b64}. 404 until done; results kept 24h. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| job_id | string | oui |
attest_verify
Verify a RISC Zero receipt against an image_id -> {valid, journal_b64}. Anyone can check an attestation without trusting the prover. Paid (~$0.0002).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| receipt_b64 | string | oui | |
| image_id | string | oui |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://x402-compute.68cxgfyr0.workers.dev/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http k402 https://x402-compute.68cxgfyr0.workers.dev/mcpCustomize > Connectors > + Add > Add custom connector ; Name : k402 ; URL : https://x402-compute.68cxgfyr0.workers.dev/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : k402 ; Server URL : https://x402-compute.68cxgfyr0.workers.dev/mcp ; Create as a plugin{
"mcpServers": {
"k402": {
"url": "https://x402-compute.68cxgfyr0.workers.dev/mcp"
}
}
}{
"mcpServers": {
"k402": {
"type": "http",
"url": "https://x402-compute.68cxgfyr0.workers.dev/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"k402": {
"url": "https://x402-compute.68cxgfyr0.workers.dev/mcp"
}
}
}{
"mcpServers": {
"k402": {
"httpUrl": "https://x402-compute.68cxgfyr0.workers.dev/mcp"
}
}
}[mcp_servers.k402]
url = "https://x402-compute.68cxgfyr0.workers.dev/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
k402 · L’Atlas · Test du
[k402 — L’Atlas](https://latlas.dev/mcp/io.github.Kali123411/k402)Source : Registre officiel MCP · relevé le 30 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.