CU

codeturion/unity-api-mcp

Developer tools

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

65 stars 6 forks 品質 80 トレンド 8MIT

codeturion/unity-api-mcp は [https://github.com/codeturion/unity-api-mcp.] からインポートされた MCP サーバーの候補です

概要

codeturion/unity-api-mcp は [https://github.com/codeturion/unity-api-mcp.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

AIエージェントの正確なUnity APIドキュメントを提供するMCPサーバー。 幻覚されたシグネチャ、間違った名前空間、および非推奨APIの使用を防止します。

Unity 6 (マイナーストリームごとの1つのデータベース), Unity 2023, Unity 2022 LTS. Claudeコード、Cursor、Windsurf、またはMCP互換のAIツールで動作します。 Unityのインストールは不要です。 サポートされているバージョンを参照してください。 新しいUnityリリースは毎週自動的に検出され、ビルドされます。

クイックスタート

MCPコンフィグ(.mcp.json])、[mcp.json、またはツールのMCP設定]に追加し、プロジェクトに合わせて[UNITY_VERSION]を設定します。

有効な値: "6000.3" 、 "6" 、 ["2023"] 、 "2022" のような Unity 6 ストリーム。

まず、サーバーが正しいデータベース(~20-30 MB)を[~/.unity-api-mcp/にダウンロードします。

使い方

1.Versionの検出。 サーバは、Unity バージョンが機能するかどうかを把握します。

| 優先 | 出典 | 例 | お問い合わせ | 1 | [[[T8] env var | "2022", ["6"], ["6000.3", または ["6000.3.8f1"] | | 2 | [UNITY_PROJECT_PATH | [ProjectSettings/ProjectVersion.txt] を [2022.3.62f1] に [[6000.3.8f1] に ["6000.3"] に読みます | | 3 | デフォルト | [[T19] |

2.**データベースのダウンロード.

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

README

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

unity-api-mcp

MCP server that gives AI agents accurate Unity API documentation. Prevents hallucinated signatures, wrong namespaces, and deprecated API usage.

Supports Unity 6 (one database per minor stream), Unity 2023, and Unity 2022 LTS. Works with Claude Code, Cursor, Windsurf, or any MCP-compatible AI tool. No Unity installation required. See the supported versions. New Unity releases are detected and built automatically every week.

Quick Start

Add to your MCP config (.mcp.json, mcp.json, or your tool’s MCP settings), setting UNITY_VERSION to match your project:

{
  "mcpServers": {
    "unity-api": {
      "command": "uvx",
      "args": ["unity-api-mcp"],
      "env": {
        "UNITY_VERSION": "6000.3"
      }
    }
  }
}

Valid values: a Unity 6 stream like "6000.3", or "6", "2023", "2022".

On first run the server downloads the correct database (~20-30 MB) to ~/.unity-api-mcp/.

How It Works

  1. Version detection. The server figures out which Unity version to serve:
Priority Source Example
1 UNITY_VERSION env var "2022", "6", "6000.3", or "6000.3.8f1"
2 UNITY_PROJECT_PATH Reads ProjectSettings/ProjectVersion.txt, maps 2022.3.62f1 to "2022", 6000.3.8f1 to "6000.3"
3 Default "6"
  1. Database download. If the database for that version isn’t cached locally, it downloads from GitHub. Unity 6 minor streams (6000.0, 6000.3, 6000.5, …) get their own per-stream database, falling back to the generic 6 database when a stream database isn’t published. Cached databases are freshness-checked against the release on startup, so weekly rebuilds reach existing installs automatically.
GitHub で README 全文を見る

インストール

uvx unity-api-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "unity-api": { "command": "uvx", "args": ["unity-api-mcp"], "env": { "UNITY_VERSION": "6000.3" } } } }