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
# Install uv if you don't have it (fast Python package manager)
75
+
curl -LsSf https://astral.sh/uv/install.sh | sh
76
+
77
+
# Install project dependencies
78
+
uv sync
79
+
80
+
# Install development dependencies (for contributing)
81
+
uv sync --extra dev
75
82
```
76
83
77
84
3.**Configure environment:**
78
85
```bash
79
-
#Copy and edit the .env file with your API keys
86
+
#Create .env file with your API keys
80
87
cp .env.example .env
81
88
# Edit .env with your actual API keys
82
89
```
83
90
91
+
4.**Set up code quality tools (for contributors):**
92
+
```bash
93
+
# Install pre-commit hooks for automatic code quality checks
94
+
uv run pre-commit install
95
+
96
+
# Optional: Run pre-commit on all files to check everything
97
+
uv run pre-commit run --all-files
98
+
```
99
+
84
100
## Usage
85
101
86
102
### Starting the Server
87
103
88
104
```bash
89
-
python main.py
105
+
# Using uv (recommended)
106
+
uv run python -m src.strava_mcp.main
107
+
108
+
# Or activate the environment and run directly
109
+
source .venv/bin/activate # On Unix/macOS
110
+
python -m src.strava_mcp.main
90
111
```
91
112
92
-
The server will start on port 3000 and be accessible at `http://localhost:3000/mcp`. Else you can deploy it directly on huggingface using https://huggingface.co/spaces/Jofthomas/MCP_Server_Template/blob/main/server.py
113
+
The server will start on port 3000 and be accessible at `http://localhost:3000/mcp`.
93
114
94
115
### Testing with MCP Inspector
95
116
@@ -173,16 +194,124 @@ The server is built using:
173
194
174
195
### Project Structure
175
196
```
176
-
hack/
177
-
├── main.py # MCP server entry point
178
-
├── strava_tools.py # Strava integration tools
179
-
├── weather_tools.py # Weather prediction tools
180
-
├── mcp_utils.py # MCP server configuration
181
-
├── experimentations/ # Development and testing scripts
182
-
├── requirements.txt # Python dependencies
197
+
chathletique-mcp/
198
+
├── src/strava_mcp/
199
+
│ ├── __init__.py # Package initialization
200
+
│ ├── main.py # MCP server entry point
201
+
│ ├── strava_tools.py # Strava API integration tools
0 commit comments