We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f1033b + 3e3a242 commit 91f4e65Copy full SHA for 91f4e65
start-with-env.sh
@@ -1,6 +1,9 @@
1
#!/bin/bash
2
set -e
3
4
+# Get the directory where this script is located
5
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6
+
7
# Load environment variables from .env file if it exists
8
if [ -f ".env" ]; then
9
export $(grep -v '^#' .env | xargs)
@@ -20,4 +23,4 @@ if [ ! -f "./bin/mcp-server" ]; then
20
23
fi
21
24
22
25
# Run the server
-exec ./bin/mcp-server
26
+exec "$SCRIPT_DIR/bin/mcp-server"
0 commit comments