- Add src/multitenancy/ with AES-256-GCM credential store, WhatsApp webhook router (phone_number_id -> customerId), and per-customer audit log (90-day Redis TTL) - Add src/billing/ with plan definitions and meterMiddleware that resolves API key -> Customer object with getCredential() closure - Refactor all src/clients/* to accept optional customer param, falling back to env vars for backward compat with single-user mode - Thread customer through handleToolCall(name, args, customer?) - Add customers table to MySQL schema initDatabase() - Add /webhook/whatsapp (immediate 200 + async routing) and /api/connect/* onboarding endpoints to index.ts - Add Redis 7 to docker-compose.yml; add REDIS_URL and CREDENTIAL_ENCRYPTION_KEY to hermes-k8s.yaml - Add product/incubation/ with architecture write-up and PlantUML diagrams (system architecture + 5 user flows) - Extend OpenAPI spec in manifest.ts with all platform endpoints Verification: 3 isolation tests (credential, webhook routing, audit log) passed against live Redis. Deployed to hermes.squaremcp.com. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "hermes-mcp",
|
|
"version": "1.0.0",
|
|
"description": "Multi-account email MCP server for Claude AI",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx watch src/index.ts",
|
|
"product:site": "node product/site/server.mjs",
|
|
"test:product-site": "node product/site/smoke-test.cjs",
|
|
"test:product-site:e2e": "node product/site/e2e-test.mjs",
|
|
"test:product-site:verify": "node product/site/verify.mjs",
|
|
"test:product-site:cleanup": "node product/site/cleanup-test-submissions.mjs",
|
|
"deploy:product-site:verify": "bash product/site/deploy-and-verify.sh"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
"@types/cors": "^2.8.19",
|
|
"cors": "^2.8.6",
|
|
"dotenv": "^16.0.0",
|
|
"express": "^4.18.0",
|
|
"imapflow": "^1.0.0",
|
|
"mysql2": "^3.14.0",
|
|
"nodemailer": "^6.9.0",
|
|
"redis": "^5.12.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^4.17.0",
|
|
"@types/node": "^20.0.0",
|
|
"@types/nodemailer": "^6.4.0",
|
|
"pixelmatch": "^7.1.0",
|
|
"playwright": "^1.59.1",
|
|
"pngjs": "^7.0.0",
|
|
"tsx": "^4.0.0",
|
|
"typescript": "^5.0.0"
|
|
}
|
|
}
|