McpServer.DotNet.Demo

riskevolution/McpServer.DotNet.Demo

3.1

If you are the rightful owner of McpServer.DotNet.Demo 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 McpServer.DotNet.Demo is a demonstration server for the Model Context Protocol (MCP) designed to showcase how to connect and interact with Claude Desktop using MCP technology.

ReflexLibs MCP Server Collection

A collection of Model Context Protocol (MCP) servers built with .NET, designed to integrate seamlessly with Claude Desktop. This collection demonstrates various architectural approaches from simple console applications to rich WPF applications with embedded web UIs.

TitleLink
MCP Server CollectionOpen
McpServer.DotNet.DemoOpen
Claude Desktop ScreenshotOpen

📁 Directory Structure

This project uses a standardized directory structure across Windows systems for both development and deployment.

ReflexLibs App Data Path

All MCP servers are deployed to:

C:\Users\{username}\AppData\Local\ReflexLibs\

Structure:

C:\Users\{username}\AppData\Local\ReflexLibs\
├── McpServer.DotNet.Demo\
│   ├── McpServer.DotNet.Demo.exe          # Main executable
│   ├── logs\                              # Server logs directory
│   │   ├── mcp-20250914-060332-229.log   # Session-specific logs
│   │   └── mcp-20250914-061245-456.log   # Multiple log files
│   └── ... (other server files)
├── McpServer.TaskManager\                 # Future servers
├── McpServer.FileProcessor\               # Future servers
└── ... (other MCP servers)

Claude Desktop Configuration Path

Claude Desktop looks for MCP server configurations at:

C:\Users\{username}\AppData\Roaming\Claude\claude_desktop_config.json

Example Configuration:

{
  "mcpServers": {
    "dotnet-demo": {
      "command": "C:\\Users\\{username}\\AppData\\Local\\ReflexLibs\\McpServer.DotNet.Demo\\McpServer.DotNet.Demo.exe",
      "args": ["--verbose"]
    },
    "task-manager": {
      "command": "C:\\Users\\{username}\\AppData\\Local\\ReflexLibs\\McpServer.TaskManager\\McpServer.TaskManager.exe",
      "args": ["--verbose"]
    }
  }
}

🚀 Quick Start

1. Build and Deploy

# Navigate to your MCP server project
cd McpServer.DotNet.Demo

# Build and deploy to standardized location
dotnet publish -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -o "%LOCALAPPDATA%\ReflexLibs\McpServer.DotNet.Demo"

2. Configure Claude Desktop

Create or edit: C:\Users\{username}\AppData\Roaming\Claude\claude_desktop_config.json

Add your server configuration using the absolute path to the deployed executable.

3. Restart Claude Desktop

  • Close Claude Desktop completely (from system tray)
  • Relaunch Claude Desktop
  • Test your MCP server tools

📋 Available MCP Servers

ServerDescriptionStatusTools
McpServer.DotNet.DemoBasic MCP server demonstration✅ CompletecreateTask
McpServer.TaskManagerAdvanced task management🚧 PlannedTBD
McpServer.FileProcessorFile processing utilities🚧 PlannedTBD

🛠️ Development

Prerequisites

  • .NET 8.0 SDK
  • Claude Desktop
  • Windows 10/11

Environment Variables

The following paths are used consistently:

  • %LOCALAPPDATA%C:\Users\{username}\AppData\Local\
  • %APPDATA%C:\Users\{username}\AppData\Roaming\

Logging

All MCP servers write detailed logs to their respective logs\ subdirectories:

  • Location: %LOCALAPPDATA%\ReflexLibs\{ServerName}\logs\
  • Format: mcp-{YYYYMMDD-HHMMSS-fff}.log
  • Content: Session-specific JSON-RPC communication logs

📖 Documentation

📄 License

MIT License - see LICENSE file for details.