Skip to main content

Waterloo Logo

README

License Python WTRLSphinx GitHub

On PyPI

sdv-doc-waterloo is the published PyPI package that contains the Waterloo Python package, the Sphinx extension, the MCP server, and the supporting tooling.

Install it from PyPI:

pip install sdv-doc-waterloo

If you want to build the documentation with the Sphinx extension, install the optional extra that provides the external sphinx dependency:

pip install "sdv-doc-waterloo[sphinx]"

Current status

Waterloo is under active development. Recent milestones include:

Current work focuses on the MCP server:

  • Bearer-token authentication
  • Docker deployment
  • Administration tooling

Quick tutorials

waterlint

waterlint is the main command-line tool for Waterloo Docstrings. It validates docstrings, renders Waterloo JSON, generates helper output, and supports the MCP-related workflows in this project. Its JSON diagnostics are machine-readable and therefore well suited for CI pipelines and GitHub workflows.

Start with the general help:

waterlint -h

For topic-specific help, use for example:

waterlint help --topic validate
waterlint help --topic render-json
waterlint help --topic render-docker

One important waterlint output path is the MCP server setup: the tool can validate the server configuration and generate a Docker build script when you want to package the server as an image.

Running the MCP server

The MCP server exposes Waterloo documentation data through the Model Context Protocol. It is tightly bound to the Waterloo JSON schema and provides tools that help generate and inspect Waterloo docstrings. It serves the bundled roots, object details, examples, references, and prompt templates so clients can inspect the documentation structure without parsing the JSON documents directly.

After installation, start the server in a terminal with:

wtrl_mcp

This launches the MCP server with the bundled default configuration. The package installs a ready-to-use wtrl_mcp.toml next to the server code inside site-packages/sdv/doc/waterloo/mcp/, so the default startup command works without any repository checkout.

If you want to inspect or customize the configuration, point --config to a copy of that file and adjust the roots, host, port, and allowed origins as needed.

Registering the MCP server in Codex or Claude Code

Once the server is running, register it in your CLI client so it can reach the server without manual setup every time. The exact subcommand syntax depends on the CLI version, but the pattern is the same:

codex

codex mcp add myserver --url http://127.0.0.1:13316/mcp

claude

claude mcp add --transport http myserver http://127.0.0.1:13316/mcp

If you prefer localhost, use that host name instead of 127.0.0.1. If the agent itself runs inside a container or on another host, replace the address with the one that matches your deployment. The server name is only an identifier for the client, so you can choose any name that is convenient for you.

Rendering a Docker setup from the MCP configuration

If you want to ship the MCP server as a container, waterlint can generate a Docker build script from the MCP configuration. For example:

waterlint render-docker --in src/sdv/doc/waterloo/mcp/wtrl_mcp.toml --out /tmp/myserver.docker

The generated script contains the Docker build steps and the runtime command line. It also prints a few practical hints, such as which port mapping to use and which host names should be allowed for the resulting server. After that, you can build the image with the generated script and run it in Docker.

Projects using Waterloo Docstrings

The following projects use Waterloo Docstrings in practice.

Human-readable HTML
3DE4 Python Scripting Interface
Interactive HTML documentation.

LLM-ready JSON
3DE4 Python Scripting Interface
Waterloo JSON documentation with examples.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdv_doc_waterloo-0.12.10.tar.gz (402.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdv_doc_waterloo-0.12.10-py3-none-any.whl (457.8 kB view details)

Uploaded Python 3

File details

Details for the file sdv_doc_waterloo-0.12.10.tar.gz.

File metadata

  • Download URL: sdv_doc_waterloo-0.12.10.tar.gz
  • Upload date:
  • Size: 402.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for sdv_doc_waterloo-0.12.10.tar.gz
Algorithm Hash digest
SHA256 571b6d439c8bf12191607065dc2c9d089468a8cdd0766a1f0712392edd9b90bc
MD5 e11901a0b34d1f2d39d5a4dcbf909a8c
BLAKE2b-256 0ecc51ac64e5ee4e927a7b0f1de7a954c77e513a664112dc4726ac0677b95364

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdv_doc_waterloo-0.12.10.tar.gz:

Publisher: publish_pypi.yaml on uwe-at-sdv/sdv_doc_waterloo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sdv_doc_waterloo-0.12.10-py3-none-any.whl.

File metadata

File hashes

Hashes for sdv_doc_waterloo-0.12.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bc56a116ce4743715ccae667697573a1580e171e09127ad83342a8a7ad01ab78
MD5 03a8e7e7d04754439198e5162b119e13
BLAKE2b-256 2c0e82ab3f1c8a69369355924a24472944c5695d7a0b631ba36aa717680baa2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdv_doc_waterloo-0.12.10-py3-none-any.whl:

Publisher: publish_pypi.yaml on uwe-at-sdv/sdv_doc_waterloo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.12.12

2 files

0.12.11

2 files

This release

0.12.10 This release

2 files

0.12.9

2 files

0.12.8

2 files

0.12.7

2 files

0.12.6

2 files

0.12.5

2 files

0.12.4

2 files

0.12.3

2 files

0.12.2

2 files

0.12.1

2 files

0.12.0

2 files

0.11.1

2 files

0.11.0

2 files

0.10.8

2 files

0.10.7

2 files

0.10.5

2 files

0.10.4

2 files

0.10.3

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page