Skip to content

Add mcp.json for VS Code when setting up#1

Merged
thuongh2 merged 1 commit intothuongh2:mainfrom
tuanphuong-dev:feature/add-mcp.json-for-vscode-when-setting-up
Mar 18, 2026
Merged

Add mcp.json for VS Code when setting up#1
thuongh2 merged 1 commit intothuongh2:mainfrom
tuanphuong-dev:feature/add-mcp.json-for-vscode-when-setting-up

Conversation

@tuanphuong-dev
Copy link
Copy Markdown
Contributor

@tuanphuong-dev tuanphuong-dev commented Mar 18, 2026

Description

Adds support for writing VS Code's native mcp.json file (introduced in VS Code 1.99) when running mimir setup, alongside the existing settings.json (Copilot) integration.

Changes

internal/setup/editors.go

  • Added optional MimirEntry func() map[string]any field to the Editor struct, allowing per-editor customization of the MCP server entry format.
  • Registered a new "VS Code (MCP)" editor entry targeting mcp.json:
    • macOS: ~/Library/Application Support/Code/User/mcp.json
    • Windows: %APPDATA%/Code/User/mcp.json
    • Linux: ~/.config/Code/User/mcp.json
    • Uses servers as the config key and MimirMCPEntryStdio as the entry generator.

internal/setup/mcp_writer.go

  • Added MimirMCPEntryStdio() — generates an entry in the VS Code native format with "type": "stdio":
    {
      "type": "stdio",
      "command": "{path-to-mimir}",
      "args": ["mcp"]
    }

@thuongh2 thuongh2 merged commit 854b69a into thuongh2:main Mar 18, 2026
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.

2 participants