Add Streamable HTTP transport for remote MCP access
Some checks failed
CI/CD Pipeline / build (push) Has been cancelled
CI/CD Pipeline / publish-npm (push) Has been cancelled
CI/CD Pipeline / docker (push) Has been cancelled

- Convert from stdio-only to dual-mode (stdio + HTTP)
- Add Express server with /mcp endpoint for Streamable HTTP
- Add /health endpoint for Railway health checks
- Update MCP SDK to v1.12.0 for Streamable HTTP support
- Add railway.toml for Railway deployment
- Default to HTTP mode, use --stdio flag for local mode
This commit is contained in:
Krishna Kumar
2025-12-31 11:56:21 -06:00
parent 50c2c43fd9
commit 3e0ed2d6c6
5 changed files with 925 additions and 320 deletions

View File

@@ -43,14 +43,16 @@
"node": ">=18.0.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.8.0",
"@modelcontextprotocol/sdk": "^1.12.0",
"axios": "^1.8.4",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"node-fetch": "^3.3.2",
"openai": "^4.89.1",
"sharp": "^0.33.5"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^22.13.14",
"@types/sharp": "^0.32.0",
"shx": "^0.3.4",