Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down