MoonshotAI / MoonshotAI/kimi-cli

Oauth connection flow

Open Beginner friendly
#2,021 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?

1.37.0

Which open platform/subscription were you using?

Kimi Code

Which model were you using?

Not related

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

kimi mcp auth {MCP_SERVER_NAME}
failed with server_error.
The reason is that the oauth flow in the version of fastmcp that kimi depends on is initializing the OAuthClientProvider with server_url=server_base_url. This field should be the original mcp url.

upgrade fastmcp version to the latest should solve the issue.

What steps can reproduce the bug?

kimi mcp add --transport http --auth oauth {MCP_SERVER_NAME} {MCP_SERVER_ADDRESS}
kimi mcp auth {MCP_SERVER_NAME}

On any MCP server implemented using FastMCP.

What is the expected behavior?

pass oauth authentication successfully

Additional information

Please upgrade Fastmcp to a newer version.

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 with the kimi mcp add --transport http --auth oauth and kimi mcp auth entry points and inspect the FastMCP dependency declaration. Reproduce the flow against an MCP server implemented with FastMCP, then verify that OAuth authentication succeeds after the dependency update.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.