fix: automated fix for #190 via Codex - #192
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Pull Request Overview
This pull request fixes the “TypeError” raised by the incorrect method signature in ClaudeDesktopManager by updating _format_router_server to accept an optional alias_name parameter. It adjusts the method signature and forwards the alias_name to the URL formatting helper function.
- Updated _format_router_server signature to include the alias_name parameter.
- Ensured compatibility with the parent class by preventing a TypeError when three arguments are passed.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/mcpm/clients/managers/claude_desktop.py | Updated _format_router_server method to forward alias_name and resolve the TypeError. |
| .github/codex/home/sessions/rollout-2025-06-30T06-58-13-60c64452-c812-4ba8-ab56-6f2e1247bdd8.jsonl | Session log demonstrating the issue and confirmation of the fix. |
Comments suppressed due to low confidence (1)
src/mcpm/clients/managers/claude_desktop.py:130
- One definition returns a server config using format_server_url_with_proxy_headers while the duplicate later uses format_server_url; it is recommended to standardize on one approach for clarity and consistency.
)
PR Code Suggestions ✨No code suggestions found for the PR. |
…laude-desktop-client
|
🎉 This PR is included in version 1.14.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
User description
Resolves #190
PR Type
Bug fix
Description
Fix TypeError in
mcpm addcommand for claude-desktop clientUpdate method signature to accept optional alias_name parameter
Ensure compatibility with base class method calls
Changes diagram
Changes walkthrough 📝
claude_desktop.py
Fix method signature compatibility issuesrc/mcpm/clients/managers/claude_desktop.py
_format_router_servermethod signature to accept optionalalias_nameparameteralias_nametoformat_server_url_with_proxy_headersfunctionrollout-2025-06-30T06-58-13-60c64452-c812-4ba8-ab56-6f2e1247bdd8.jsonl
Codex automation session log.github/codex/home/sessions/rollout-2025-06-30T06-58-13-60c64452-c812-4ba8-ab56-6f2e1247bdd8.jsonl