Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| QT_MCP_HOST | No | Probe TCP host (used by the MCP server to connect to the probe). | localhost |
| QT_MCP_PORT | No | Probe TCP listen port. | 9142 |
| QT_MCP_PROBE | No | Set to 1 to auto-activate the probe in the target application. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| qt_snapshot | Capture the full Qt widget tree as a structured accessibility-like snapshot. Returns a YAML-like text tree with widget types, object names, text content, geometry, visibility, enabled state, and interaction refs (w1, w2, ...). Use the refs to interact with specific widgets via other tools. |
| qt_screenshot | Take a screenshot of the entire window or a specific widget. |
| qt_widget_details | Get detailed properties of a specific widget. |
| qt_click | Click a widget. |
| qt_type | Type text into a widget. |
| qt_key_press | Send a key event to a widget or the focused widget. |
| qt_set_property | Set a Qt property on a widget. |
| qt_invoke_slot | Invoke a slot or method on a QObject. |
| qt_get_text | Extract text content from a text editor or input widget. |
| qt_trigger_action | Trigger a menu action or toolbar action by text or index. |
| qt_wait_for | Wait for a UI state change. |
| qt_list_windows | List all top-level windows and their types. |
| qt_object_tree | Get the full QObject parent-child tree (not just visible widgets). |
| qt_active_popup | Check for active popup or modal dialog widgets. |
| qt_menu_items | Get actions from a QMenu widget. |
| qt_messages | Returns all console messages |
| qt_thread_check | Check thread affinity of all QObjects to detect threading issues. Reports which threads own QObjects, flags QWidget subclasses on non-GUI threads (the #1 cause of GUI freezes), and lists QThread instances. |
| qt_signals | Inspect signal connections on a QObject. |
| qt_layout_check | Detect layout issues in the visible widget tree. |
| qt_scene_snapshot | Get all items in a QGraphicsScene. |
| qt_vtk_scene_info | Get VTK scene state from a PyVista/VTK widget. |
| qt_vtk_screenshot | Capture a VTK render window to an image. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |