Headless commerce framework built on Node.js.
## Vendure MCP Server: TypeScript Commerce The **Vendure MCP Server** integrates Vendure's TypeScript-based e-commerce framework into Google Antigravity, enabling developers to build modern, type-safe commerce solutions through AI-assisted headless commerce workflows. ### Why Vendure MCP? - **TypeScript Native**: Built with TypeScript for type safety - **GraphQL First**: Complete GraphQL API with code generation - **Plugin Architecture**: Extensible with custom plugins - **Headless Design**: API-first for any frontend - **Open Source**: MIT-licensed with active community ### Key Features #### 1. Product Management ```typescript // Create product const product = await vendure.createProduct({ input: { translations: [{ languageCode: "en", name: "TypeScript Product", slug: "typescript-product", description: "Built with Vendure" }], assetIds: ["asset_123"], facetValueIds: ["facet_456"] } }); // Create product variant await vendure.createProductVariant({ input: [{ productId: product.id, translations: [{ languageCode: "en", name: "Default Variant" }], sku: "VEND-001", price: 9999, stockOnHand: 100, trackInventory: true }] }); // Update product await vendure.updateProduct({ input: { id: product.id, enabled: true } }); ``` #### 2. Order Processing ```typescript // Get orders const orders = await vendure.getOrders({ options: { filter: { state: { eq: "PaymentSettled" } }, take: 50 } }); // Fulfill order await vendure.transitionFulfillmentState({ id: fulfillment.id, state: "Shipped" }); // Add fulfillment await vendure.addFulfillment({ input: { lines: [{ orderLineId: line.id, quantity: 1 }], handler: { code: "manual-fulfillment", arguments: [] } } }); // Process refund await vendure.refundOrder({ input: { lines: [{ orderLineId: line.id, quantity: 1 }], shipping: 0, adjustment: 0, reason: "Customer request" } }); ``` ### Configuration ```json { "mcpServers": { "vendure": { "command": "npx", "args": ["-y", "@anthropic/mcp-vendure"], "env": { "VENDURE_API_URL": "https://your-store.com/shop-api", "VENDURE_AUTH_TOKEN": "your-auth-token" } } } } ``` ### Use Cases **TypeScript Commerce**: Build type-safe e-commerce applications. **Custom Storefronts**: Power headless storefronts with GraphQL. **Plugin Development**: Extend Vendure with custom functionality. The Vendure MCP Server brings TypeScript-powered commerce to your workflow.
{
"mcpServers": {
"vendure": {}
}
}