Skip to content

Add Kimi Code CLI as a supported MCP client #4786

Closed

Description

@samuv

Description

Kimi Code CLI is an AI coding agent by Moonshot AI that runs in the terminal with MCP support. It stores its MCP server configuration at `~/.kimi/mcp.json` using the standard `mcpServers` JSON format.

This change registers Kimi Code CLI as a supported client in ToolHive, enabling:

  • `thv client register kimi-cli` to add MCP servers to `~/.kimi/mcp.json`
  • `thv client status` to detect whether Kimi CLI is installed
  • `thv skill install --clients kimi-cli` to install skills to `~/.kimi/skills/`

Implementation

MCP configuration

Kimi CLI uses the standard `mcpServers` JSON format:

```json
{
"mcpServers": {
"server-name": {
"url": "https://..."
}
}
}
```

Config file lives at `~/.kimi/mcp.json`. No transport type field is written — Kimi CLI auto-detects from URL presence.

Skills

Kimi CLI loads skills from its brand group path `~/.kimi/skills/` (user scope) and `.kimi/skills/` (project scope), consistent with the layered skill discovery described in its documentation.

Changes

File Change
`pkg/client/config.go` Add `KimiCli` constant and `clientAppConfig` entry with MCP + skills config
`pkg/client/config_test.go` Add mock config, switch cases, bump client counts 25 → 26
`pkg/client/skills_test.go` Add `KimiCli` to fixture, `TestSupportsSkills`, `TestListSkillSupportingClients`, `TestGetSkillPath`
`docs/server/swagger.json` / `docs/server/docs.go` Add `kimi-cli` to `ClientApp` enum

Activity

  1. added
    enhancement
    go
    cli
    on Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clienhancementgo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions