Skip to content

Commit 3fdda7c

Browse files
committed
feat: add Kimi Code CLI client configurator
1 parent a2a5edf commit 3fdda7c

3 files changed

Lines changed: 55 additions & 3 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using MCPForUnity.Editor.Models;
5+
6+
namespace MCPForUnity.Editor.Clients.Configurators
7+
{
8+
/// <summary>
9+
/// Kimi Code CLI MCP client configurator.
10+
/// Kimi Code uses a JSON-based configuration file with mcpServers section.
11+
/// Config path: ~/.kimi/mcp.json
12+
///
13+
/// Kimi Code supports both stdio (uvx) and HTTP transport modes.
14+
/// Default: stdio mode (works without Unity Editor for basic operations)
15+
/// HTTP mode: requires Unity Editor running with MCP HTTP server started
16+
/// </summary>
17+
public class KimiCodeConfigurator : JsonFileMcpConfigurator
18+
{
19+
public KimiCodeConfigurator() : base(new McpClient
20+
{
21+
name = "Kimi Code",
22+
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".kimi", "mcp.json"),
23+
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".kimi", "mcp.json"),
24+
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".kimi", "mcp.json"),
25+
SupportsHttpTransport = true,
26+
})
27+
{ }
28+
29+
public override IList<string> GetInstallationSteps() => new List<string>
30+
{
31+
"Ensure Kimi Code CLI is installed (pip install kimi-cli or see https://github.com/MoonshotAI/kimi-cli)",
32+
"Click 'Auto Configure' to automatically add UnityMCP to ~/.kimi/mcp.json",
33+
"OR click 'Manual Setup' to copy the configuration JSON",
34+
"Open ~/.kimi/mcp.json and paste the configuration",
35+
"Save and restart Kimi Code CLI",
36+
"Use 'kimi mcp list' to verify Unity MCP is connected",
37+
"Note: For full functionality, open Unity Editor and start HTTP server"
38+
};
39+
}
40+
}

MCPForUnity/Editor/Clients/Configurators/KimiCodeConfigurator.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[![](https://badge.mcpx.dev?status=on 'MCP Enabled')](https://modelcontextprotocol.io/introduction)
1515
[![](https://img.shields.io/badge/License-MIT-red.svg 'MIT License')](https://opensource.org/licenses/MIT)
1616

17-
**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.
17+
**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.
1818

1919
<img alt="MCP for Unity building a scene" src="docs/images/building_scene.gif">
2020

@@ -31,6 +31,7 @@
3131
<details>
3232
<summary>Older releases</summary>
3333

34+
* **v9.6.9** — Added Kimi Code CLI client configurator.
3435
* **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`.
3536
* **v9.4.7** — Per-call Unity instance routing, macOS pyenv PATH fix, domain reload resilience for script tools.
3637
* **v9.4.6** — New `manage_animation` tool, Cline client support, stale connection detection, tool state persistence across reloads.
@@ -47,7 +48,7 @@
4748

4849
* **Unity 2021.3 LTS+**[Download Unity](https://unity.com/download)
4950
* **Python 3.10+** and **uv**[Install uv](https://docs.astral.sh/uv/getting-started/installation/)
50-
* **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)
51+
* **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)
5152

5253
### 1. Install the Unity Package
5354

@@ -82,7 +83,7 @@ openupm add com.coplaydev.unity-mcp
8283
2. Click **Start Server** (launches HTTP server on `localhost:8080`)
8384
3. Select your MCP Client from the dropdown and click **Configure**
8485
4. Look for 🟢 "Connected ✓"
85-
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.
86+
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.
8687

8788
**That's it!** Try a prompt like: *"Create a red, blue and yellow cube"* or *"Build a simple player controller"*
8889

0 commit comments

Comments
 (0)