Files
splunk-mcp/Dockerfile.test
livehybrid 8bb6d9f4fd Additional testing, setup and docs (#3)
* feat(api): Add OpenAPI/Swagger documentation for MCP tools

- Add Swagger UI and ReDoc documentation endpoints

- Document MCP tools as operations under a single /execute endpoint

- Add proper parameter schemas and response types for each tool

- Group endpoints by MCP Core and MCP Tools tags

- Include tool descriptions and parameters in OpenAPI schema

- Add proper error responses and validation schemas

* feat(api): Add Splunk MCP tool documentation

- Implement OpenAPI/Swagger documentation for MCP tools

- Add documentation endpoints (/docs, /redoc)

- Create unified schema for tool operations

- Add parameter validation and response types

- Group endpoints by Core and Tools categories

- Document SSE and message endpoints
2025-03-25 16:52:34 +00:00

31 lines
893 B
Docker

FROM python:3.10-slim
WORKDIR /app
# Install build dependencies, curl for healthcheck, and uv
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc \
python3-dev \
curl \
&& rm -rf /var/lib/apt/lists/* \
&& pip install --no-cache-dir uv
# Copy project files
COPY pyproject.toml poetry.lock ./
COPY splunk_mcp.py ./
COPY test_endpoints.py ./
COPY tests/ ./tests/
COPY test_config.py ./
COPY README.md ./
# Install dependencies using uv
RUN uv pip install --system poetry && \
uv pip install --system -e . && \
uv pip install --system pytest pytest-asyncio pytest-cov pytest-mock
# Create directory for test results
RUN mkdir -p /app/test-results
# Default command runs both standalone and pytest tests
CMD ["sh", "-c", "python test_endpoints.py && pytest tests/test_endpoints_pytest.py -v --junitxml=/app/test-results/test-results.xml"]