-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add Kimi Code CLI client configurator #1119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: beta
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.IO; | ||
| using MCPForUnity.Editor.Models; | ||
|
|
||
| namespace MCPForUnity.Editor.Clients.Configurators | ||
| { | ||
| /// <summary> | ||
| /// Kimi Code CLI MCP client configurator. | ||
| /// Kimi Code uses a JSON-based configuration file with mcpServers section. | ||
| /// Config path: ~/.kimi/mcp.json | ||
| /// | ||
| /// Kimi Code supports both stdio (uvx) and HTTP transport modes. | ||
| /// Default: stdio mode (works without Unity Editor for basic operations) | ||
| /// HTTP mode: requires Unity Editor running with MCP HTTP server started | ||
| /// </summary> | ||
| public class KimiCodeConfigurator : JsonFileMcpConfigurator | ||
| { | ||
| public KimiCodeConfigurator() : base(new McpClient | ||
| { | ||
| name = "Kimi Code", | ||
| windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".kimi", "mcp.json"), | ||
| macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".kimi", "mcp.json"), | ||
| linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".kimi", "mcp.json"), | ||
| SupportsHttpTransport = true, | ||
| }) | ||
| { } | ||
|
|
||
| public override IList<string> GetInstallationSteps() => new List<string> | ||
| { | ||
| "Ensure Kimi Code CLI is installed (pip install kimi-cli or see https://github.com/MoonshotAI/kimi-cli)", | ||
| "Click 'Auto Configure' to automatically add UnityMCP to ~/.kimi/mcp.json", | ||
| "OR click 'Manual Setup' to copy the configuration JSON", | ||
| "Open ~/.kimi/mcp.json and paste the configuration", | ||
| "Save and restart Kimi Code CLI", | ||
| "Use 'kimi mcp list' to verify Unity MCP is connected", | ||
| "Note: For full functionality, open Unity Editor and start HTTP server" | ||
| }; | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| [](https://modelcontextprotocol.io/introduction) | ||
| [](https://opensource.org/licenses/MIT) | ||
|
|
||
| **Create your Unity apps with LLMs!** MCP for Unity bridges AI assistants (Claude, Claude Code, Cursor, VS Code, etc.) with your Unity Editor via the [Model Context Protocol](https://modelcontextprotocol.io/introduction). Give your LLM the tools to manage assets, control scenes, edit scripts, and automate tasks. | ||
| **Create your Unity apps with LLMs!** MCP for Unity bridges AI assistants (Claude, Claude Code, Cursor, VS Code, Kimi Code, etc.) with your Unity Editor via the [Model Context Protocol](https://modelcontextprotocol.io/introduction). Give your LLM the tools to manage assets, control scenes, edit scripts, and automate tasks. | ||
|
|
||
| <img alt="MCP for Unity building a scene" src="docs/images/building_scene.gif"> | ||
|
|
||
|
|
@@ -31,6 +31,7 @@ | |
| <details> | ||
| <summary>Older releases</summary> | ||
|
|
||
| * **v9.6.9** — Added Kimi Code CLI client configurator. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix release chronology in changelog section Line 34 lists 🤖 Prompt for AI Agents |
||
| * **v9.4.8** — New editor UI, real-time tool toggling via `manage_tools`, skill sync window, multi-view screenshot, one-click Roslyn installer, Qwen Code & Gemini CLI clients, ProBuilder mesh editing via `manage_probuilder`. | ||
| * **v9.4.7** — Per-call Unity instance routing, macOS pyenv PATH fix, domain reload resilience for script tools. | ||
| * **v9.4.6** — New `manage_animation` tool, Cline client support, stale connection detection, tool state persistence across reloads. | ||
|
|
@@ -47,7 +48,7 @@ | |
|
|
||
| * **Unity 2021.3 LTS+** — [Download Unity](https://unity.com/download) | ||
| * **Python 3.10+** and **uv** — [Install uv](https://docs.astral.sh/uv/getting-started/installation/) | ||
| * **An MCP Client** — [Claude Desktop](https://claude.ai/download) | [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | [Cursor](https://www.cursor.com/en/downloads) | [VS Code Copilot](https://code.visualstudio.com/docs/copilot/overview) | [GitHub Copilot CLI](https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli) | [OpenClaw](https://openclaw.ai) | ||
| * **An MCP Client** — [Claude Desktop](https://claude.ai/download) | [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | [Cursor](https://www.cursor.com/en/downloads) | [VS Code Copilot](https://code.visualstudio.com/docs/copilot/overview) | [Kimi Code](https://github.com/MoonshotAI/kimi-cli) | [GitHub Copilot CLI](https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli) | [OpenClaw](https://openclaw.ai) | ||
|
|
||
| ### 1. Install the Unity Package | ||
|
|
||
|
|
@@ -82,7 +83,7 @@ openupm add com.coplaydev.unity-mcp | |
| 2. Click **Start Server** (launches HTTP server on `localhost:8080`) | ||
| 3. Select your MCP Client from the dropdown and click **Configure** | ||
| 4. Look for 🟢 "Connected ✓" | ||
| 5. **Connect your client:** Some clients (Cursor, Antigravity, OpenClaw) require enabling an MCP toggle or plugin in settings. OpenClaw also needs the `openclaw-mcp-bridge` plugin enabled and follows the currently selected MCP for Unity transport (`HTTP` or `stdio`). Others (Claude Desktop, Claude Code) auto-connect after configuration. | ||
| 5. **Connect your client:** Some clients (Cursor, Antigravity, OpenClaw) require enabling an MCP toggle or plugin in settings. OpenClaw also needs the `openclaw-mcp-bridge` plugin enabled and follows the currently selected MCP for Unity transport (`HTTP` or `stdio`). Others (Claude Desktop, Claude Code, Kimi Code) auto-connect after configuration. | ||
|
|
||
| **That's it!** Try a prompt like: *"Create a red, blue and yellow cube"* or *"Build a simple player controller"* | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use platform-neutral manual-path instructions
Manual setup currently hardcodes
~/.kimi/mcp.json, which is unclear for Windows users. Prefer referencing the resolved config path shown by the configurator/UI or listing OS-specific paths.Suggested wording update
📝 Committable suggestion
🤖 Prompt for AI Agents