Qt Documentation
Qt 5 and Qt 6 framework and product docs: Qt Creator, MCUs, Squish, Coco and more.
我該用這個嗎
品質與安全性
A
根據工具定義與協定合規性的自動化分析。
上下文成本
~646Token(工具定義)
~3.1 KB典型回應大小
中等的注意力影響(128k 上下文的 0.50%)
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"qt-documentation": {
"url": "https://qt-docs-mcp.qt.io/mcp"
}
}
}遠端端點
https://qt-docs-mcp.qt.io/mcpstreamable-http它能做什麼
工具清單
工具(2)
🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢qt_documentation_search(filter, intent, keywords, max_results, module, ...)
Call qt_documentation_search when: (a) you're about to claim a signal/slot/property/default exists, (b) the API is in Qt 6.7+ or a non-core module (MQTT, OPC UA, Network Auth, etc), (c) the user used the words 'docs', 'official', 'verify', or 'check'. Skip when: the question is about basic QString/QObject/signal-slot syntax.
輸入結構描述
{
"type": "object",
"properties": {
"filter": {
"description": "Optional: Filter by document type. Default is 'all'. Note: 'function' returns the class reference page that contains the function (there are no function-level pages); for QML, use 'qml'.",
"enum": [
"all",
"class",
"qml",
"function",
"guide"
],
"type": "string"
},
"intent": {
"description": "Optional: Prioritizes (not filters) results by type. 'api'=class reference, 'tutorial'=how-to guides, 'guide'=overviews, 'concept'=explanations, 'example'=code samples, 'migration'=porting guides.",
"enum": [
"api",
"tutorial",
"guide",
"concept",
"example",
"migration"
],
"type": "string"
},
"keywords": {
"description": "Optional: Array of keywords to search for. Results match ANY keyword. Example: [\"button\", \"signal\", \"connect\"]. Alternative to 'query' for better multi-term matching.",
"items": {
"type": "string"
},
"type": "array"
},
"max_results": {
"description": "Optional: Maximum number of results to return (1-10). Default is 3.",
"maximum": 10,
"minimum": 1,
"type": "integer"
},
"module": {
"description": "Optional: Limit search to specific Qt module (e.g., 'qtcore', 'qtwidgets', 'qtqml', 'qtquick', 'qtnetwork')",
"type": "string"
},
"product": {
"description": "Optional: Limit search to a specific documentation product (e.g. 'qt', 'qtcreator', 'pyside6'). Omit to search all products.",
"type": "string"
},
"query": {
"description": "Search query for Qt documentation (e.g., 'Animation', 'QTimer', 'signal slot'). Optional if 'keywords' is provided.",
"type": "string"
},
"version": {
"description": "Optional: Qt version to search (e.g., '6.10.0', '6.9.0'). Defaults to latest installed version if not specified.",
"type": "string"
}
}
}🟢qt_documentation_read(file, version)
Read the full content of a specific Qt documentation page. Use the filename shown in search results.
輸入結構描述
{
"type": "object",
"properties": {
"file": {
"description": "Filename of the Qt documentation page. Use ONLY the filename from search results (e.g., 'signalsandslots.html' NOT full paths with version numbers). Module paths like 'qtcore/qobject.html' also work.",
"type": "string"
},
"version": {
"description": "Optional: Qt version to read from (e.g., '6.10.0', '6.9.0'). Defaults to latest installed version if not specified.",
"type": "string"
}
},
"required": [
"file"
]
}建議的提示詞
search_research
Search for information about [topic] using Qt Documentation
預期的工具:
qt_documentation_searchfind_specific
Find [specific item] using Qt Documentation
預期的工具:
qt_documentation_searchretrieve_data
Get details about [item] from Qt Documentation
預期的工具:
qt_documentation_readfetch_info
Fetch [information type] using Qt Documentation
預期的工具:
qt_documentation_readresearch_workflow
Search for [topic], then get detailed information about the top results using Qt Documentation
預期的工具:
qt_documentation_searchqt_documentation_read社群
證據
近期觀測
已驗證未記錄版本2 個工具
已驗證未記錄版本2 個工具