Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KIMI_MCP_CWDNoOverride working directory for every tool call
MOONSHOT_API_KEYNoForwarded to Kimi CLI for unattended auth
KIMI_MAX_SESSIONSNoMax concurrent sessions50
KIMI_SESSION_TTL_MSNoSession expiration in milliseconds86400000

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
logging
{}
prompts
{}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
ask-kimiB

Execute Kimi Code CLI with file analysis (@syntax), session resume, MCP passthrough, and safety controls.

batch-kimiA

Delegate multiple atomic tasks to Kimi for batch processing. Ideal for repetitive operations, mass refactoring, and automated transformations.

review-changesA

Run a code review against the current repository using Kimi (collects git diff + structured review prompt).

brainstormA

Generate creative ideas using structured frameworks with domain context and feasibility analysis.

bg-kimiA

Run Kimi CLI as a detached background task. Subactions: start (returns taskId), status, tail (log output), stop, remove, list. Use for long-running autonomous work — the MCP call returns immediately and you poll status later.

plan-kimiA

Generate a structured implementation plan using Kimi's --plan mode. Use BEFORE coding to get steps, files-to-touch, risks, and open questions. Distinct from ask-kimi: uses --plan flag (different system prompt) and parses structured output.

digest-kimiA

Ingest many files at once and answer a focused question. Uses Kimi's 262K context to swallow whole modules / docs that don't fit in the caller's context. Walks directories, filters by extension, truncates oversized files, caps total payload. Returns a concentrated brief.

delegate-kimiA

Delegate an implementation task to Kimi in an isolated git worktree. Kimi runs autonomously (--yolo) on a fresh branch, optionally looping against a test command. Returns a taskId; later 'collect' to grab the diff. Safe: changes are sandboxed, caller reviews & applies.

list-sessionsB

List active conversation sessions with metadata, or manage them (delete/clear)

healthA

Check Kimi CLI installation, authentication, and session health

pingC

Echo

HelpA

Show Kimi CLI help output

versionA

Display version and system information

metricsA

Expose Prometheus-formatted metrics for Kimi MCP server

Prompts

Interactive templates invoked by user choice

NameDescription
ask-kimiExecute Kimi Code CLI in print mode with optional session continuity
batch-kimiExecute multiple atomic Kimi tasks in batch mode for efficient automation
review-changesReview uncommitted changes / branch diff / specific commit with Kimi
brainstormCreate structured brainstorming with chosen methodology and analysis
list-sessionsView and manage active Kimi sessions
healthDiagnose Kimi CLI installation, authentication, and session health
pingEcho test message with structured response.
HelpReceive help information
versionGet version information for Kimi CLI and MCP server

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/x51xxx/kimi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server