feat: MCP server for Claude Code integration

Exposes the render pipeline, product library, material system, and database
as MCP tools. 12 tools + 2 resources:

Tools: query_database, list_orders, get_order_detail, search_products,
check_materials, list_materials, dispatch_renders, set_material_override,
list_output_types, get_worker_activity, get_render_stats, get_queue_status

Resources: schaeffler://schema, schaeffler://output-types

- Uses FastMCP (Python SDK) with stdio transport
- .mcp.json for automatic team-wide registration
- uv-managed dependencies (no global install needed)
- Documentation in docs/mcp-server.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-14 23:46:52 +01:00
parent dbadfdf489
commit 2a9337b8a3
3 changed files with 515 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
{
"mcpServers": {
"schaeffler": {
"command": "uv",
"args": ["run", "--with", "mcp[cli]", "--with", "psycopg2-binary", "--with", "httpx", "python", "schaeffler_mcp_server.py"],
"env": {
"DATABASE_URL": "postgresql://schaeffler:schaeffler@localhost:5432/schaeffler",
"API_URL": "http://localhost:8888",
"API_EMAIL": "admin@schaeffler.com",
"API_PASSWORD": "Admin1234!"
}
}
}
}