Skip to content

Commit 4814fb7

Browse files
authored
Merge pull request #10 from RenaudB42/feature/fastMCPContext
Feature/fast mcp context
2 parents cf21b49 + b095e56 commit 4814fb7

File tree

5 files changed

+41
-24
lines changed

5 files changed

+41
-24
lines changed

README.md

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,41 @@ mcp-server-grist/
3838
- Une clé API Grist valide
3939
- Les packages Python suivants : `fastmcp`, `httpx`, `pydantic`, `python-dotenv`
4040

41+
## Utilisation à la volée
42+
43+
### Via uvx (recommandé)
44+
45+
En utilisant uvx, l'environnement et le téléchargement des paquets se fait à la volée au moment de l'éxécution
46+
47+
```bash
48+
uvx mcp-server-grist
49+
```
50+
### Utilisation avec votre Assitant IA favori qui supporte le protocole MCP
51+
52+
La configuration en json est :
53+
54+
```json
55+
{
56+
"mcpServers": {
57+
"grist-server": {
58+
"disabled": false,
59+
"timeout": 60,
60+
"type": "stdio",
61+
"command": "uvx",
62+
"args": [
63+
"mcp-server-grist"
64+
],
65+
"env": {
66+
"GRIST_API_KEY": "ta_cle_API_GRIST"
67+
}
68+
}
69+
}
70+
}
71+
```
72+
4173
## Installation
4274

43-
### Via pip (recommandé)
75+
### Via pip
4476

4577
```bash
4678
pip install mcp-server-grist
@@ -184,9 +216,6 @@ python -m mcp_server_grist --transport stdio
184216
# Mode HTTP streamable (pour intégration web)
185217
python -m mcp_server_grist --transport streamable-http --host 127.0.0.1 --port 8000 --path /mcp
186218

187-
# Mode Server-Sent Events (déprécié selon MCP 2025-03-26)
188-
python -m mcp_server_grist --transport sse --host 127.0.0.1 --port 8000 --mount-path /sse
189-
190219
# Active le mode debug avec logging détaillé
191220
python -m mcp_server_grist --debug
192221
```
@@ -208,7 +237,7 @@ Options:
208237

209238
### Sécurité des transports
210239

211-
Pour les transports HTTP et SSE, nous recommandons :
240+
Pour les transports HTTP, nous recommandons :
212241

213242
- Utiliser `127.0.0.1` (localhost) plutôt que `0.0.0.0` pour limiter l'accès au réseau local
214243
- Activer la validation d'origine (`validate_origin`) pour éviter les attaques DNS rebinding

docker-compose.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ services:
2323
- LOG_LEVEL=${LOG_LEVEL:-INFO}
2424
command: ["--transport", "streamable-http", "--host", "0.0.0.0", "--port", "8000", "--path", "/mcp"]
2525

26-
# Service en mode SSE (pour compatibilité avec clients SSE)
27-
grist-mcp-sse:
28-
build: .
29-
ports:
30-
- "${SSE_PORT:-8001}:8000"
31-
environment:
32-
- GRIST_API_KEY=${GRIST_API_KEY}
33-
- GRIST_API_HOST=${GRIST_API_HOST:-https://docs.getgrist.com/api}
34-
- LOG_LEVEL=${LOG_LEVEL:-INFO}
35-
command: ["--transport", "sse", "--host", "0.0.0.0", "--port", "8000", "--mount-path", "/sse"]
36-
3726
# Ce réseau permettra à d'autres conteneurs de se connecter au serveur MCP
3827
networks:
3928
mcp-network:

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "MCP server for Grist API integration"
99
readme = "README.md"
1010
authors = [{ name = "MCP Contributors", email = "info@example.com" }]
1111
license = "MIT"
12-
requires-python = ">=3.8"
12+
requires-python = ">=3.10"
1313
dependencies = [
1414
"fastmcp>=2.8.0",
1515
"mcp>=1.9.4",
@@ -21,11 +21,10 @@ classifiers = [
2121
"Development Status :: 4 - Beta",
2222
"Intended Audience :: Developers",
2323
"Topic :: Software Development :: Libraries :: Python Modules",
24-
"Programming Language :: Python :: 3",
25-
"Programming Language :: Python :: 3.8",
26-
"Programming Language :: Python :: 3.9",
2724
"Programming Language :: Python :: 3.10",
2825
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2928
"Operating System :: OS Independent",
3029
"Intended Audience :: Science/Research",
3130
"Intended Audience :: Information Technology",
@@ -56,13 +55,13 @@ asyncio_mode = "auto"
5655

5756
[tool.black]
5857
line-length = 100
59-
target-version = ['py38']
58+
target-version = ['py310']
6059

6160
[tool.isort]
6261
profile = "black"
6362
line_length = 100
6463

6564
[tool.mypy]
66-
python_version = "3.8"
65+
python_version = "3.10"
6766
disallow_untyped_defs = true
68-
disallow_incomplete_defs = true
67+
disallow_incomplete_defs = true

src/__init__.py

Whitespace-only changes.

src/mcp_server_grist/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Gestion de version pour MCP Server Grist.
33
"""
44

5-
__version__ = "0.2.0"
5+
__version__ = "0.2.1"

0 commit comments

Comments
 (0)