5 packages tagged with “mcpserver”
Build Model Context Protocol (MCP) servers and clients in .NET with MCPSharp. Create MCP-compliant tools and functions that AI models can discover and use. Features easy to use attribute-based API allowing anyone to spin up a server in minutes, and a Microsoft.Extensions.AI compatible client that generates AIFunctions, ready to be consumed by any IChatClient or compatible system. await MCPServer.StartAsync("EchoServer", "1.0.0"); --- server: class MyTool { [McpTool("echo","returns the input string back to you")] public string echo(string input) => input; } ---client: var client = new MCPClient("MyClient","1.0.0", "EchoServer.exe" //or dotnet EchoServer.dll if you wish await client.CallToolAsync("echo", new Dictionary<string, object>{{"input", "input string to echo"}});
Use tools from model context protocol (MCP) servers with Ollama
MCP server that exposes NuGet package metadata & API surface.
Model Context Protocol server for managing notebooks with pages of text (stdio). Built with MCPSharp.
Build Model Context Protocol (MCP) servers in .NET with MCPSharp. Create MCP-compliant tools and functions that AI models can discover and use. Features attribute-based API, and seamless JSON-RPC communication. await MCPServer.StartAsync("EchoServer", "1.0.0"); [McpTool] class MyTool { [McpFunction("echo","returns the input string back to you")] public string echo(string input) => input; }