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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user