HandMirrorMcp
About
A Model Context Protocol (MCP) server for .NET assembly and NuGet package inspection
Details
- Author
- rkttu
- Categories
- Developer Tools
Jump to
Setup
Install HandMirrorMcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/rkttu/HandMirrorMcp
Follow the installation instructions in the repository README, then restart your MCP client.
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.
AI coding assistants often hallucinate or guess API details, leading to build errors and wasted development iterations. HandMirror solves this by:
- Providingaccurate, version-specific API informationdirectly from assemblies
- Enablingverification of method signatures, types, and namespacesbefore writing code
- Helpingdiagnose and fix .NET build errorsquickly
- Supporting analysis ofnative interop(P/Invoke, COM) dependencies
- 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
- 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
- inspect_native_dependencies- Find P/Invoke (DllImport/LibraryImport) and COM types in an assembly
- 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
- get_system_info- Get system information (OS, .NET runtime, hardware)
- get_dotnet_info- Get detailed .NET installation information
- .NET 8.0 SDKor later
- MCP-compatible client (e.g., Claude Desktop, VS Code with Copilot)
git clone https://github.com/rkttu/HandMirrorMcp.git cd HandMirrorMcp dotnet build
Add the following to your Claude Desktop configuration file:
Windows:%APPDATA%\Claude\claude_desktop_config.jsonmacOS:~/Library/Application Support/Claude/claude_desktop_config.json
{ "mcpServers": { "handmirror": { "command": "dotnet", "args": ["run", "--project", "C:\\path\\to\\HandMirrorMcp"] } } }
{ "mcpServers": { "handmirror": { "command": "C:\\path\\to\\HandMirrorMcp\\bin\\Debug\\net8.0\\HandMirrorMcp.exe" } } }
Add to your VS Code settings or workspace settings:
{ "servers": { "handmirror": { "command": "dotnet", "args": ["run", "--project", "/path/to/HandMirrorMcp"] } } }
When you need to use an unfamiliar .NET API:
Use inspect_nuget_package_type to show me the HttpClient class from System.Net.Http
When you encounter errors likeCS0246,CS1061, orCS7036:
I'm getting CS1061 error. Use inspect_nuget_package to check the Newtonsoft.Json package and show me the available methods on JObject
Search for packages related to "json serialization" and show me the top results
Check if there are any known vulnerabilities in System.Text.Json version 6.0.0
Analyze my .csproj file at C:\MyProject\MyProject.csproj and identify any issues
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
The tests use MSTest and connect to the actual MCP server for integration testing.
- ModelContextProtocol- MCP server implementation
- Microsoft.Extensions.Hosting- .NET hosting abstractions
- Mono.Cecil- .NET assembly inspection
- NuGet.Protocol- NuGet package operations
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request
This project is licensed under the Apache License 2.0 - see theLICENSEfile for details.
- Model Context Protocolfor the MCP specification
- Mono.Cecilfor .NET assembly inspection capabilities
- The .NET community for continuous inspiration
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! ⭐
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Create crafted UI components inspired by the best 21st.dev design engineers.
Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server
An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .
MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent
ALAPI MCP Tools,Call hundreds of API interfaces via MCP
AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform
MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.
APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.
Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





