Skip to content

Intermittent error from disconnected MCP #1296

@chriswingler

Description

@chriswingler

What version of Kimi Code CLI is running?

1.16.0

Which open platform/subscription were you using?

Kimi Code

Which model were you using?

kimi-for-coding

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

This error pops up sometimes. It's trying to connect to a MCP that's legitimately offline.

Unhandled exception in event loop:
  File "C:\Users\chris\AppData\Roaming\uv\tools\kimi-cli\Lib\site-packages\kimi_cli\soul\toolset.py", line 316, in _connect 
    raise MCPRuntimeError(f"Failed to connect MCP servers: {failed_servers}")

Exception Failed to connect MCP servers: {'MyMCP': RuntimeError('Client failed to connect: All connection attempts failed')}

Unhandled exception in event loop:
  File "C:\Users\chris\AppData\Roaming\uv\tools\kimi-cli\Lib\site-packages\kimi_cli\soul\toolset.py", line 316, in _connect
    raise MCPRuntimeError(f"Failed to connect MCP servers: {failed_servers}")

Exception Failed to connect MCP servers: {'MyMCP': RuntimeError('Client failed to connect: All connection attempts failed')}
Press ENTER to continue...

What steps can reproduce the bug?

Have a streamable http MCP server that's not running but is in Kimi's config, and wait for 5-30 minutes.

What is the expected behavior?

Silent, should only see MCP connection status in the /mcp menu

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions