Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

fix(python): CLI --help/--version no longer hang by starting the server; bump 0.1.1

FABIOTESSaedd16a58ef7
diff --git a/python/pyproject.toml b/python/pyproject.toml
index 8d6609da..6b8fc53f 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "open-ontologies-lite"
-version = "0.1.0"
+version = "0.1.1"
description = "Lightweight Python bridge to the Oxigraph RDF/OWL engine, MCP server included. No Rust toolchain, no compilation."
readme = "README.md"
requires-python = ">=3.10"
diff --git a/python/src/open_ontologies_lite/__init__.py b/python/src/open_ontologies_lite/__init__.py
index 0996cb17..70d2164a 100644
--- a/python/src/open_ontologies_lite/__init__.py
+++ b/python/src/open_ontologies_lite/__init__.py
@@ -4,5 +4,5 @@ Oxigraph RDF/OWL engine. No Rust toolchain, no compilation, prebuilt wheels only
from .engine import OntologyEngine, ValidationResult, resolve_format
-__version__ = "0.1.0"
+__version__ = "0.1.1"
__all__ = ["OntologyEngine", "ValidationResult", "resolve_format", "__version__"]
diff --git a/python/src/open_ontologies_lite/server.py b/python/src/open_ontologies_lite/server.py
index 9e9dbf71..e2dc30b0 100644
--- a/python/src/open_ontologies_lite/server.py
+++ b/python/src/open_ontologies_lite/server.py
@@ -10,6 +10,7 @@ from __future__ import annotations
from mcp.server.fastmcp import FastMCP
+from . import __version__
from .engine import OntologyEngine
mcp = FastMCP(
@@ -86,6 +87,18 @@ def onto_lint() -> dict:
def main() -> None:
+ import argparse
+
+ parser = argparse.ArgumentParser(
+ prog="open-ontologies-lite",
+ description="Lightweight RDF/OWL ontology MCP server (stdio transport).",
+ )
+ parser.add_argument(
+ "--version", action="version", version=f"open-ontologies-lite {__version__}"
+ )
+ # No positional args: parsing only intercepts --help/--version (which exit
+ # cleanly) instead of falling straight through into a blocking server start.
+ parser.parse_args()
mcp.run(transport="stdio")