debug: Replace ls -l / with sleep 10 for debugging
Gemini
903f15d
This commit replaces the ls -l / command with a simple sleep 10 command in the run_mcp_server function for debugging purposes. This will help verify if the subprocess execution is working correctly and if the process stays alive.
debug: Replace echo command with ls -l / for debugging
Gemini
8ba3af9
This commit replaces the echo command with a simple ls -l / command in the run_mcp_server function for debugging purposes. This will help verify if the subprocess execution is working correctly and if writing to /tmp is possible.
fix: Use create_subprocess_shell for echo command
Gemini
1f2117d
This commit modifies the run_mcp_server function to use asyncio.create_subprocess_shell instead of asyncio.create_subprocess_exec to execute shell commands. This resolves the FileNotFoundError when trying to execute the echo command.
debug: Replace notion-mcp-server with echo command
Gemini
b49994b
This commit replaces the notion-mcp-server command with a simple echo command in the run_mcp_server function for debugging purposes. This will help verify if the subprocess execution is working correctly.
fix: Set WORKDIR to /app before copying Python files
Gemini
b672549
This commit modifies the Dockerfile to set the WORKDIR to /app before copying the app.py and requirements.txt files. This ensures that the uvicorn command is executed from /app, and that the app.py file can correctly reference the notion-mcp-server at /notion-mcp-server.
debug: Redirect notion-mcp-server output to files
Gemini
d86baf2
This commit modifies the run_mcp_server function to redirect stdout and stderr of the notion-mcp-server to files for debugging purposes. This will allow us to inspect the logs of the notion-mcp-server to understand why it's failing.
fix: Run notion-mcp-server as detached process
Gemini
4e34990
This commit modifies the run_mcp_server function to start the notion-mcp-server as a detached process. This ensures that the server continues to run in the background even after the startup_event finishes. The startup_event is also updated to simply call run_mcp_server without iterating over it.
fix: Keep notion-mcp-server running in background
Gemini
7871676
This commit modifies the startup_event function to correctly handle the async generator returned by run_mcp_server and keep the notion-mcp-server running in the background. This resolves the issue where the server starts and immediately exits.
fix: Handle async generator in startup_event
Gemini
e5dc9db
This commit modifies the startup_event function to correctly handle the async generator returned by run_mcp_server. This resolves the TypeError: a coroutine was expected error.
fix: Import httpx in app.py
Gemini
0962686
This commit adds the import statement for httpx in app.py. This resolves the NameError: name 'httpx' is not defined that was causing the application to crash.
Revert "refactor: Simplify app.py for debugging"
Gemini
106b6ff
This reverts commit a2bcd2291c890d5760253b2dee4fa42a1bf27d69.
refactor: Simplify app.py for debugging
Gemini
a2bcd22
This commit simplifies the app.py file by removing the streaming logic and returning a simple response from the root endpoint. This is done to isolate the problem and confirm that the FastAPI application is working correctly.
fix: Import Request object in app.py
Gemini
7eb908d
This commit adds the Request object to the import statement from fastapi in app.py. This resolves the NameError: name 'Request' is not defined that was causing the application to crash.
feat: Add proxy for /health endpoint
Gemini
95a7875
This commit adds a proxy for the /health endpoint to the FastAPI wrapper. This exposes the /health endpoint of the notion-mcp-server through the FastAPI wrapper, allowing clients to check the health of the server.
The following changes were made:
- Added httpx to requirements.txt
- Added a new route to app.py that proxies /health requests
Revert "feat: Proxy /mcp requests to notion-mcp-server"
Gemini
bd96121
This reverts commit 9b6c85323b7b6cdd5494cf2fb4c7133598e1ef72.
Revert "fix: Start notion-mcp-server as a background task"
Gemini
db39b39
This reverts commit 7f9d22d825bdc9d718c64f27adf62b8d247f46ee.
Revert "refactor: Remove httpx dependency"
Gemini
897a598
This reverts commit f5758d2f3d5db0ad7f30110d14a64484dcc7e137.
Revert "refactor: Remove authentication logic"
Gemini
ea9b6ee
This reverts commit 5e5de6b7aa7f751dac0f4a3bd54ff9de66c5a971.
refactor: Remove authentication logic
Gemini
5e5de6b
This commit removes the authentication logic from the app.py file. This is no longer needed as the space will be made public.