Qtcl Mcp Server

io.github.shemshallah由 GitHub 账号 shemshallah 发布v8.2.0更新于 Nov 2, 2026

Agent-native post-quantum blockchain. 11 tools: send, balance, quantum oracle metrics. Flat fee.

已验证SSE可网页运行金融安全与监控

概览

AI 生成的概览

面向 QTCL 后量子区块链的远程 MCP 服务器:创建钱包、签名、查询余额并提交交易。

可以做什么
  • 钱包与密钥:生成 HypΓ 或 Falcon-512 加 SL(3,p) 混合密钥的 QTCL 钱包,并查看 PQC 模块状态
  • 签名:用任一密钥类型对 32 字节消息哈希签名
  • 读取链上状态:查询余额、UTXO、交易、区块、链信息、节点与预言机注册表
  • 转移资金:提交已签名的 UTXO 交易,提交完成工作量证明的区块
  • 量子功能:执行量子绑定加密与解密、在 IBM 硬件上运行 QLDPC 流程,并读取相干性与预言机指标
  • 维护:回溯结算区块并修复缺失的 UTXO
适用场景
当你希望助手与 QTCL 区块链交互时使用,例如创建钱包、签名并发送交易、查看链与 UTXO 状态,或试用其量子预言机与加密功能。
运行要求
远程 SSE 端点;未声明任何软件包、账户、API 密钥或环境变量。助手需要能访问该托管服务的网络。发送交易需要本地保存的私钥以及调用方自行计算的 nonce。
安装前请注意
创建钱包会在响应中返回私钥,服务器称不会保留,调用方必须自行妥善保存。签名与发送交易会转移资金且不可撤销,并收取固定手续费。服务器可提交区块并执行会改动链上数据的修复或结算操作。量子加密与流程调用在 IBM 量子硬件上运行,可能耗时较长或按量计费。QTCL 没有公开的美元交易所,价格数据仅为网络健康参考。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Qtcl Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 SSE。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.shemshallah%2Fqtcl-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "qtcl": {
      "type": "sse",
      "url": "https://qtcl-blockchain.koyeb.app/mcp/sse"
    }
  }
}

README

该仓库没有 README。

工具

22

qtcl_create_wallet

Create a new QTCL post-quantum wallet backed by a real HypΓ keypair (Schnorr-Γ over SL(3,p), 512-step random walk, SHA3-256² address). Returns private_key, public_key, address, and created_at. Store private_key securely — the server never retains it.

输入参数label

qtcl_sign_message

Sign a 32-byte message hash with a HypΓ private key using Schnorr-Γ. To sign a transaction, compute: SHA3-256(JSON.dumps({"sender": from_addr, "recipient": to_addr, "amount": amount_float, "nonce": nonce_int}, sort_keys=True)) → pass the 64-char hex as message_hex. The nonce MUST match the nonce you will use in qtcl_send_transaction. Returns the full signature dict (with canonical R/Z matrix fields) — pass the entire JSON output as the signature field to qtcl_send_transaction. CRITICAL: use the 'signature_for_tx' field from the response as the 'signature' argument to qtcl_send_transaction — do not extract sub-fields.

输入参数message_hex必填private_key必填

qtcl_get_balance

Check QTCL balance for any address. Returns balance in base units (qsat), UTXO count, and UTXO list. 1 QTCL = 100 qsat.

输入参数address必填

qtcl_get_utxos

List unspent transaction outputs (UTXOs) for an address. Returns tx_hash, output_index, amount_base per coin.

输入参数limitaddress必填

qtcl_send_transaction

Submit a signed UTXO transaction to the QTCL network. Flat fee: 1 qsat. Finality: ~18 seconds. WORKFLOW: (1) pick nonce = int(time.time()*1000) [ms epoch]. (2) build payload = JSON.dumps({sender,recipient,amount,nonce}, sort_keys=True). (3) hash = SHA3-256(payload) as 64-char hex. (4) call qtcl_sign_message(message_hex=hash, private_key=key). (5) pass the 'signature_for_tx' field from step 4 as the 'signature' arg here, with the SAME nonce used in steps 1-4. CRITICAL: nonce must be a millisecond timestamp (>1700000000000) to avoid nonce_replay rejection. Never use sequential integers.

输入参数memononceamount必填signaturepublic_keyto_address必填from_address必填

qtcl_get_transaction

Look up a QTCL transaction by its SHA3-256 hash. Returns full tx details, status, and block height.

输入参数tx_hash必填

qtcl_get_chain_info

Current blockchain state: height, latest block hash, mempool depth, oracle status, and system health vector.

无需输入参数。

qtcl_get_block

Retrieve a block by height (integer) or hash (hex string). Omit both for the latest block.

输入参数hashheight

qtcl_get_recent_transactions

List recent transactions, optionally filtered by address. Returns newest first. Max 50 per call.

输入参数addressper_page

qtcl_get_quantum_metrics

Live quantum coherence metrics: W-state fidelity (≥0.75 healthy), entanglement witness (NPT criterion), oracle consensus round, Mermin inequality test, and kappa=0.11 non-Markovian coherence score.

无需输入参数。

qtcl_get_oracle_registry

List registered quantum oracle nodes participating in 5-oracle Byzantine consensus (3-of-5 majority).

输入参数limit

qtcl_get_peers

List active P2P peers in the QTCL Kademlia DHT network.

输入参数limit

qtcl_get_price

QTCL network quantum coherence metrics and valuation signals. Note: QTCL has no public USD exchange. Returns W-state fidelity, entanglement witness, and oracle coherence as network health proxy.

无需输入参数。

qtcl_retro_settle

Retroactively settle all blocks whose UTXOs are missing from address_utxos. Safe to call repeatedly — idempotent. Returns counts of settled/skipped/error blocks. Use this when miner balance is lower than expected after mining blocks.

无需输入参数。

qtcl_repair_utxos

Nuclear UTXO repair: bypasses settlement machinery and directly inserts missing UTXOs from the transactions table. Use when qtcl_retro_settle reports success but UTXOs are still missing. Commits per-UTXO for maximum isolation. Returns repaired_blocks, repaired_utxos, recomputed_wallets counts.

无需输入参数。

qtcl_submit_block

Submit a fully PoW-solved and HypΓ-signed block to the chain. This is the unified miner submission path. The miner client performs PoW locally, signs the block header, then calls this with the complete payload. Required: height, block_hash, parent_hash, merkle_root, timestamp, nonce, miner_address, difficulty_bits, w_entropy_hash, hyp_signature, miner_public_key_hex. Optional: transactions (JSON array), w_state_fidelity, pq0, pq_curr, pq_last, mermin_value, mermin_violated, quantum_field_16x16x16. Returns: {status, height, block_hash, next_height, miner_reward_qtcl}.

输入参数pq0nonce必填height必填pq_currpq_lasttimestamp必填block_hash必填merkle_root必填parent_hash必填mermin_valuetransactionshyp_signature必填另有 7 个

qtcl_quantum_encrypt

Quantum-bound encryption via IBM QLDPC hardware (ibm_marrakesh/ibm_kingston). Two modes: quantum_bound (async=false, default): XOR-masks the encapsulated key with a hardware-derived quantum key. Runs synchronously with 8192 shots for deterministic results. Recipient MUST use qtcl_quantum_decrypt to recover the key. attestation (async=true): Leaves encapsulated key unchanged, runs hardware in background. Attaches quantum_commitment as metadata. Classical decrypt still works. Returns: Ciphertext dict with quantum_commitment, quantum_status, quantum_mode, quantum_hardened, and all standard encryption fields.

输入参数asyncibm_tokenpublic_key必填plaintext_hex必填

qtcl_quantum_decrypt

Decrypt quantum-bound or quantum-assisted ciphertext. Auto-detects mode from the ciphertext dict: quantum_bound → runs QLDPC pipeline on masked key, XOR-unmasks, decrypts attestation → tries classical first, falls back to quantum-assisted recovery classical → pure classical decrypt Returns: Plaintext (hex), plaintext_length, quantum_assisted flag, quantum_mode.

输入参数ibm_tokenciphertext必填private_key必填

qtcl_quantum_pipeline

Run the full QLDPC pipeline directly on IBM quantum hardware. Encodes ciphertext bytes into a hyperbolic QLDPC code, runs on real IBM hardware (8192 shots), decodes syndromes via BP+OSD, and returns the recovered key fragment. Returns: Pipeline result with recovered_key_hex, residual, status, job_id, backend.

输入参数genusshotsibm_tokenciphertext_hex必填

qtcl_create_hybrid_wallet

Create a new QTCL wallet with HYBRID post-quantum keys: Falcon-512 (NIST FIPS 206, 128-bit PQ security) + SL(3,p) (~70-bit classical). Returns full keypair dict with both Falcon and SL(3,p) components. Server does NOT retain secret keys. This is the v3 recommended wallet type — quantum-safe by default.

输入参数label

qtcl_sign_message_hybrid

Sign a 32-byte message hash with HYBRID PQC (Falcon-512 + SL(3,p)). Both Falcon and SL(3,p) signatures are computed independently — verification requires BOTH to be valid. message_hex must be 64 hex chars (SHA3-256 of signing payload). private_key_json must be the full JSON output from qtcl_create_hybrid_wallet. Returns hybrid signature dict — pass verbatim as 'signature' to qtcl_send_transaction.

输入参数message_hex必填private_key_json必填

qtcl_get_pqc_status

Return PQC module status — shows whether Falcon-512 is available, key/signature sizes, security level, and hybrid signature overhead. Use to check if the server supports full hybrid PQ signatures.

无需输入参数。

版本历史

1
  1. v8.2.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分