MCP Server written for ASP.net 4.7.2 without external dependencies

I am currently working on throwing together a MCP server for ASP.net to create invoice integration with a large language model. I tested this implementation with Cursor and was able to run successful test making this an all in one .ashx.cs solution to implementing into your own project.

I have attached a VB.net version as well. My VB.net version required two additional lines within HandleSseHandshake. It may be due to my .NET web.config setup which may result in compression being automatically appended in my response. Adding these two lines corrected the issue.

Leave a comment

Your email address will not be published. Required fields are marked *