From 3fbc978efd6185aba0e5e996bb3d776ff4ea2d64 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 18 Aug 2025 04:44:48 +0000 Subject: [PATCH 1/2] Initial plan From 4f88a9f4c32d4072a359032b00a1248ec231f8cb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 18 Aug 2025 04:50:46 +0000 Subject: [PATCH 2/2] Add MCP configuration for GitHub and Microsoft Docs servers Co-authored-by: SIkebe <17608272+SIkebe@users.noreply.github.com> --- .devcontainer/devcontainer.json | 18 ++++++++++++++++++ README.md | 13 ++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ae70f87..627570f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,6 +20,24 @@ "ghcr.io/devcontainers/features/github-cli:1": { "installDirectlyFromGitHubRelease": true, "version": "latest" + }, + "ghcr.io/devcontainers/features/node:1": { + "version": "lts" + } + }, + "mcp": { + "servers": { + "github": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-github"], + "env": { + "GITHUB_PERSONAL_ACCESS_TOKEN": "${containerEnv:GITHUB_TOKEN}" + } + }, + "microsoft-docs": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-microsoft-docs"] + } } }, "postCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}" diff --git a/README.md b/README.md index 9caea43..3aad819 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A modern C# project template with best practices and development tools configure - **Nullable Reference Types** - Enhanced null safety - **Implicit Usings** - Cleaner code with reduced boilerplate - **Embedded Debug Symbols** - Better debugging experience -- **Dev Container Support** - Consistent development environment +- **Dev Container Support** - Consistent development environment with MCP configuration ## 📋 Prerequisites @@ -41,6 +41,17 @@ The project includes common MSBuild properties: Specifies .NET SDK version with `latestFeature` roll-forward policy. +### Dev Container MCP Configuration + +The dev container includes MCP (Model Context Protocol) server configurations for enhanced AI assistant capabilities: + +- **GitHub MCP Server**: Provides access to GitHub repositories, issues, pull requests, and other GitHub resources +- **Microsoft Learn Docs MCP Server**: Enables access to Microsoft documentation and learning resources + +These servers are automatically configured when the dev container starts and require: +- Node.js (included via dev container features) +- GitHub token (set `GITHUB_TOKEN` environment variable for GitHub MCP server) + ## 📝 Development ### Adding New Projects