Skip to content

Install from source

Install from a source checkout to use the repository fixtures, examples, and development commands documented on this site.

  • 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/
Terminal window
git clone https://github.com/beatrice-b-m/dicom-standard-kb.git
cd dicom-standard-kb

This is the recommended setup for the documentation examples. It installs runtime, MCP, and development dependencies:

Terminal window
uv sync --all-extras --dev

The repository’s equivalent convenience command is:

Terminal window
make install
Terminal window
uv sync
Terminal window
uv sync --extra mcp

The MCP server is an optional dependency. A CLI-only environment can run local build and query commands but cannot start dicom-kb mcp serve.

From the source checkout:

Terminal window
uv run dicom-kb --version
uv run dicom-kb --help
uv run dicom-kb doctor

doctor prints package metadata and the project legal notice. It does not verify a source cache or database; use dicom-kb verify after building one.

From the repository root, install the command on uv’s tool path:

Terminal window
uv tool install .

Include MCP support when installing:

Terminal window
uv tool install '.[mcp]'

Reinstall an existing CLI-only tool with the extra:

Terminal window
uv tool install --reinstall '.[mcp]'

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.

Install or resynchronize with the MCP extra:

Terminal window
uv sync --extra mcp

Query commands do not create a database. Complete the offline fixture or official build, then pass the matching concrete edition and, when needed, --db.

The package metadata requires Python 3.12 or newer. Select a compatible Python with uv before synchronizing the environment.