version
Returns the current release number of the build123d-mcp server for compatibility verification.
Instructions
Return the build123d-mcp server version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/build123d_mcp/server.py:161-165 (handler)Primary tool handler: decorated with @mcp.tool() as the 'version' tool. Returns the server version string using importlib.metadata.
@mcp.tool() def version() -> str: """Return the build123d-mcp server version.""" from importlib.metadata import version as _version return _version("build123d-mcp") - src/build123d_mcp/worker.py:125-127 (handler)Worker dispatch for the 'version' operation: calls importlib.metadata.version('build123d-mcp') directly in the subprocess.
if op == "version": from importlib.metadata import version return version("build123d-mcp") - src/build123d_mcp/worker.py:293-294 (helper)WorkerSession.version() proxy method that sends a 'version' op to the worker subprocess via Pipe with SHORT_TIMEOUT (10s).
def version(self) -> str: return self._call("version", {}, self._SHORT_TIMEOUT) - src/build123d_mcp/server.py:270-270 (registration)CLI --version argument registration using importlib.metadata.version for argparse action='version'.
parser.add_argument("--version", action="version", version=f"%(prog)s {version('build123d-mcp')}")