Skip to content

feat: update command arguments and add new client configurations for Trae and Trae CN #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

cfc4n
Copy link
Member

@cfc4n cfc4n commented Apr 25, 2025

This pull request introduces updates to the client configuration and server initialization logic to enhance functionality and improve compatibility across different platforms. The most important changes include modifying default server arguments and adding new client configuration paths for both macOS and Windows environments.

Server configuration updates:

  • Updated the default Args in the NewMCPServerConfig function to include "-m" and "all", replacing the previously unused empty array. This change ensures that all modes are enabled by default when initializing the server. (client/client.go, client/client.goL54-R54)

Client configuration updates:

  • Added new configuration paths for Trae and Trae CN in the clientLists map for macOS, pointing to mcp.json files. This addition provides support for these clients with a simplified configuration file. (client/client_config.go, client/client_config.goR34-R35)
  • Added equivalent configuration paths for Trae and Trae CN in the clientLists map for Windows, ensuring cross-platform compatibility with the same mcp.json files. (client/client_config_windows.go, client/client_config_windows.goR32-R33)

@cfc4n cfc4n requested a review from Copilot April 25, 2025 15:05
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 25, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates server initialization and client configuration to support enhanced compatibility and functionality.

  • Updated the default server arguments in NewMCPServerConfig to always enable all modes.
  • Added new configuration paths for Trae and Trae CN for both macOS and Windows client configurations.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
client/client.go Updated the default Args to ["-m", "all"] in the server config.
client/client_config.go Added new client configuration entries for Trae and Trae CN on macOS.
client/client_config_windows.go Added new client configuration entries for Trae and Trae CN on Windows.

@dosubot dosubot bot added the enhancement New feature or request label Apr 25, 2025
@cfc4n cfc4n merged commit b2e5197 into master Apr 25, 2025
6 checks passed
@cfc4n cfc4n deleted the support-trae-ide branch April 25, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant