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

Function get_version

src/codegraphcontext/cli/main.py:96–104  ·  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

94
95
96def get_version() -> str:
97 """
98 Try to read version from the installed package metadata.
99 Fallback to a dev version if not installed.
100 """
101 try:
102 return pkg_version("codegraphcontext") # must match [project].name in pyproject.toml
103 except PackageNotFoundError:
104 return "0.0.0 (dev)"
105
106
107# 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