Skip to main content
Glama

SAP Documentation MCP Server

by marianfoo
ecosystem.config.cjs3.21 kB
// PM2 configuration for BM25-only SAP Docs MCP server // Simplified configuration without reranker dependencies module.exports = { apps: [ { name: "mcp-sap-proxy", script: "/opt/mcp-sap/venv/bin/mcp-proxy", args: [ "--host", "127.0.0.1", "--port", "18080", // <— pin the port "--", "node", "/opt/mcp-sap/mcp-sap-docs/dist/src/server.js" ], interpreter: "none", // <— very important (Python app, not Node) cwd: "/opt/mcp-sap/mcp-sap-docs", env: { NODE_ENV: "production", LOG_LEVEL: "DEBUG", // Enhanced for debugging LOG_FORMAT: "json", // BM25-only search configuration RETURN_K: "25" // Centralized result limit (can override CONFIG.RETURN_K) }, autorestart: true, max_restarts: 10, restart_delay: 2000, // Enhanced logging configuration log_file: "/opt/mcp-sap/logs/mcp-proxy-combined.log", out_file: "/opt/mcp-sap/logs/mcp-proxy-out.log", error_file: "/opt/mcp-sap/logs/mcp-proxy-error.log", log_type: "json", log_date_format: "YYYY-MM-DD HH:mm:ss Z", // Log rotation max_size: "10M", retain: 10, compress: true }, // HTTP status server on :3001 (pinned port for PM2) { name: "mcp-sap-http", script: "node", args: ["/opt/mcp-sap/mcp-sap-docs/dist/src/http-server.js"], cwd: "/opt/mcp-sap/mcp-sap-docs", env: { NODE_ENV: "production", PORT: "3001", LOG_LEVEL: "DEBUG", // Enhanced for debugging LOG_FORMAT: "json", // BM25-only search configuration RETURN_K: "25" // Centralized result limit (can override CONFIG.RETURN_K) }, autorestart: true, max_restarts: 10, restart_delay: 2000, // Enhanced logging configuration log_file: "/opt/mcp-sap/logs/mcp-http-combined.log", out_file: "/opt/mcp-sap/logs/mcp-http-out.log", error_file: "/opt/mcp-sap/logs/mcp-http-error.log", log_type: "json", log_date_format: "YYYY-MM-DD HH:mm:ss Z", // Log rotation max_size: "10M", retain: 10, compress: true }, // Streamable HTTP MCP server (latest MCP spec) { name: "mcp-sap-streamable", script: "node", args: ["/opt/mcp-sap/mcp-sap-docs/dist/src/streamable-http-server.js"], cwd: "/opt/mcp-sap/mcp-sap-docs", env: { NODE_ENV: "production", MCP_PORT: "3122", LOG_LEVEL: "DEBUG", // Enhanced for debugging LOG_FORMAT: "json", // BM25-only search configuration RETURN_K: "25" // Centralized result limit (can override CONFIG.RETURN_K) }, autorestart: true, max_restarts: 10, restart_delay: 2000, // Enhanced logging configuration log_file: "/opt/mcp-sap/logs/mcp-streamable-combined.log", out_file: "/opt/mcp-sap/logs/mcp-streamable-out.log", error_file: "/opt/mcp-sap/logs/mcp-streamable-error.log", log_type: "json", log_date_format: "YYYY-MM-DD HH:mm:ss Z", // Log rotation max_size: "10M", retain: 10, compress: true } ] }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/marianfoo/mcp-sap-docs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server