Files
g-world/addons/godot_ai/clients/qwen_code.gd
T
2026-08-10 20:39:06 +03:00

27 lines
922 B
GDScript
Vendored

@tool
extends McpClient
func _init() -> void:
id = "qwen_code"
display_name = "Qwen Code"
config_type = "json"
path_template = {
"unix": "~/.qwen/settings.json",
"windows": "$USERPROFILE/.qwen/settings.json",
}
server_key_path = PackedStringArray(["mcpServers"])
entry_url_field = "httpUrl"
## Attach migration (#838). Qwen Code is a gemini-cli fork with the same
## flat stdio shape and one-of `command` | `url` | `httpUrl` rule
## (docs/users/features/mcp.md). Qwen adds `discoveryTimeoutMs` (stdio
## discovery handshake cap, default 30s).
command_shape = McpClient.CommandShape.FLAT
command_legacy_keys = PackedStringArray(["httpUrl", "url"])
command_user_fields = PackedStringArray([
"timeout", "trust", "includeTools", "excludeTools", "env", "cwd",
"discoveryTimeoutMs",
])
command_timeout_fields = PackedStringArray(["timeout", "discoveryTimeoutMs"])
command_supports_url_fallback = true