Files
Lupul-Augmentat/start-mcp.sh
root f4e2319f30 Fix: Remove stderr redirect and explicitly set MCP_TRANSPORT
- Remove 2>/dev/null to see actual errors
- Explicitly export MCP_TRANSPORT=stdio
- Helps debug connection issues

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 06:57:33 +02:00

23 lines
506 B
Bash
Executable File

#!/bin/bash
# MCP Server Startup Wrapper
# Ensures proper Node.js environment is loaded
# Load NVM if available
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Change to Lupul directory
cd /srv/Lupul-Augmentat
# Load environment variables
if [ -f .env ]; then
export $(cat .env | grep -v '^#' | xargs)
fi
# Disable all logging for MCP stdio protocol
export MCP_LOG_LEVEL=silent
export MCP_TRANSPORT=stdio
# Start the server with ts-node
exec npx ts-node src/server.ts