iaspnetcore/MCPServer
If you are the rightful owner of MCPServer and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Model Context Protocol (MCP) server is a framework designed to facilitate communication between clients and servers using a structured protocol, enabling efficient tool execution and data exchange.
Develop with the MCP C# SDK
project information
F:\developer_mcp
https://github.com/iaspnetcore/MCPServer.git/
blog:https://www.iaspnetcore.com/blogpost-683332645fb02c0677df0289-mcp-server-in-c-net
The WithToolsFromAssembly will scan the assembly for classes with the McpServerToolType attribute and register all methods with the McpServerTool attribute. Notice that the McpServerTool has a Description which will be fed into any client connecting to the server. This description helps the client determine which tool to call.
Projects
MCPServer WithStdioServerTransport
MCPServer WithHttpTransport(SSE)
MCPSSEServer.Server A Simple .NET C# MCP Server using SSE transport using modelcontextprotocol / csharp-sdk
The Server-Sent Events (SSE) transport enables HTTP-based communication between the MCP server and clients. It uses SSE for server-to-client messages and HTTP POST for client-to-server messages.
The Server = where tools live
The Client = who sends tool requests
The Agent = The customer (who decides what tool to use)
The Tools = The recipes (the code that gets executed)
How it works
Build a minimal MCP server
Build a minimal MCP client
Build a minimal MCP client for home assistant MCP server
Build an minimal chat app
Build an minimal AI chat app
useful links
https://learn.microsoft.com/en-us/dotnet/ai/quickstarts/build-chat-app?pivots=openai