The plugin auto-configures Kimi automatically when you add it to your project. Works on macOS and Linux.
- Kimi CLI installed and authenticated
- Unity 6000.0+ with the
unity-mcpplugin installed (via UPM git URL) - TCP port 9500 (or auto-assigned) free
curl -fsSL https://kimi.ai/install.sh | bash
kimi --versionThe installer adds ~/.kimi-code/bin to PATH via ~/.zshrc (macOS) or ~/.bashrc (Linux). Restart your terminal before continuing.
- Open Window → Package Manager
- Click + → Add package from git URL
- Paste:
https://github.com/german-krasnikov/unity-kiss-mcp.git?path=unity-plugin - Wait for import, then open any scene
Authenticate Kimi:
kimi loginThe plugin auto-generates your Kimi MCP config on first load.
Run the diagnostic:
uvx --from git+https://github.com/german-krasnikov/unity-kiss-mcp.git#subdirectory=server unity-mcp doctor- Open Unity and wait for
[MCP] Server started on port <XXXX>in the Console. - Open MCP → Chat.
- Select Kimi from the backend dropdown.
- Choose a model from the dropdown (K2.7 Code is the default).
- Type a prompt and press Send.
Before each turn, the plugin writes ~/.kimi-code/mcp.json:
{
"mcpServers": {
"unity-mcp": {
"command": "<python>",
"args": ["-m", "unity_mcp.server"],
"env": { "UNITY_MCP_PORT": "<port>" }
}
}
}Kimi reads this file automatically on startup.
The plugin appends to ~/.kimi-code/config.toml (append-only, skips existing entries):
| Model | Model ID | Context |
|---|---|---|
| K2.7 Code | kimi-for-coding |
262K tokens |
| K2.6 | k2p6 |
262K tokens |
| K2.5 | k2p5 |
262K tokens |
The plugin spawns per-turn:
kimi -p "<prompt>" --output-format stream-json [--model <id>]Open the Setup Wizard in Unity (MCP → Setup Wizard) and select Diagnostics.
Or check manually:
# Verify kimi is in PATH
which kimi
kimi --version
# Check MCP config
cat ~/.kimi-code/mcp.json
# Test connectivity (with Unity running)
kimi -p "Call the mcp tool get_hierarchy and return the result" --output-format stream-jsonExpected: NDJSON stream with role:assistant content, followed by role:meta line.
| Problem | Fix |
|---|---|
kimi: command not found |
Restart terminal; verify ~/.kimi-code/bin is in PATH (echo $PATH) |
| Setup Wizard doesn't run in Unity | (1) Check plugin is in Package Manager. (2) Close/reopen Unity. (3) Check Console for errors. |
| MCP server fails to start | Run Setup Wizard → Diagnostics to verify Python 3.10+ and TCP port availability. |
Model "X" is not configured |
Plugin auto-provisions K2.7 Code, K2.6, K2.5. For custom models, add [models."X"] to ~/.kimi-code/config.toml. |
| Chat connects then immediately disconnects | Check ~/.kimi-code/logs/kimi-code.log for errors. Verify ~/.kimi-code/mcp.json exists and is valid JSON. |
| Binary not found in Chat Settings but works in terminal | Terminal sources ~/.zshrc but Unity doesn't. Override manually: Settings > Agent Chat > Kimi Binary Path — enter absolute path. |
| Tools fail with "Connection refused" | Ensure Unity is open and TCP port is listening. Run Setup Wizard → Diagnostics. |