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 个工具
已验证未记录版本2 个工具