MoonshotAI / MoonshotAI/kimi-cli

MCP tools

Open
#2,475 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Description

What version of Kimi Code CLI is running?

Kimi Code v0.19.2

Which open platform/subscription were you using?

subscription

Which model were you using?

k2.7

What platform is your computer?

windows

What issue are you seeing?

I have mcp server with 212 tools with description and Kimi is blocked by error:
Error: [provider.api_error] 400 tools.function.parameters is not a valid moonshot flavored json schema, details: <At
path 'root': schema exceeds maximum allowed size>

Increase allow size - codex and claude dont have problem with it.

What steps can reproduce the bug?

Add mcp server with many tools with bigg schema description

What is the expected behavior?

No response

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with a Windows Kimi Code v0.19.2 setup, an MCP server exposing 212 tools, and large tool descriptions. Trace how the CLI assembles MCP tool schemas before the Moonshot request; done when this configuration no longer fails because the combined schema exceeds the provider limit, with regression coverage if the relevant test entry point is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.