architeur 873fba3f76 Add GH documentation tools, GIS import, terrain analysis
New Grasshopper tools:
- grasshopper_delete_component: Remove components from canvas
- grasshopper_add_group: Add comment groups around components
- grasshopper_add_scribble: Add text annotations
- grasshopper_rename_component: Rename component nicknames

New GIS/Terrain tools:
- rhino_import_geotiff: Import GeoTIFF as heightfield mesh
- rhino_import_shapefile: Import ESRI Shapefiles
- rhino_import_xyz: Import XYZ point clouds
- rhino_transform_coordinates: Offset/transform coordinates
- rhino_get_bounding_box: Get object bounds
- rhino_create_grid: Create survey grids
- rhino_create_site_section: Generate terrain profiles
- rhino_calculate_area_volume: Calculate cut/fill volumes

Added:
- CLAUDE.md: Project documentation with dev guidelines
- install.bat: Windows installer script
- MeshTerrainHandler.cs: Separate handler for mesh/terrain/GIS

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 22:44:43 +01:00

RhinoMCP

Ein MCP-Server (Model Context Protocol) für die Integration von Claude AI mit Rhino 3D und Grasshopper.

Features

  • Rhino-Geometrie erstellen - Punkte, Linien, Kurven, Flächen, Volumenkörper
  • Grasshopper-Definitionen - Komponenten erstellen, verbinden, Parameter setzen
  • GH-Dateien laden/modifizieren - Bestehende Grasshopper-Definitionen bearbeiten
  • Geometrie analysieren - Maße, Abstände, Flächen, Volumen berechnen
  • Export - Verschiedene Formate (3DM, STEP, IGES, STL, etc.)

Architektur

┌─────────────────────────────────────────────────────────┐
│  Claude Code / Claude.ai                                │
└──────────────────┬──────────────────────────────────────┘
                   │ MCP Protocol (stdio/SSE)
┌──────────────────▼──────────────────────────────────────┐
│  MCP-Server (Python)                                    │
│  - Tool-Definitionen                                    │
│  - Request/Response Handling                            │
└──────────────────┬──────────────────────────────────────┘
                   │ HTTP (localhost:9000)
┌──────────────────▼──────────────────────────────────────┐
│  Rhino-Plugin (C# .rhp)                                 │
│  ├─ RhinoCommon API (Geometrie)                         │
│  ├─ Grasshopper SDK (Komponenten, Verbindungen)         │
│  └─ HTTP-Server (empfängt Befehle)                      │
└─────────────────────────────────────────────────────────┘

Voraussetzungen

  • Rhino 8 oder Rhino 9 WIP
  • Python 3.10+
  • .NET Framework 4.8 / .NET 7.0 (für Rhino 8)

Installation

1. MCP-Server (Python)

cd src/mcp-server
pip install -r requirements.txt

2. Rhino-Plugin

  1. Öffne src/rhino-plugin/RhinoMCP.sln in Visual Studio
  2. Build das Projekt
  3. Kopiere RhinoMCP.rhp nach %APPDATA%\McNeel\Rhinoceros\8.0\Plug-ins\
  4. Starte Rhino und aktiviere das Plugin

3. Claude Code Konfiguration

Füge in ~/.claude/claude_desktop_config.json hinzu:

{
  "mcpServers": {
    "rhino": {
      "command": "python",
      "args": ["C:/Entwicklung/Rhino-MCP/src/mcp-server/server.py"]
    }
  }
}

Verwendung

Nach der Installation kann Claude direkt mit Rhino kommunizieren:

"Erstelle einen Würfel mit 10mm Kantenlänge"
"Öffne die Grasshopper-Definition und setze den Slider 'Breite' auf 500"
"Exportiere die aktuelle Geometrie als STEP-Datei"

Projektstruktur

RhinoMCP/
├── src/
│   ├── mcp-server/          # Python MCP-Server
│   │   ├── server.py        # Hauptserver (stdio + SSE)
│   │   ├── tools/           # Tool-Implementierungen
│   │   └── requirements.txt
│   └── rhino-plugin/        # C# Rhino-Plugin
│       └── RhinoMCP/
│           ├── RhinoMCP.csproj
│           ├── Plugin.cs
│           └── HttpServer.cs
├── docs/                    # Dokumentation
├── examples/                # Beispiel-Definitionen
├── LICENSE
└── README.md

Lizenz

MIT License - siehe LICENSE

Mitwirken

Beiträge sind willkommen! Bitte erstelle einen Issue oder Pull Request.

Description
No description provided
Readme MIT 91 KiB
Languages
C# 68.8%
Python 30.9%
Batchfile 0.3%