MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / get_version

Function get_version

src/codegraphcontext/cli/main.py:93–101  ·  view source on GitHub ↗

Try to read version from the installed package metadata. Fallback to a dev version if not installed.

()

Source from the content-addressed store, hash-verified

91
92
93def get_version() -> str:
94 """
95 Try to read version from the installed package metadata.
96 Fallback to a dev version if not installed.
97 """
98 try:
99 return pkg_version("codegraphcontext") # must match [project].name in pyproject.toml
100 except PackageNotFoundError:
101 return "0.0.0 (dev)"
102
103
104# Create MCP command group

Callers 3

export_to_bundleMethod · 0.85
version_cmdFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected