更新godot ai到最新版本

This commit is contained in:
2026-09-12 22:48:37 +08:00
parent 7436359efd
commit 2027ca1c86
284 changed files with 45866 additions and 776 deletions
+24
View File
@@ -0,0 +1,24 @@
@tool
extends McpClient
func _init() -> void:
id = "gemini_cli"
display_name = "Gemini CLI"
config_type = "json"
path_template = {
"unix": "~/.gemini/settings.json",
"windows": "$USERPROFILE/.gemini/settings.json",
}
server_key_path = PackedStringArray(["mcpServers"])
entry_url_field = "httpUrl"
## Attach migration (#838). Gemini CLI stdio entries are flat
## command/args/env(+cwd); the config is one-of `command` | `url` (SSE) |
## `httpUrl` (docs/tools/mcp-server.md), so BOTH URL keys are legacy next
## to a command. `trust` bypasses tool confirmations — never seed it.
command_shape = McpClient.CommandShape.FLAT
command_legacy_keys = PackedStringArray(["httpUrl", "url"])
command_user_fields = PackedStringArray([
"timeout", "trust", "includeTools", "excludeTools", "env", "cwd",
])
command_timeout_fields = PackedStringArray(["timeout"])