TGViewer
Computer Science and Programming Computer Science and Programming @computer_science_and_programming · 140K subscribers
Post #2275 20.2K
Your first MCP server with ASP.NET
A step-by-step guide to building an HTTP-based MCP (Model Context Protocol) server using ASP.NET and the ModelContextProtocol.AspNetCore NuGet package. Covers project setup, registering the MCP server in Program.cs, creating tool classes with McpServerToolType and McpServerTool attributes, writing descriptive parameter annotations so AI clients can discover and invoke tools, and connecting the server to AI clients like GitHub Copilot or VS Code via a .mcp.json config file. Uses a product catalog search as a concrete example, showing how a natural language question gets translated into a tool call and back into a human-readable answer.
  • ❤ 18
  • 👍 2
More from @computer_science_and_programming
  1. Oct 3, 2026BYD says it will have a solid-state car next year, the earliest date anyone has given BYD…
  2. Oct 1, 2026Introducing G#: A Go-like language for .NET G# is a new open-source, Go-inspired programmi…
  3. Sep 30, 2026Chrome for Developers Chrome 146 introduces three notable features for web developers. Scr…
  4. Sep 26, 2026Introduction to Solon A comprehensive tutorial walks through building a REST API with Solo…
  5. Sep 25, 2026The strangler fig pattern: modernizing without a big-bang rewrite A detailed guide to the…
  6. Sep 24, 2026Lessons From Four Years of Writing a Weekly Newsletter A .NET blogger reflects on four yea…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →