#!/usr/bin/env zsh

echo "=== Filesystem MCP Server Launcher ==="

# Use the globally installed package
if command -v node >/dev/null 2>&1; then
    echo "Starting @cyanheads/filesystem-mcp-server (stdio transport)..."
    echo "Log level: debug"
    echo "Press Ctrl+C to stop."
    echo "----------------------------------------"
    
    MCP_LOG_LEVEL=debug \
    MCP_TRANSPORT_TYPE=stdio \
    node "~/Projects/local/mcp_servers/filesystem_mcp/dist/index.js" \
    2> filesystem_mcp.log
else
    echo "Error: Node.js not found!" >&2
    exit 1
fi
