-
-
Notifications
You must be signed in to change notification settings - Fork 13
Add MCP (Model Context Protocol) configuration to all templates with --no-ai option #389
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Keboo <[email protected]>
|
@copilot The files should end up in Update the README on each of the templates mentioning this as a feature. |
…links Co-authored-by: Keboo <[email protected]>
Updated in commit e0a3e8d. The mcp.json files are now located at |
Co-authored-by: Keboo <[email protected]>
| "command": "npx", | ||
| "args": ["-y", "@microsoft/mcp-server-docs"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot the microsoft docs should use this configuration over npx:
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot fix this
|
@copilot fix the comments |
Could you clarify what comments need to be fixed? The mcp.json files are currently in standard JSON format (which doesn't support comments). Would you like me to:
|
@copilot this comment |
Overview
This PR adds Model Context Protocol (MCP) configuration files to all four templates (WPF, Console, Avalonia, and NuGet) to enhance AI-assisted development capabilities. A new
--no-aiparameter allows users to opt-out of including these files.Changes
Added
.vscode/mcp.jsonFilesEach template now includes a
.vscode/mcp.jsonconfiguration file with two MCP servers:{ "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp"] }, "msdocs": { "command": "npx", "args": ["-y", "@microsoft/mcp-server-docs"] } } }The configuration file is placed in the
.vscodedirectory to be recognized by Visual Studio and VS Code.New
--no-aiParameterAdded a new optional parameter to all templates:
--no-aifalseUsage example:
Documentation Updates
All template README files have been updated with:
--no-aiparameter in the parameters tableBenefits
.vscode/mcp.jsonconfiguration--sln,--no-tests, etc.)Testing
All templates have been tested with both default behavior and
--no-ai true:Verified that
.vscode/mcp.jsonis correctly included by default and properly excluded when--no-ai trueis specified.Fixes #388
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.