FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Your ASP.NET API Already Speaks MCP - It Just Doesn't Know It Yet
How-ToTools

Your ASP.NET API Already Speaks MCP - It Just Doesn't Know It Yet

via Dev.toSamuel Sidor3h ago

TL;DR: dotnet add package Kebechet.Api.ToMcp + 3 lines in Program.cs = your ASP.NET controllers become AI-callable MCP tools. No separate server, no OpenAPI spec, compile-time generated. GitHub repo Three lines of code. That's what it took to let Claude talk to my ASP.NET API: builder . Services . AddMcpTools ( Assembly . GetExecutingAssembly ()); app . UseMcpLoopPrevention (); app . MapMcpEndpoint ( "mcp" ); No hand-written tool classes. No separate proxy server. No OpenAPI spec to maintain. The controllers I already had became AI-callable tools automatically. I built Api.ToMcp - a C# source generator that reads your existing controllers at compile time and generates MCP-compatible tool classes. This is the story of how it went from an idea to a published NuGet package in a single day. Why not just use OpenAPI? Before diving in, let's address the elephant in the room. There are already ways to bridge REST APIs to MCP, and most of them work through OpenAPI/Swagger specs. OpenAPI/Swagge

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Bipolar and Sleep Deprivation: What Actually Happens
How-To

Bipolar and Sleep Deprivation: What Actually Happens

Dev.to • 11m ago

Learn how to develop like a pro for free
How-To

Learn how to develop like a pro for free

Medium Programming • 42m ago

I didn't have to drill these renter-friendly smart lights into my wall - and I love them for it
How-To

I didn't have to drill these renter-friendly smart lights into my wall - and I love them for it

ZDNet • 2h ago

How to Create and Use Checkboxes in Figma
How-To

How to Create and Use Checkboxes in Figma

FreeCodeCamp • 2h ago

The DSA Illusion: Why Most Data Structures Don’t Actually Exist
How-To

The DSA Illusion: Why Most Data Structures Don’t Actually Exist

Medium Programming • 3h ago

Discover More Articles