Install from source
Install from a source checkout to use the repository fixtures, examples, and development commands documented on this site.
Requirements
Section titled “Requirements”- Python 3.12 or newer
- Git
uv- Network access only when you choose to fetch official DICOM artifacts
The project stores downloaded artifacts and generated databases outside the repository. The default cache is:
~/.cache/dicom-standard-kb/Clone the repository
Section titled “Clone the repository”git clone https://github.com/beatrice-b-m/dicom-standard-kb.gitcd dicom-standard-kbChoose an installation profile
Section titled “Choose an installation profile”Full source-development environment
Section titled “Full source-development environment”This is the recommended setup for the documentation examples. It installs runtime, MCP, and development dependencies:
uv sync --all-extras --devThe repository’s equivalent convenience command is:
make installRuntime CLI only
Section titled “Runtime CLI only”uv syncRuntime CLI with MCP support
Section titled “Runtime CLI with MCP support”uv sync --extra mcpThe MCP server is an optional dependency. A CLI-only environment can run local
build and query commands but cannot start dicom-kb mcp serve.
Verify the executable
Section titled “Verify the executable”From the source checkout:
uv run dicom-kb --versionuv run dicom-kb --helpuv run dicom-kb doctordoctor prints package metadata and the project legal notice. It does not
verify a source cache or database; use dicom-kb verify after building one.
Optional standalone uv tool
Section titled “Optional standalone uv tool”From the repository root, install the command on uv’s tool path:
uv tool install .Include MCP support when installing:
uv tool install '.[mcp]'Reinstall an existing CLI-only tool with the extra:
uv tool install --reinstall '.[mcp]'Confirm generated-data location
Section titled “Confirm generated-data location”By default, future fetch and build commands use:
~/.cache/dicom-standard-kb/artifacts/~/.cache/dicom-standard-kb/db/Use --cache-dir or a configuration profile to
put generated data elsewhere.
Troubleshooting
Section titled “Troubleshooting”mcp dependency is missing
Section titled “mcp dependency is missing”Install or resynchronize with the MCP extra:
uv sync --extra mcpThe CLI cannot find a database
Section titled “The CLI cannot find a database”Query commands do not create a database. Complete the
offline fixture or
official build, then pass the matching
concrete edition and, when needed, --db.
Python is too old
Section titled “Python is too old”The package metadata requires Python 3.12 or newer. Select a compatible Python with uv before synchronizing the environment.