Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mcp-trove-crunchtools"
version = "0.3.0"
version = "0.4.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To avoid manually updating the version in multiple files, consider making pyproject.toml the single source of truth. You can then read the version dynamically in your code using importlib.metadata. This prevents inconsistencies and simplifies future version bumps.

For example:

In src/mcp_trove_crunchtools/__init__.py:

from importlib import metadata

try:
    __version__ = metadata.version("mcp-trove-crunchtools")
except metadata.PackageNotFoundError:
    # package is not installed, e.g., in development
    __version__ = "0.0.0-dev"

Then, in src/mcp_trove_crunchtools/server.py, you can simply import it:

from . import __version__

mcp = FastMCP(
    "mcp-trove-crunchtools",
    version=__version__,
    # ...
)

This change would make version management more robust.

description = "Self-hosted local file indexing MCP server with semantic search"
requires-python = ">=3.11"
license = "AGPL-3.0-or-later"
Expand Down
2 changes: 1 addition & 1 deletion src/mcp_trove_crunchtools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import argparse
import sys

__version__ = "0.3.0"
__version__ = "0.4.0"


def main() -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/mcp_trove_crunchtools/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

mcp = FastMCP(
"mcp-trove-crunchtools",
version="0.3.0",
version="0.4.0",
instructions=(
"Self-hosted local file indexing MCP server with semantic search. "
"Index any local directory and search over contents using hybrid "
Expand Down
Loading