How-To-Create-MCP-Server
Verified Safeby nisalgunawardhana
Overview
Set up a basic .NET MCP server to integrate custom tools with Copilot Chat in VS Code.
Installation
dotnet run --project "${workspaceFolder}/HelloSriLankaServer/HelloSriLankaServer.csproj"Security Notes
The server uses `StdioServerTransport`, implying local process communication, which is generally safer than network-exposed servers. It uses `WithToolsFromAssembly()` to expose C# methods as tools. The provided `HelloTool` is benign. The primary security consideration for a user would be the nature of custom tools they add to the server, as they could potentially expose sensitive operations if not carefully designed and vetted. No 'eval', obfuscation, or hardcoded secrets are present in the provided source.
Similar Servers
remote-mcp-functions-typescript
Provides a remote Model Context Protocol (MCP) server implemented with Azure Functions in TypeScript, enabling AI agents like GitHub Copilot to interact with custom tools and data storage.
fsi-mcp-server
Provides Model Context Protocol (MCP) capabilities to F# Interactive sessions for AI-assisted development workflows.
workshop-mcp-servers
Demonstrates building Model Context Protocol (MCP) servers in TypeScript and Java for integrating with developer platforms and services like GitHub, specifically for a workshop using Visual Studio Code and GitHub Copilot.
copilot-kit
This repository provides a curated collection of GitHub Copilot prompts, instructions, and agent configurations to enhance developer productivity and streamline common development tasks within VS Code.