Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Keep the build context small: the image only needs the wheel in dist/ and the
# files the Dockerfile copies.
.git
.venv
.pytest_cache
.ruff_cache
.tox
build
src/*.egg-info
**/__pycache__
tests
docs
demos
epr_reports
.env
12 changes: 10 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@
# EPR Server Configuration
# Note: When running in Docker, use one of these URL patterns:
# - For EPR server on host machine: http://host.docker.internal:8042
# - For EPR server in another container: http://epr-server-container-name:8042
# - For EPR server in another container: http://epr-server-container-name:8042
# - For EPR server accessible via network: http://your-epr-server-host:8042
EPR_URL=http://host.docker.internal:8042
EPR_TOKEN=your-epr-api-token-here
EPR_DEBUG=false

# MCP server configuration, used when you run eprmcp directly (for example
# `set -a; source .env; set +a; eprmcp start`). docker-compose.yaml and the
# Dockerfile fix the container to 0.0.0.0:8000 over http, so these do not change
# a Compose deployment.
# MCP_TRANSPORT=http
# MCP_HOST=127.0.0.1
# MCP_PORT=8000

# Grafana Configuration (for monitoring profile)
GRAFANA_USER=admin
GRAFANA_PASSWORD=secure-password-here

# Docker Configuration
COMPOSE_PROJECT_NAME=epr-mcp
COMPOSE_PROJECT_NAME=epr-mcp
45 changes: 45 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# SPDX-FileCopyrightText: © 2025 Brett Smith <xbcsmith@gmail.com>
# SPDX-License-Identifier: Apache-2.0
#
# Runs the AGENTS.md quality gates: ruff, the tests with the 80% coverage floor
# (which include the workshop checkpoints and the demos), and the markdown gates.
---
name: ci

"on":
push:
branches: [main]
pull_request:

jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Install
run: uv sync --python 3.12 --extra lint --extra test
- name: Lint
run: |
uv run ruff check src/ tests/ demos/ docs/tutorials/code
uv run ruff format --check src/ tests/ demos/ docs/tutorials/code
- name: Test
env:
EPR_MCP_FUNCTIONAL: "1"
run: uv run pytest --cov=src --cov-report=term-missing --cov-fail-under=80
- name: Doctests
run: uv run pytest --doctest-modules --import-mode=importlib src/epr_mcp demos

markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Lint and format check
run: |
npm install --global markdownlint-cli prettier
files=$(git ls-files '*.md' | grep -v -e '^AGENTS.md$' -e '^PLAN.md$')
markdownlint --config .markdownlint.json $files
prettier --check --parser markdown --prose-wrap always $files
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.vscode
!docs/tutorials/code/.vscode/
/uv.lock
epr_reports/
docs/tutorials/code/work/
docs/tutorials/code/seed_ids.json
docs/tutorials/code/epr-server.tar.gz

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
Loading
Loading