first commit

This commit is contained in:
Leonid Pershin
2026-08-10 20:39:06 +03:00
commit f16f60445c
281 changed files with 43576 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
@tool
extends McpClient
func _init() -> void:
id = "cursor"
display_name = "Cursor"
config_type = "json"
path_template = {"unix": "~/.cursor/mcp.json", "windows": "$USERPROFILE/.cursor/mcp.json"}
server_key_path = PackedStringArray(["mcpServers"])
## Attach migration (#838). Cursor's stdio entries are flat command/args/env
## (cursor.com/docs/context/mcp). The docs' reference table documents
## `type: "stdio"`; pinning it also repins any hand-added `type: "http"`
## left on the legacy URL entry, which would otherwise survive the
## deep-copy migration and misroute the transport.
command_shape = McpClient.CommandShape.FLAT
command_transport_key = "type"
command_transport_value = "stdio"
command_legacy_keys = PackedStringArray(["url"])
command_user_fields = PackedStringArray(["env", "envFile"])
command_supports_url_fallback = true