+
Skip to content

Conversation

BenjaminMichaelis
Copy link

@BenjaminMichaelis BenjaminMichaelis commented Sep 23, 2025

Reasons for making this change

As mcp's are becoming more common, sharing a workspace configuration of mcp servers is becoming more and more common with the mcp.json file. (https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_add-an-mcp-server)

Adding this file as an exclusion to the default template so that it can be utilized by the editors and shared via source control.

This file can also be picked up by Visual Studio as seen here

Links to documentation supporting these rule changes

VSCode itself commits this file: https://github.com/microsoft/vscode/blob/main/.vscode/mcp.json

If this is a new template

Link to application or project’s homepage: TODO

Merge and Approval Steps

  • Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and Approval from one of the maintainers

As mcp's are becoming more common, sharing a workspace configuration of mcp servers is becoming more and more common with the mcp.json file. (https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_add-an-mcp-server)

Adding this file as an exclusion to the default template so that it can be utilized by the editors and shared via source control.

This file can also be picked up by Visual Studio as seen [here](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022&WT.mc_id=8B97120A00B57354#file-locations-for-automatic-discovery-of-mcp-configuration)
@BenjaminMichaelis BenjaminMichaelis requested a review from a team as a code owner September 23, 2025 18:16
@Copilot Copilot AI review requested due to automatic review settings September 23, 2025 18:16
Copy link
Contributor

@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 adds an exception for the mcp.json file in the Visual Studio gitignore template to support sharing Model Context Protocol (MCP) server configurations. The change allows the .vscode/mcp.json file to be tracked in version control alongside other VS Code workspace configuration files.

  • Adds !.vscode/mcp.json as an exception to the gitignore pattern
  • Enables sharing of MCP server configurations across development teams
  • Aligns with existing patterns for other VS Code configuration files

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@baronfel
Copy link

baronfel commented Oct 1, 2025

TBH I'd go as far as removing the .vscode exclusion entirely - that file is meant for sharing/checking-in on a per-repo basis.

@BenjaminMichaelis
Copy link
Author

@baronfel updated in 6d24007 - decided to make it a specific include to be clear rather than an omit, but open to opinion

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载