Ajout de Dockerfile et configuration MCP

Ajout du Dockerfile pour containeriser l'application MCP

- Création du Dockerfile avec l'image Python 3.11 slim
- Installation du SDK FastMCP
- Copie du code source dans le conteneur
- Exposition du port 6666
- Configuration du point d'entrée

Ajout du fichier opencode.json pour la configuration MCP

Ajout du script Python src/mon_mcp.py avec les outils echo, shout et additionner

Ajout du fichier test.py pour les tests de l'API
This commit is contained in:
2026-01-25 12:07:21 +01:00
parent 7412b51ab5
commit 9f9d9bc3b3
5 changed files with 68 additions and 2 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# Dockerfile
FROM python:3.11-slim
WORKDIR /app
# Installer le SDK MCP Python
RUN pip install --no-cache-dir fastmcp
# Copier le serveur
COPY src/* .
# Exposer le port
EXPOSE 6666
# Lancer le serveur
CMD ["python", "./mon_mcp.py"]