# Laidian AI — ERP pack (MCP tools) / 來電AI ERP 包 > Look up stock and file sales orders, store re-orders and production postings for human approval. One MCP endpoint, one API key. US$4 per pack per month, includes 1,000 tool calls (trial-period price, final price pending). ## Connect (one URL + one key) - Endpoint (MCP, Streamable HTTP): https://laidian-erp.enscon.ai/mcp - Header: `Authorization: Bearer ` — key format: ld_ followed by 64 hex characters - Get a key: Subscribe once on Laidian AI (Recur); one key works for every pack. Signup link: TBD (key issuing is being set up). - Test key: After a test subscription, POST the claim code you get at activation to https://laidian-erp.enscon.ai/claim. Not available yet: the Recur sandbox product and webhook are still being set up (TBD). Test tenant quick start (test data — use these values, no need to ask the user): - ERP: SKU `TEA` (black tea), warehouse `MAIN`, customer `SHOP`, unit price `50`. Store re-order: `SHOP` / `TEA`, quantity `3`. `production_actual_record` can omit `orderNo` (demo production order MO2026110001). - E-invoice: order `INV-DEMO-01`, item `紅茶`, amount `50`. Payments: order `PAY-DEMO-01`, amount `99`. Neither needs an approved sales order first. - Write tools return a requestId and wait for a human; you cannot approve them yourself. Read the result later with `approval_status`. Claude Code: ``` claude mcp add --transport http laidian-erp https://laidian-erp.enscon.ai/mcp --header "Authorization: Bearer ld_YOUR_KEY" ``` (Write the key literally; Claude Code does not expand environment variables inside remote headers. Check with /mcp.) Claude.ai / Claude Desktop — Settings → Connectors → Add custom connector: URL = the endpoint, Authentication = No sign in, Request headers: `Authorization` = `Bearer ld_YOUR_KEY`. Cursor (`~/.cursor/mcp.json` or `.cursor/mcp.json`): ```json { "mcpServers": { "laidian-erp": { "url": "https://laidian-erp.enscon.ai/mcp", "headers": { "Authorization": "Bearer ${env:LAIDIAN_KEY}" } } } } ``` OpenAI Responses API (`mcp` tool; the key goes in `authorization`): ```json { "type": "mcp", "server_label": "laidian-erp", "server_url": "https://laidian-erp.enscon.ai/mcp", "authorization": "ld_YOUR_KEY", "require_approval": "always" } ``` (Not yet verified against the live endpoint; this line will be updated after the deploy test.) ChatGPT app (connectors / developer mode): ChatGPT only supports OAuth or no auth and cannot send an API key header (OpenAI Apps SDK docs). An OAuth sign-in (paste your key once, approve) is being built; until then use the API route above. ## Tools ### stock_lookup 查目前庫存並可據此回覆顧客。示範紅茶代碼 TEA,預設可查各倉。 - Needs human approval: no (read-only) Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "sku": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,40}$" }, "warehouse": { "description": "倉庫代碼,示範倉 MAIN", "type": "string", "pattern": "^[A-Za-z0-9_-]{1,40}$" } }, "required": [ "sku" ], "additionalProperties": false } ``` Example arguments: ```json { "sku": "TEA", "warehouse": "MAIN" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "tenant": { "type": "string" }, "rows": { "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string" }, "warehouse": { "type": "string" }, "qty": { "type": "number" } }, "required": [ "sku", "warehouse", "qty" ], "additionalProperties": false } } }, "required": [ "tenant", "rows" ], "additionalProperties": false } ``` ### sales_order_create 為顧客申請開銷售訂單。示範顧客代碼 SHOP。回覆待核准;核准後建立草稿。 - Needs human approval: yes — returns status "pending_approval" with a requestId; nothing happens until a human approves Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "party": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,40}$" }, "lines": { "minItems": 1, "maxItems": 50, "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,40}$", "description": "商品代碼,例如紅茶 TEA" }, "qty": { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000 }, "unit": { "type": "string", "minLength": 1, "maxLength": 16 }, "price": { "type": "number", "minimum": 0, "maximum": 1000000 } }, "required": [ "sku", "qty", "price" ], "additionalProperties": false } } }, "required": [ "party", "lines" ], "additionalProperties": false } ``` Example arguments: ```json { "party": "SHOP", "lines": [ { "sku": "TEA", "qty": 1, "price": 0 } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "status": { "type": "string", "const": "pending_approval" }, "message": { "type": "string" }, "requestId": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" } }, "required": [ "status", "message", "requestId" ], "additionalProperties": false } ``` ### store_order_request 替門市向倉庫叫貨。門市代碼例如 SHOP。回覆待核准,後續按 ERP 流程確認。 - Needs human approval: yes — returns status "pending_approval" with a requestId; nothing happens until a human approves Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "party": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,40}$" }, "lines": { "minItems": 1, "maxItems": 50, "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,40}$", "description": "商品代碼,例如紅茶 TEA" }, "qty": { "type": "number", "exclusiveMinimum": 0, "maximum": 1000000 }, "unit": { "type": "string", "minLength": 1, "maxLength": 16 } }, "required": [ "sku", "qty" ], "additionalProperties": false } } }, "required": [ "party", "lines" ], "additionalProperties": false } ``` Example arguments: ```json { "party": "SHOP", "lines": [ { "sku": "TEA", "qty": 1 } ] } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "status": { "type": "string", "const": "pending_approval" }, "message": { "type": "string" }, "requestId": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" } }, "required": [ "status", "message", "requestId" ], "additionalProperties": false } ``` ### production_actual_record 申請將已領料的生產單過帳入庫。可省略單號以使用此租戶已領料的示範生產單。收到待核准時請等確認。 - Needs human approval: yes — returns status "pending_approval" with a requestId; nothing happens until a human approves Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "orderNo": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,40}$" } }, "additionalProperties": false } ``` Example arguments: ```json {} ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "status": { "type": "string", "const": "pending_approval" }, "message": { "type": "string" }, "requestId": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" } }, "required": [ "status", "message", "requestId" ], "additionalProperties": false } ``` ### approval_status 用 requestId 查同一把授權金鑰送出的申請。核准後會讀回單號、發票或付款網址。 - Needs human approval: no (read-only) Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "requestId": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" } }, "required": [ "requestId" ], "additionalProperties": false } ``` Example arguments: ```json { "requestId": "" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "status": { "type": "string" }, "result": { "anyOf": [ { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} }, { "type": "null" } ] } }, "required": [ "status", "result" ], "additionalProperties": false } ``` ## Approval flow Write tools never act immediately. They return `{"status":"pending_approval","requestId":...}`. Tell the user the request is waiting for approval; do not say the order, invoice or payment link exists. Call `approval_status` with that requestId to read the result; once approved it returns the order number, invoice or payment URL. Where the human approves: give the requestId and what the request contains to the administrator the business has named; the administrator checks the tenant and the content in Laidian AI's restricted operator console and approves it, then you read the result with `approval_status` using the same key. In the demo, an administrator does this for you; there is no public approval page. ## Errors - HTTP 401: key missing, invalid, expired or revoked. - HTTP 403: request source not allowed. - Tool errors and "pending approval" are different results; a pending result is not an error. ## Price US$4 per pack per month, includes 1,000 tool calls (trial-period price, final price pending). ## Data Test tenant and test accounts only (e-invoice: Laidian test account; payments: Recur test mode). Source contract: tools/list snapshot (sha256 7bad356d3042d20b2e032985748fb86a8f8786bea58873f9520305ddf0ddf6d1). Machine-readable: https://enscon.ai/agents/openapi.json, https://enscon.ai/agents/server-card.json, https://enscon.ai/.well-known/ai-catalog.json