feat: extend MCP server with render/media metadata tools

Added 5 new tools:
- get_product_detail: full product with parts, materials, render history, media assets
- get_render_detail: complete render metadata for an order line (timing, engine, log)
- get_completed_renders: filterable list of completed renders with timing/paths
- get_failed_renders: recent failures with error messages
- get_media_assets: browse media assets by product/type

Total: 17 tools + 2 resources

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 00:16:48 +01:00
parent 2a9337b8a3
commit 9b54d66322
2 changed files with 217 additions and 4 deletions
+13 -4
View File
@@ -35,18 +35,27 @@ You should see `schaeffler` listed with status "connected".
| Tool | Description |
|------|-------------|
| `query_database` | Run read-only SQL against PostgreSQL (SELECT only) |
| **Orders** | |
| `list_orders` | List recent orders with render progress |
| `get_order_detail` | Get full order detail with all lines |
| `search_products` | Search products by name, PIM-ID, category |
| `check_materials` | Find unmapped materials in an order |
| `list_materials` | List all library materials (with optional aliases) |
| `dispatch_renders` | Dispatch/retry renders for an order |
| `set_material_override` | Set material override on all order lines |
| **Products & Renders** | |
| `search_products` | Search products by name, PIM-ID, category |
| `get_product_detail` | Full product detail: metadata, parts, materials, render history, media assets |
| `get_render_detail` | Full render metadata for a specific order line: timing, engine, log |
| `get_completed_renders` | List completed renders with timing, file paths, filterable by product/order/output type |
| `get_failed_renders` | List recently failed renders with error messages |
| `get_media_assets` | List media assets (renders, thumbnails, GLBs, USDs) with metadata |
| **Materials** | |
| `check_materials` | Find unmapped materials in an order |
| `list_materials` | List all library materials (with optional aliases) |
| **System** | |
| `list_output_types` | List all output types with settings |
| `get_worker_activity` | Recent STEP processing and render tasks |
| `get_render_stats` | Dashboard stats: throughput, coverage, counts |
| `get_queue_status` | Live render queue depth and worker status |
| `query_database` | Run read-only SQL against PostgreSQL (SELECT only) |
## Available Resources