Skip to content

Implement automatic VS Code MCP installation #2

Description

@digitarald

Implement automatic VS Code installation functionality for the MagicUI CLI, similar to how other tools like Cursor and Windsurf handle their installations. This should provide a seamless setup experience for users who want to use MagicUI with VS Code.

  • Create functionality to automatically configure VS Code's MCP (Model Context Protocol) settings
  • Target file: ~/Library/Application Support/Code/User/mcp.json (macOS)
  • Handle cross-platform paths for Windows and Linux:
    • Windows: %APPDATA%\Code\User\mcp.json
    • Linux: ~/.config/Code/User/mcp.json

2. Configuration Format

The MCP configuration should follow this JSON structure:

{
	"servers": {
		"magicui": {
			"command": "npx",
			"args": [
				"-y",
				"@magicuidesign/mcp@latest"
			]
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions