TG

tmhsdigital/godot-correctness-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

0 stars 8 forks 品質 71 トレンド 20NOASSERTION

Godot 4.x GDScriptプロジェクト用のオフライン静的矯正MCPサーバー

概要

静的にGodot 4.x GDScriptプロジェクトの正しさをチェックするモデルコンテキストプロトコルサーバー(およびgdcorrect CLI)。 実行 — エディタを起動しなくても、実行中のGodotインスタンスを必要としず、実行時にネットワークに触れることはありません。 1. — コミットされたツリー・シッター・文法(WASM)による反パターンの検出。 delta-misuse、get-node-in-process、missing-onready、untyped-declaration、 await-misuse、stringly-nodepath、connect-without-disconnect、float-grid-equality、Godotバージョンに対するremove-api-usageチェックが宣言されます。 docs/lint.md を参照してください。 2. — クエリクラス/メソッド/プロパティ/シグナルをクエリし、Godotと、コミットされたオフラインシンボルデータベースから API を区別します。 docs/symbol-db.md を参照してください。 3。 — .tscn、.tres、および project.godot を検証します。データドリブン .tres レジストリの深い検証 (ダンリングパスチェック) を含みます。 docs/scenes.md を参照してください。 - ランニングエディタやゲームに接続しません。 - Godot内部にインストールしない。 - GDScriptのみ.

概要(AI 翻訳)

Godot 4.x GDScriptプロジェクト用の静的矯正MCPサーバーのオフライン

お問い合わせ

静的にチェックするモデルコンテキストプロトコルサーバー(および[gdcorrect]) CLI) Godot 4.x GDScriptプロジェクトの正しさ。 それはheadless、オフラインおよびで動かします CI — エディタを起動しなくても、Godotインスタンスを実行する必要はありません。 実行時にネットワークに触れることはありません。

3つの柱

  1. GDScript linting — コミットされたツリー・シッターによる反パターン検出 文法(WASM) delta-misuse, [get-node-in-process]のようなルール, missing-onready, [untyped-declaration], [await-misuse], [[stringly-nodepath]], connect-without-disconnect, [float-grid-equality], プラス [removed-api-usage] プロジェクトが宣言するGodotバージョンをチェックします。 docs/lint.md を参照してください。 2。 クロスバージョンAPIルックアップ&ディフュー — クエリクラス/メソッド/プロパティ/シグナル Godot 4.4 と4.5 の間で API を差して、オフラインでコミット シンボルデータベース。 docs/symbol-db.md を参照してください。 3.Scene / リソース / レジストリ解析 — [.tscn]、 [.tres]、および [project.godot, データドリブン [[.tres]]の深い検証を含む, レジストリ (ダンリングパスチェック) docs/scenes.md を参照してください。

非ゴール

  • **生きている橋無し.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

godot-correctness-mcp

Offline static correctness MCP server for Godot 4.x GDScript projects


A Model Context Protocol server (and gdcorrect CLI) that statically checks the correctness of Godot 4.x GDScript projects. It runs headless, offline, and in CI — it never launches the editor, never needs a running Godot instance, and never touches the network at runtime.

Three pillars

  1. GDScript linting — anti-pattern detection via a committed tree-sitter grammar (WASM). Rules like delta-misuse, get-node-in-process, missing-onready, untyped-declaration, await-misuse, stringly-nodepath, connect-without-disconnect, float-grid-equality, plus the removed-api-usage check against the Godot version your project declares. See docs/lint.md.
  2. Cross-version API lookup & diff — query classes/methods/properties/signals and diff the API between Godot 4.4 and 4.5, from committed offline symbol databases. See docs/symbol-db.md.
  3. Scene / resource / registry analysis — validate .tscn, .tres, and project.godot, including deep validation of data-driven .tres registries (the dangling-path check). See docs/scenes.md.

Non-goals

  • No live bridge. It does not connect to a running editor or game.
  • No editor plugin. Nothing to install inside Godot.
  • No C#. GDScript only.
  • Nothing older than Godot 4.4. Symbol data is pinned to 4.4 and 4.5.

This is deliberately the complement to the live-session Godot MCP tools: it is the one you run in CI and headless pipelines.

Installation

As an MCP server (Claude Desktop / Cursor mcpServers config):

{
  "mcpServers": {
    "godot-correctness": {
      "command": "npx",
      "args": ["-y", "@tmhs/godot-correctness-mcp"]
    }
  }
}

As a CLI:

npx -y -p @tmhs/godot-correctness-mcp@^0.2 gdcorrect lint . --format json

MCP surface

Tools: server_info; api_symbol_lookup, api_class_summary, api_diff; lint_file, lint_project, list_rules; validate_scenes, validate_project_config, validate_registries, project_report. The lint, validate, and report tools take an optional baseline file (the one gdcorrect --write-baseline writes) to return only new findings; list_rules (and gdcorrect rules) lists every rule id with its default and per-project severity.

Resources: curated GDScript skill snippets under skill:// (data-driven resources, signal hygiene, typed GDScript, preload vs load).

CLI and CI

gdcorrect [options], where `` is lint, validate-scenes, validate-project, validate-registries, or report (gdcorrect --help lists them all).

Option Meaning
GitHub で README 全文を見る

インストール

npx -y @tmhs/godot-correctness-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "godot-correctness": { "command": "npx", "args": ["-y", "@tmhs/godot-correctness-mcp"] } } }