24 lines
867 B
GDScript
Vendored
24 lines
867 B
GDScript
Vendored
@tool
|
|
extends McpClient
|
|
|
|
|
|
func _init() -> void:
|
|
id = "kiro"
|
|
display_name = "Kiro"
|
|
config_type = "json"
|
|
path_template = {
|
|
"unix": "~/.kiro/settings/mcp.json",
|
|
"windows": "$USERPROFILE/.kiro/settings/mcp.json",
|
|
}
|
|
server_key_path = PackedStringArray(["mcpServers"])
|
|
## `disabled` is user-state — preserved across reconfigure.
|
|
entry_initial_fields = {"disabled": false}
|
|
## Attach migration (#838). Kiro stdio entries are flat command/args/env
|
|
## with no type discriminator (kiro.dev/docs/mcp/configuration).
|
|
## `autoApprove` is user-state, same contract as the URL entry's fields.
|
|
command_shape = McpClient.CommandShape.FLAT
|
|
command_legacy_keys = PackedStringArray(["url"])
|
|
command_initial_fields = {"disabled": false}
|
|
command_user_fields = PackedStringArray(["disabled", "autoApprove", "disabledTools", "env"])
|
|
command_supports_url_fallback = true
|