Files
n8n-mcp/docs
czlonkowski 7a71c3c3f8 fix: memory leak in SimpleCache causing MCP connection loss (fixes #118)
- Added cleanupTimer property to track setInterval timer
- Implemented destroy() method to clear timer and prevent memory leak
- Updated MCP server shutdown to call cache.destroy()
- Enhanced HTTP server error handling with transport.onerror
- Fixed event listener cleanup to prevent accumulation
- Added comprehensive test coverage for memory leak prevention

This fixes the issue where MCP server would lose connection after
several hours due to timer accumulation causing memory exhaustion.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 14:45:58 +02:00
..

n8n-MCP Documentation

Welcome to the n8n-MCP documentation. This directory contains comprehensive guides for installation, configuration, and troubleshooting.

📚 Documentation Index

Getting Started

Deployment

Reference

For Users

For Developers

📋 Environment Variables

Key configuration options:

Variable Description Default
MCP_MODE Server mode: stdio or http stdio
USE_FIXED_HTTP Use fixed HTTP implementation (v2.3.2+) true
AUTH_TOKEN Authentication token for HTTP mode Required
PORT HTTP server port 3000
LOG_LEVEL Logging verbosity info

See Installation Guide for complete list.

🆘 Getting Help

  1. Check the Troubleshooting Guide
  2. Review HTTP Server Fix Documentation for v2.3.2 issues
  3. Open an issue on GitHub

📝 License

This project uses the Sustainable Use License. See LICENSE for details.