This extension exposes the Waterloo documentation backend for the 3DE4 Python API as a VS Code MCP server definition.
It is intentionally small: the extension does not generate docstrings, validate
Waterloo docstrings, or bridge to a separate Python backend. It registers a local
wtrl_mcp server definition that points at the bundled waterloo-style documentation roots.
To use the extension, you need:
- VS Code
^1.115.0or newer - sdv-doc-waterloo installed locally so
wtrl_mcpis available - an MCP-capable client such as Copilot Chat or another MCP-aware editor tool
The extension starts wtrl_mcp with this command line:
wtrl_mcp --config vscode/etc/wtrl_mcp.stdio.toml
The extension currently provides one feature:
- a VS Code MCP server definition for the 3DE4 Python API documentation
The server uses these bundled Waterloo roots:
vscode/roots/tde4_with_examples.wtrl.core.rfc-2119.jsonvscode/roots/tde4_script_config_with_examples.wtrl.core.rfc-2119.json
For editing Waterloo docstrings in Python files, install the companion extension:
Waterloo Docstrings
It provides syntax highlighting and docstring-focused editor support that fits this MCP server.
Use this extension for MCP access to the 3DE4 Python API documentation, and use the companion extension for editing Waterloo docstrings themselves.
- Install the VSIX in VS Code.
- Make sure
wtrl_mcpfromsdv-doc-waterloois available onPATH. - Open Copilot Chat or another MCP client.
- Point the client at the 3DE4 Python API MCP server definition.
- If the client does not start the server automatically, trigger MCP tool selection once manually. Some clients need that nudge before they start the server process.
For a local test install from the repository root (requires vsce; install with npm install @vscode/vsce):
tools/sdv_pydoc_build_vsix.sh
tools/sdv_pydoc_install_vsix.sh vscode/tde4-pydoc-<version>.vsix
The extension ships with sensible defaults.
Optional settings:
tde4.mcpProvideServer: register the MCP server definition in VS Codetde4.mcpCommand: override thewtrl_mcpexecutable nametde4.mcpConfigPath: point to a differentwtrl_mcp.stdio.tomltde4.mcpServerLabel: change the label shown in VS Code
The default configuration file bundled with the extension is:
vscode/etc/wtrl_mcp.stdio.toml
- License:
BSD-2-Clause - VS Code engine constraint:
^1.115.0 - MCP transport: stdio
- Intended backend:
wtrl_mcpfromsdv-doc-waterloo
The extension is compatible with MCP clients that can consume a VS Code MCP server definition. It does not depend on the older docstring generation or validation commands from the larger Waterloo VS Code package.
If activation fails, open the VS Code Output panel and select the channel
Channel.3DE4 Python API. The extension prints the preflight result there,
including the most common reason: sdv.doc.waterloo is not installed in the
Python environment used by wtrl_mcp.