HandMirrorMcp logo

HandMirrorMcp

Organization
askmirror

MCP server for inspecting .NET assemblies and NuGet packages to help AI coding agents.

Publisheraskmirror
RepositoryHandMirrorMcp
LanguageC#
Forks
2
Stars
14
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    HandMirrorMcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    14 stars and 2 forks from the linked repository.

HandMirror MCP Server

A Model Context Protocol (MCP) server for .NET assembly and NuGet package inspection. HandMirror helps AI coding agents understand .NET APIs accurately and resolve build errors by providing direct access to assembly metadata and NuGet package information.

🎯 Purpose

AI coding assistants often hallucinate or guess API details, leading to build errors and wasted development iterations. HandMirror solves this by:

  • Providing accurate, version-specific API information directly from assemblies
  • Enabling verification of method signatures, types, and namespaces before writing code
  • Helping diagnose and fix .NET build errors quickly
  • Supporting analysis of native interop (P/Invoke, COM) dependencies

✨ Features

Assembly Inspection

  • inspect_assembly - Full analysis of all public types, members, and attributes with XML documentation
  • list_namespaces - List all namespaces in an assembly
  • get_type_info - Get detailed information about a specific type

NuGet Package Exploration

  • search_nuget_packages - Search for packages by keyword
  • get_nuget_package_info - Get package metadata and dependencies
  • get_nuget_package_versions - List all available versions
  • inspect_nuget_package - Analyze assemblies in a package
  • inspect_nuget_package_type - Get detailed type info from a package
  • list_nuget_sources - List configured NuGet package sources
  • clear_nuget_cache - Clear the local NuGet package cache
  • get_nuget_vulnerabilities - Check for known security vulnerabilities
  • inspect_nupkg_contents - Inspect contents of a .nupkg file
  • extract_nupkg_file - Extract specific files from a .nupkg

Native Interop Analysis

  • inspect_native_dependencies - Find P/Invoke (DllImport/LibraryImport) and COM types in an assembly

Project Analysis

  • analyze_csproj - Analyze .NET project files and identify issues
  • analyze_solution - Analyze solution files
  • explain_build_error - Get explanations for common build errors
  • analyze_file_based_app - Analyze file-based apps
  • analyze_config_file - Analyze configuration files
  • analyze_packages_config - Analyze packages.config files

System Information

  • get_system_info - Get system information (OS, .NET runtime, hardware)
  • get_dotnet_info - Get detailed .NET installation information

📋 Prerequisites

  • .NET 8.0 SDK or later
  • MCP-compatible client (e.g., Claude Desktop, VS Code with Copilot)

🚀 Installation

Build from Source

bash
git clone https://github.com/rkttu/HandMirrorMcp.git
cd HandMirrorMcp
dotnet build

Run the Server

bash
dotnet run --project HandMirrorMcp

⚙️ Configuration

Claude Desktop

Add the following to your Claude Desktop configuration file:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "handmirror": {
      "command": "dotnet",
      "args": ["run", "--project", "C:\\path\\to\\HandMirrorMcp"]
    }
  }
}

Or if you've built the project:

json
{
  "mcpServers": {
    "handmirror": {
      "command": "C:\\path\\to\\HandMirrorMcp\\bin\\Debug\\net8.0\\HandMirrorMcp.exe"
    }
  }
}

VS Code with GitHub Copilot

Add to your VS Code settings or workspace settings:

json
{
  "servers": {
    "handmirror": {
      "command": "dotnet",
      "args": ["run", "--project", "/path/to/HandMirrorMcp"]
    }
  }
}

📖 Usage Examples

Verify API Before Writing Code

When you need to use an unfamiliar .NET API:

text
Use inspect_nuget_package_type to show me the HttpClient class from System.Net.Http

Diagnose Build Errors

When you encounter errors like CS0246, CS1061, or CS7036:

text
I'm getting CS1061 error. Use inspect_nuget_package to check the Newtonsoft.Json package 
and show me the available methods on JObject

Explore NuGet Packages

text
Search for packages related to "json serialization" and show me the top results

Check Package Vulnerabilities

text
Check if there are any known vulnerabilities in System.Text.Json version 6.0.0

Analyze Project Issues

text
Analyze my .csproj file at C:\MyProject\MyProject.csproj and identify any issues

🏗️ Architecture

text
HandMirrorMcp/
├── Constants/
│   └── Emoji.cs              # Unicode emoji constants for output formatting
├── Prompts/
│   ├── AssemblyInspectorPrompts.cs
│   └── NuGetInspectorPrompts.cs
├── Services/
│   ├── NuGetService.cs       # NuGet package operations
│   ├── PeAnalyzerService.cs  # PE file analysis
│   ├── RepositoryService.cs  # Repository operations
│   └── XmlDocService.cs      # XML documentation parsing
├── Tools/
│   ├── AssemblyInspectorTool.cs
│   ├── InteropInspectorTool.cs
│   ├── NuGetInspectorTool.cs
│   ├── ProjectAnalyzerTool.cs
│   └── SystemInfoTool.cs
└── Program.cs

🧪 Testing

Run the test suite:

bash
dotnet test

The tests use MSTest and connect to the actual MCP server for integration testing.

📦 Dependencies

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

🙏 Acknowledgments

💖 Support This Project

If you find HandMirror helpful in your development workflow, please consider supporting the project!

Your sponsorship helps maintain and improve this project, add new features, and keep it free for everyone. Every contribution, no matter how small, is greatly appreciated! ⭐


HandMirror - Look before you code 🪞

Use HandMirrorMcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once HandMirrorMcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add HandMirrorMcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the HandMirrorMcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "handmirrormcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the HandMirrorMcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the HandMirrorMcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use HandMirrorMcp to help me with this task?
HandMirrorMcp
Sure. I read it.
Here is what I found using HandMirrorMcp.

Frequently asked questions

What is the HandMirrorMcp MCP server used for?

HandMirrorMcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use HandMirrorMcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use HandMirrorMcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use HandMirrorMcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With HandMirrorMcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect HandMirrorMcp MCP to TypingMind?

HandMirrorMcp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does HandMirrorMcp MCP provide in TypingMind?

HandMirrorMcp exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use HandMirrorMcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If HandMirrorMcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇