Skip to content

Disconnect an MCP server before renaming it - #140

Open
dajiaohuang wants to merge 2 commits into
Richasy:mainfrom
dajiaohuang:fix/issue-127-mcp-rename
Open

dajiaohuang wants to merge 2 commits into
Richasy:mainfrom
dajiaohuang:fix/issue-127-mcp-rename

Conversation

@dajiaohuang

@dajiaohuang dajiaohuang commented Oct 4, 2026 •

Copy link
Copy Markdown

Fixes #127

Description

Await disconnection using the existing server ID before changing its ID and saving the new configuration. Complete the existing correction by making the awaiting event handler async.

PR type

  • Bug fix

PR checklist

  • Application successfully launched
  • Existing source copyright headers retained; dated modification notices added.
  • No breaking changes intended.

Validation and limits

This update publishes the previously completed local correction. Its complete normalized source files match the exact isolated candidate successfully compiled in the earlier reassessment (Desktop x64, MSIX packaging disabled, 0 warnings/0 errors), apart from the newly added dated comment notice. The unchanged original head failed with CS4033 before the async-keyword correction. No tests/builds, application launch, WinUI interaction, MCP connection or model/provider/audio/image generation were run in this publication unit. Historical compilation is not current hosted CI or end-to-end acceptance. Existing notices and GPL license retained.

AI disclosure: Codex prepared this publication update under user direction to deliver already-completed work. No human review, personal certification or legal signature is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 重命名已连接的 MCP 服务器会遗留旧客户端

1 participant