Spaces:
Sleeping
Sleeping
Kacper Łukawski commited on
Commit ·
e9dfa8f
1
Parent(s): fc78260
Display MCP logs in stdout
Browse files- entrypoint.sh +2 -2
entrypoint.sh
CHANGED
|
@@ -15,8 +15,8 @@ if [ -n "${GOOGLE_DRIVE_TOKENS_JSON:-}" ]; then
|
|
| 15 |
export GOOGLE_DRIVE_MCP_TOKEN_PATH=/tmp/google-drive-mcp-tokens.json
|
| 16 |
fi
|
| 17 |
|
| 18 |
-
# Start Google Drive MCP server in background
|
| 19 |
-
google-drive-mcp start --transport http --port 3100 --host 127.0.0.1 > /var/log/google-drive-mcp.log
|
| 20 |
echo "Google Drive MCP server started (PID $!)"
|
| 21 |
|
| 22 |
# Start FastAPI app in foreground
|
|
|
|
| 15 |
export GOOGLE_DRIVE_MCP_TOKEN_PATH=/tmp/google-drive-mcp-tokens.json
|
| 16 |
fi
|
| 17 |
|
| 18 |
+
# Start Google Drive MCP server in background, forwarding its output to stdout/stderr
|
| 19 |
+
google-drive-mcp start --transport http --port 3100 --host 127.0.0.1 > >(tee -a /var/log/google-drive-mcp.log >&1) 2> >(tee -a /var/log/google-drive-mcp.log >&2) &
|
| 20 |
echo "Google Drive MCP server started (PID $!)"
|
| 21 |
|
| 22 |
# Start FastAPI app in foreground
|