
CUDA-Q Docs
io.github.rogerawong由 GitHub 帳號 rogerawong 發布v0.1.1更新於 Oct 24, 2026
CUDA-Q docs, API reference, and runnable examples for AI agents, pinned to your installed version.
概覽
為 AI 助理提供與已安裝版本綁定的 NVIDIA CUDA-Q 文件、API 參考與可執行範例,採用本機全文檢索。
- 可以做什麼
- 檢索文件並以乾淨的 Markdown 讀取完整頁面
- 精確解析 Python 或 C++ API 符號,回傳類型、文件連結與摘錄
- 尋找與對應 CUDA-Q 發行版相符的完整可執行範例程式
- 列出全部執行目標(模擬器、硬體廠商、雲端平台)並提供選擇建議
- 以資源形式提供已安裝與已索引版本,以及所服務版本的 llms.txt
- 適用情境
- 適合在助理撰寫或除錯 CUDA-Q 量子程式、容易引用已改名 API、已停用目標名稱或錯誤版本安裝步驟時使用。它讓回答與使用者實際安裝的 cudaq 套件保持一致。
- 執行需求
- 透過 uvx 或 pip 安裝 Python 套件 cudaq-docs-mcp,以 stdio 在本機執行。無需 API 金鑰或向量嵌入。首次使用時自動下載數 MB 的預建索引;沒有預建資源的版本需在本機建置。選用環境變數 CUDAQ_DOCS_MCP_AUTOBUILD 與 CUDAQ_DOCS_MCP_CACHE。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 CUDA-Q Docs,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
cudaq-docs-mcp
An MCP server that serves NVIDIA CUDA-Q documentation, API reference, and runnable examples to AI agents: version-pinned to the cudaq you actually have installed.
Community project, not affiliated with or endorsed by NVIDIA. CUDA-Q is a trademark of NVIDIA Corporation.
Why
Quantum SDKs move faster than model training data. Ask an AI assistant to write CUDA-Q code and it answers from whatever it memorized: renamed APIs, retired target names, install steps for a version you do not run. The failure is version skew, and it lands where onboarding matters most: the first ten minutes.
This server gives any MCP-capable agent the current answer instead. Documentation search, exact API symbol resolution, complete runnable examples, and a backend-selection guide, all served from an index of the docs that match your installed cudaq package. No API keys and no embeddings: SQLite full-text search with BM25 ranking, on your machine, offline once the index exists.
Quick start
Register the server with your client; on first use it downloads a prebuilt index (a couple of megabytes) automatically. Building locally is only needed for versions without a prebuilt asset:
Claude Code
Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json), or any client that takes a JSON server map:
VS Code (.vscode/mcp.json):
Prefer pip? pip install cudaq-docs-mcp and use cudaq-docs-mcp as the command.
Tools
Resources: cudaq://versions (installed and indexed versions) and cudaq://llms.txt (CUDA-Q's own llms.txt for the served version).
Version-pinned answers
Every tool resolves its docs version in this order:
- An explicit
versionargument ("0.15.0", "latest") - The installed cudaq package, detected from distribution metadata (cudaq is never imported)
latest
Indexes are per-version. When a pinned index is missing the server says so in the response and serves latest instead, with the one command that fixes it. Skew becomes visible instead of silent.
How it works
CUDA-Q publishes the raw material: a Sphinx inventory (objects.inv) listing every page and API symbol, markdown mirrors of each docs page, a per-version llms.txt, and example sources in the repository. This server builds on that groundwork:
objects.invis the crawl manifest and the API symbol table: no scraping heuristics- each markdown mirror is cleaned of theme chrome, code blocks are rebuilt with their language, and heading anchors are preserved for deep links
- pages are chunked by heading and indexed in SQLite FTS5 (porter stemming, BM25 ranking)
- examples, snippets, and application sources are fetched from the GitHub release tag that matches the docs version
The whole index is one SQLite file per version in your cache directory (cudaq-docs-mcp info shows where). A nightly workflow rebuilds the latest index so refreshes stay a download, not a build.
CLI
Set CUDAQ_DOCS_MCP_AUTOBUILD=1 to build automatically on first use, and CUDAQ_DOCS_MCP_CACHE to relocate the cache.
Roadmap
- Prebuilt indexes for pinned release versions, not just
latest - An eval set of real developer questions, with published retrieval scores
- CUDA-QX library docs
Contributing
Issues and PRs are welcome. Commits need a DCO sign-off (git commit -s); see CONTRIBUTING.md. Built in the open with Claude Code.
License
Apache-2.0. Documentation content belongs to NVIDIA Corporation & Affiliates, originates from the Apache-2.0 licensed NVIDIA/cuda-quantum repository, and every served result links back to the canonical page. See NOTICE.
來源:README.md,提交 e9abee0
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分