Skip to content

Conversation

@leslierichardson95
Copy link
Contributor

@leslierichardson95 leslierichardson95 commented Jan 12, 2026

Fixes Issue #50918

Summary

This pull request significantly expands and reorganizes the quickstart documentation for building a minimal MCP server in C#. The updates add detailed, platform-specific instructions for Visual Studio, Visual Studio Code, and CLI users, provide a project structure overview, and offer comprehensive steps for configuring and testing the MCP server with GitHub Copilot. The documentation now includes new images, configuration examples, and clarifies transport options.

Key documentation improvements:

Platform-specific quickstart instructions:

  • Added separate prerequisite and project creation steps for Visual Studio, Visual Studio Code, and CLI, including new sections and screenshots to guide users through each environment. [1] [2]

Project structure and configuration:

  • Introduced a "Tour the MCP Server Project" section, explaining the purpose of key files like Program.cs, RandomNumberTools.cs, and transport-specific files, along with diagrams for project structure.

MCP server configuration for Copilot:

  • Added detailed instructions for configuring GitHub Copilot to use a custom MCP server in both Visual Studio and Visual Studio Code, including both command palette and manual methods, with example mcp.json configurations for stdio and HTTP transports. [1] [2]

Testing and usage guidance:

  • Updated the testing section to clarify steps for both Visual Studio and VS Code, and refined permission option descriptions for running MCP tools in Copilot Agent Mode. [1] [2]

Internal previews

📄 File 🔗 Preview link
docs/ai/quickstarts/build-mcp-server.md Create a minimal MCP server using C# and publish to NuGet

… Code, and the .NET CLI and for the updated MCP server template
Copilot AI review requested due to automatic review settings January 12, 2026 18:13
@leslierichardson95 leslierichardson95 requested a review from a team as a code owner January 12, 2026 18:13
@dotnetrepoman dotnetrepoman bot added this to the January 2026 milestone Jan 12, 2026
Copy link
Contributor

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 pull request significantly expands the MCP server quickstart documentation to provide comprehensive, platform-specific instructions for building MCP servers in C#. The update transforms a basic single-path guide into a detailed multi-platform tutorial with Visual Studio, VS Code, and CLI-specific workflows.

Changes:

  • Added platform-specific project creation instructions with zone pivots for Visual Studio, VS Code, and CLI users
  • Introduced detailed MCP server configuration sections for both stdio and HTTP transports
  • Added new documentation sections explaining project structure and key files

Reviewed changes

Copilot reviewed 1 out of 16 changed files in this pull request and generated 6 comments.

File Description
docs/ai/quickstarts/build-mcp-server.md Main documentation file with comprehensive platform-specific instructions, configuration examples, and testing guidance
docs/ai/media/build-mcp-server/*.png New screenshot images supporting Visual Studio and VS Code workflows (binary files)

leslierichardson95 and others added 14 commits January 12, 2026 10:45
…uidance on native AOT and self-contained publishing options
Corrected casing of '.NET Framework' to '.NET framework' and updated links in the documentation.
@gewarren gewarren merged commit e6513a0 into dotnet:main Jan 13, 2026
9 checks passed
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.

3 participants