You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, if you have `src`in your `PYTHONPATH` or are in the `mcp-server` directory:
37
+
38
+
3. **Set environment variables:**
39
+
Ensure the `.env` file is present in the project root and populated with your Auth0 and Sandbox API credentials as described above.
40
+
41
+
4. **Run the FastAPI application:**
42
+
The server can be started using UV:
42
43
```bash
43
-
python src/sandbox_api_mcp_server/server.py
44
+
uv run sandbox-api-mcp-server
44
45
```
45
-
This will typically start the server on `http://0.0.0.0:9100`. The MCP endpoint will be available at `http://0.0.0.0:9100/sse` (as configured in`server.py`).
46
+
This will start the server on `http://0.0.0.0:9100`. The MCP endpoint will be available at `http://0.0.0.0:9100/sse` (as configured in`server.py`).
46
47
47
48
## Using with MCP Clients (e.g., Claude Desktop)
48
49
@@ -59,11 +60,7 @@ npm install -g mcp-remote
59
60
60
61
Ensure your FastAPI MCP server is running locally (e.g., on `http://localhost:9100` with the MCP endpoint at `http://localhost:9100/sse`):
@@ -244,9 +241,20 @@ The following tools are exposed, derived from the FastAPI application's endpoint
244
241
245
242
## Development
246
243
244
+
### Project Structure
245
+
247
246
* The main FastAPI application logic is in `src/sandbox_api_mcp_server/server.py`.
248
247
* API routes (which become MCP tools) are defined in `src/sandbox_api_mcp_server/sandbox/routes.py`.
249
248
* Request/response models are primarily in `src/sandbox_api_mcp_server/sandbox/models.py` and `src/sandbox_api_mcp_server/models.py`.
250
249
* Authentication logic is in `src/sandbox_api_mcp_server/auth.py`.
251
-
* The project uses `uv` for dependency management (see `uv.lock`) and `pip` for installation (`requirements.txt`).
252
-
* Consider using `hatch` or `poetry` for more robust dependency management and packaging if distributing this server. (The `pyproject.toml` suggests `hatch` might be intended for future use).
250
+
251
+
### Dependency Management
252
+
253
+
This project uses [UV](https://docs.astral.sh/uv/) for fast, reliable dependency management:
0 commit comments