- Update README.md to reflect relative path usage. - Change MCP server commands in claude_desktop_config.json to relative paths. - Modify launch scripts to use `cd "$(dirname "$0")"` and relative paths, removing OS-specific absolute prefixes.
20 lines
509 B
Bash
Executable File
20 lines
509 B
Bash
Executable File
#!/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 "./dist/index.js" \
|
|
2> filesystem_mcp.log
|
|
else
|
|
echo "Error: Node.js not found!" >&2
|
|
exit 1
|
|
fi
|