MoonshotAI / MoonshotAI/kimi-cli
Oauth connection flow
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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