feat: auto-configure DevStar MCP Server for Github Copilot and Trae #6
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/auto-configure-mcp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implement automatic MCP Server configuration for Github Copilot and Trae.
Background
AI IDEs run in different environments and therefore read MCP configurations from different locations:
Trae IDE (Container-based):
/root/.trae-server/data/Machine/mcp.jsonGitHub Copilot (Local VSCode Extension):
~/Library/Application Support/Code/User/mcp.json%APPDATA%/Code/User/mcp.jsonThis PR configures DevStar MCP Server in both locations automatically when opening a container.
Changes
1. Container MCP Configuration (for Trae IDE)
configureMCPServerInContainermethod/root/.trae-server/data/Machine/mcp.jsonmcpServersformat2. Local VSCode MCP Configuration (for GitHub Copilot)
configureMCPServerLocallymethodserversformatConfiguration Locations
/root/.trae-server/data/Machine/mcp.jsonmcpServers~/Library/Application Support/Code/User/mcp.json(macOS)%APPDATA%/Code/User/mcp.json(Windows)serversTesting
Tested on macOS with local VSCode MCP auto-configuration. Config deduplication and error handling verified.
How It Works
When opening a remote container via "Open with VSCode":