No slash command · from metashape-mcp
Looks up Metashape Python API parameters, types, defaults, and enum values from local reference files when developing MCP tools.
Ships in metashape-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When working on metashape-mcp tools, always verify API parameters against the local reference files rather than guessing.
The project contains these Metashape API references:
| File | Contents | When to Use |
|---|---|---|
api_reference.txt | Full Python API reference (text, searchable) | Primary reference for parameter names, types, defaults |
metashape_python_api_2_3_0.pdf | Official PDF API docs | Backup if text version is unclear |
metashape-pro_2_3_en.pdf | Metashape Pro user manual | For understanding workflow context and UI equivalents |
usgs_ofr20211039.pdf | USGS photogrammetry best practices | For filtering thresholds and workflow order |
When implementing or modifying an MCP tool:
Search api_reference.txt first — Use Grep to find the exact method signature:
Grep for: "chunk.buildModel" or "buildModel" or "Chunk.buildModel"
Check parameter types — Metashape uses its own enum types. Verify which enum a parameter expects:
Grep for: "SurfaceType" or "DataSource" or the specific enum class
Check utils/enums.py — See if the string-to-enum mapping already exists. If not, add it.
Verify defaults — The MCP tool defaults should match best-practice defaults, which may differ from Metashape API defaults. Example:
keep_keypoints: Metashape default=False, MCP default=True (required for incremental alignment)blending_mode: Use "natural" for best quality, not necessarily the API defaultThese are verified facts from the API reference — do NOT guess these:
| Topic | Correct Answer |
|---|---|
alignChunks method param | Plain int (0=tiepoints, 1=markers, 2=cameras), NOT an enum |
RasterFormatTiles | IS the correct enum for GeoTIFF export — there is no RasterFormatGeoTIFF |
face_count param | Use Metashape.CustomFaceCount with face_count_custom=0 for unlimited |
cam.meta["key"] | Bracket access only — MetaData is C++ object, no .get() method |
chunk.tie_points.points | Can be None — always check before len() |
classifyGroundPoints | On chunk.point_cloud, NOT on chunk directly |
exportRaster | Handles both DEM and orthomosaic (use source_data parameter) |
progress callback | Callable[[float], bool] — return True to continue, raise to cancel |
When adding a new tool or parameter:
api_reference.txtenums.pyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
metashape-mcp@jenkinsm13-plugins is listed by jenkinsm13/claude-plugins — review the source before installing
npx claudepluginhub jenkinsm13/claude-plugins --plugin metashape-mcp12 skills in this plugin
/batch-exportExport all available products from the current Metashape project — point cloud, model, DEM, orthomosaic, tiled model, report, and cameras. Skips unavailable products automatically./corridor-alignment-pipelineOrchestrate incremental alignment of long road corridor captures with automatic drift detection and QA gates. Prevents alignment divergence by checking GPS deviation gradients and continuity between batches. Works through the Metashape MCP server./diagnose-alignmentDiagnose alignment quality issues in the current Metashape project — checks camera alignment rate, tie point density, reprojection error, and sensor calibration. Provides actionable fix recommendations.Other plugins' skills for the same job