Fix .env.example for proper local and remote configuration

- Separate configuration sections for local (stdio) and HTTP modes
- Fix variable names: MCP_SERVER_PORT/HOST for local mode
- Change default NODE_DB_PATH to ./data/nodes-v2.db for local dev
- Add missing REBUILD_ON_START variable
- Set NODE_ENV to development by default
- Add clear comments explaining which mode uses which variables
- Update README with cp .env.example .env step

The .env.example now properly supports both deployment modes
and will work out of the box when copied to .env.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-06-08 08:03:49 +00:00
parent a514c92c6c
commit dde26e2930
2 changed files with 51 additions and 27 deletions

View File

@@ -27,7 +27,7 @@ This MCP server serves as a comprehensive knowledge base for AI assistants to un
- Node.js 18+
- Git (for cloning n8n-docs)
### Setup
### Quick Start
```bash
# Clone the repository
@@ -37,11 +37,17 @@ cd n8n-mcp
# Install dependencies
npm install
# Copy environment configuration
cp .env.example .env
# Build the project
npm run build
# Initialize and rebuild the database with all nodes
npm run db:rebuild:v2
# Start the local MCP server (for Claude Desktop)
npm run start:v2
```
### Deployment Options