GodotLens

v1.2.0
io.github.pzalutski-pixel/godotlens Checked 3 days ago Published 1 month ago

Godot's own view of your GDScript project: code, scenes, and the running game

Values you need

VariableWhat it is
GODOT_LSP_HOSToptional Godot language server host Default: 127.0.0.1
GODOT_LSP_PORToptional Godot language server port (the VS Code extension uses 6008) Default: 6005
GODOT_DAP_HOSToptional Godot debug adapter host Default: 127.0.0.1
GODOT_DAP_PORToptional Godot debug adapter port, used by the debug_* tools Default: 6006
GODOT_BINoptional Godot executable, required by scene_*, project_config and runtime_*
GODOT_PROJECT_ROOToptional Project root; auto-detected by walking up for project.godot
GODOT_LSP_TIMEOUToptional Seconds to wait for a single LSP response Default: 15
GODOT_DIAGNOSTICS_TIMEOUToptional Seconds to wait for diagnostics after a sync Default: 8
GODOT_VERSIONoptional Override Godot capability detection
GODOT_FIND_FILE_LIMIToptional Max files gdscript_find inspects across the project Default: 60
GODOT_RUNTIME_MAX_SESSIONSoptional Max games runtime_run keeps running at once Default: 4

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add godotlens -- npx -y godotlens-mcp@1.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "godotlens": {
      "args": [
        "-y",
        "godotlens-mcp@1.2.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "godotlens": {
      "args": [
        "-y",
        "godotlens-mcp@1.2.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "godotlens": {
      "args": [
        "-y",
        "godotlens-mcp@1.2.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.godotlens]
command = "npx"
args = ["-y", "godotlens-mcp@1.2.0"]

PyPI (uvx)

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add godotlens -- uvx godotlens-mcp==1.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "godotlens": {
      "args": [
        "godotlens-mcp==1.2.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "godotlens": {
      "args": [
        "godotlens-mcp==1.2.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "godotlens": {
      "args": [
        "godotlens-mcp==1.2.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.godotlens]
command = "uvx"
args = ["godotlens-mcp==1.2.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: gdscript_status, gdscript_definition, gdscript_references, gdscript_hover, gdscript_symbols, gdscript_signature_help, gdscript_rename, gdscript_sync_file, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json