fix(odoo-mcp): update ODOO_URL environment variable to use service name instead of localhost

This commit is contained in:
Janik von Rotz committed 2025-07-28 15:56:04 +02:00
1 parent e59855c8eb
commit 357482cfda
2 files changed
+2 -11

No files matched your search

+1 -10
View File
@@ -1,29 +1,20 @@
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir fastmcp
# Copy the server script
COPY ./images/odoo-mcp/bin/server /app/server
# Make the server script executable
RUN chmod +x /app/server
# Set environment variables with defaults
ENV ODOO_URL=http://localhost:8069
ENV ODOO_URL=http://odoo:8069
ENV ODOO_DATABASE=odoo
ENV ODOO_USERNAME=admin
ENV ODOO_PASSWORD=admin
# Expose any necessary ports (MCP typically uses stdio, so this may not be needed)
# Run the server
CMD ["python3", "/app/server"]
+1 -1
View File
@@ -30,7 +30,7 @@ Add this config to your MCP client configuration:
"mintsystem/odoo-mcp"
],
"env": {
"ODOO_URL": "http://localhost:8069",
"ODOO_URL": "http://odoo:8069",
"ODOO_DATABASE": "18.0",
"ODOO_USERNAME": "admin",
"ODOO_PASSWORD": "admin"