Logo di HandMirrorMcp

HandMirrorMcp

Organizzazione
askmirror

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

Autoreaskmirror
RepositoryHandMirrorMcp
LinguaC#
Fork
2
Stelle
14
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    HandMirrorMcp mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    14 stelle e 2 fork nel repository collegato.

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 🪞

Usa MCP HandMirrorMcp con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso HandMirrorMcp, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi HandMirrorMcp come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di HandMirrorMcp.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "handmirrormcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di HandMirrorMcp, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di HandMirrorMcp.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare HandMirrorMcp per aiutarmi con questa attività?
HandMirrorMcp
Certo. Ho letto.
Ecco cosa ho trovato con HandMirrorMcp.

Domande frequenti

A cosa serve il server MCP HandMirrorMcp?

HandMirrorMcp è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare HandMirrorMcp MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare HandMirrorMcp con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP HandMirrorMcp con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando HandMirrorMcp, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego HandMirrorMcp MCP a TypingMind?

HandMirrorMcp funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre HandMirrorMcp MCP in TypingMind?

HandMirrorMcp mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare HandMirrorMcp MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se HandMirrorMcp richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇