881 B
881 B
OptiqueStock Hermes MCP
This MCP server gives a Hermes agent safe, token-scoped access to OptiqueStock.
Environment
Set the same key on the Next.js app and the MCP server:
HERMES_API_KEY=change-me
OPTICZ_API_BASE=http://192.168.1.30:3000
In local development only, the fallback key is:
hermes-demo-key-change-me
Run
node mini-services/hermes-mcp/server.mjs
MCP Tools
opticz_statusopticz_summaryopticz_search_clientsopticz_search_productsopticz_create_clientopticz_create_repair_sale
Direct REST API
All endpoints require:
Authorization: Bearer <HERMES_API_KEY>
Available endpoints:
GET /api/hermes/statusGET /api/hermes/summaryGET /api/hermes/clients?q=aminaPOST /api/hermes/clientsGET /api/hermes/products?q=monturePOST /api/hermes/sales/repair