wtrl_mcp
Assist LLM writing Waterloo Docstrings, a format with emphasis on machine-verifyable normativity.
README
PRELIMINARY - OFFICIAL START AT 2026-07-01
<p align="center"> <img src="img/wtrl_logo_color.svg" alt="Waterloo Logo" width="240"> </p>
README
Install from source
package_main contains the Waterloo Python package and the Sphinx extension.
The package can be installed from a local checkout of this repository:
cd package_main
pip install .
If you want to build the documentation with the Sphinx extension, install
the optional extra that provides the external sphinx dependency:
cd package_main
pip install ".[sphinx]"
The package can also be installed directly from GitHub:
pip install "git+https://github.com/uwe-at-sdv/sdv_doc_waterloo.git@main#subdirectory=package_main"
SSH works as well for authenticated access:
pip install "git+ssh://git@github.com/uwe-at-sdv/sdv_doc_waterloo.git@main#subdirectory=package_main"
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 default configuration
src/sdv/doc/waterloo/mcp/wtrl_mcp.toml for access to 127.0.0.1 or
localhost on port 13316.
Consult your operating system documentation if you want to run it as a service.
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.
Sitemap
Public documentation
- Human-readable documentation
- Example for an interactive presentation
- Example for LLM-ready documentation, best consumed either directly by a coding agent or through an MCP server
Core package
- JSON-Schema
src/sdv/doc/waterloo/schema/wtrl-*-json-*.*.*.schema.json
- Waterloo parser and linter source code
src/sdv/doc/waterloo
- Documentation source (reST)
src/sdv/doc/waterloo/doc
- MCP configuration and server code
src/sdv/doc/waterloo/mcp
- Pytests orchestration and sample code
src/sdv/doc/waterloo/pytestsrc/sdv/doc/waterloo/examples-pythonsrc/sdv/doc/waterloo/examples-diagnostics-python
- Images for public presentation (logos)
src/sdv/doc/waterloo/img
- Tools (not well-documented)
src/sdv/doc/waterloo/tools
IDE extras
- Additional utilities
- Clone directly:
git clone --branch ide-plugins --single-branch https://github.com/uwe-at-sdv/sdv_doc_waterloo.git
- Lexer for
pygmentspygments/python_waterloo_lexer.py
- Extension for
vscode- Waterloo syntax highlighting
- Context menu commands for docstring generation and validation
- Clone directly:
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。