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 分