mcp-kb 0.3.2__tar.gz → 0.3.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/PKG-INFO +1 -1
  2. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/cli/args.py +9 -2
  3. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/cli/main.py +9 -3
  4. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb.egg-info/PKG-INFO +1 -1
  5. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/pyproject.toml +1 -1
  6. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/README.md +0 -0
  7. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/__init__.py +0 -0
  8. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/cli/__init__.py +0 -0
  9. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/cli/reindex.py +0 -0
  10. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/cli/runtime_config.py +0 -0
  11. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/config.py +0 -0
  12. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/data/KNOWLEDBASE_DOC.md +0 -0
  13. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/data/__init__.py +0 -0
  14. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/ingest/__init__.py +0 -0
  15. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/ingest/chroma.py +0 -0
  16. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/knowledge/__init__.py +0 -0
  17. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/knowledge/bootstrap.py +0 -0
  18. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/knowledge/events.py +0 -0
  19. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/knowledge/search.py +0 -0
  20. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/knowledge/store.py +0 -0
  21. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/security/__init__.py +0 -0
  22. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/security/path_validation.py +0 -0
  23. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/server/__init__.py +0 -0
  24. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/server/app.py +0 -0
  25. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/ui/__init__.py +0 -0
  26. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/ui/api.py +0 -0
  27. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/ui/assets/assets/index.css +0 -0
  28. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/ui/assets/index.html +0 -0
  29. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/ui/server.py +0 -0
  30. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/utils/__init__.py +0 -0
  31. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb/utils/filesystem.py +0 -0
  32. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb.egg-info/SOURCES.txt +0 -0
  33. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb.egg-info/dependency_links.txt +0 -0
  34. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb.egg-info/entry_points.txt +0 -0
  35. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb.egg-info/requires.txt +0 -0
  36. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/mcp_kb.egg-info/top_level.txt +0 -0
  37. {mcp_kb-0.3.2 → mcp_kb-0.3.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-kb
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: MCP server exposing a local markdown knowledge base
5
5
  Author: LLM Maintainer
6
6
  Requires-Python: >=3.11
@@ -15,8 +15,11 @@ from argparse import ArgumentParser, Namespace
15
15
  from pathlib import Path
16
16
  from typing import Optional
17
17
 
18
- from mcp_kb.ingest.chroma import SUPPORTED_CLIENTS, ChromaConfiguration, ChromaIngestor
19
-
18
+ try:
19
+ from mcp_kb.ingest.chroma import SUPPORTED_CLIENTS, ChromaConfiguration, ChromaIngestor
20
+ W_CHROMA = True
21
+ except ImportError:
22
+ W_CHROMA = False
20
23
 
21
24
  def parse_bool(value: str | bool | None) -> bool:
22
25
  """Return ``True`` when ``value`` represents an affirmative boolean string.
@@ -41,6 +44,8 @@ def add_chroma_arguments(parser: ArgumentParser) -> None:
41
44
  single location rather than scattering logic across the argument
42
45
  registrations themselves.
43
46
  """
47
+ if not W_CHROMA:
48
+ return None
44
49
 
45
50
  parser.add_argument(
46
51
  "--chroma-client",
@@ -144,6 +149,8 @@ def build_chroma_listener(options: Namespace, root: Path) -> Optional[ChromaInge
144
149
 
145
150
  Returns ``None`` when the configured client type is ``off``.
146
151
  """
152
+ if not W_CHROMA:
153
+ return None
147
154
 
148
155
  configuration = ChromaConfiguration.from_options(
149
156
  root=root,
@@ -14,7 +14,13 @@ from mcp_kb.cli.runtime_config import (
14
14
  load_runtime_configuration,
15
15
  persist_runtime_configuration,
16
16
  )
17
- from mcp_kb.ingest.chroma import ChromaIngestor
17
+ try:
18
+ from mcp_kb.ingest.chroma import ChromaIngestor
19
+ W_CHROMA = True
20
+ except ImportError:
21
+ if TYPE_CHECKING:
22
+ ChromaIngestor = None
23
+ W_CHROMA = False
18
24
  from mcp_kb.knowledge.bootstrap import install_default_documentation
19
25
  from mcp_kb.security.path_validation import PathRules
20
26
  from mcp_kb.server.app import create_fastmcp_app
@@ -78,7 +84,8 @@ def _build_argument_parser() -> argparse.ArgumentParser:
78
84
  ),
79
85
  )
80
86
 
81
- add_chroma_arguments(parser)
87
+ if W_CHROMA:
88
+ add_chroma_arguments(parser)
82
89
  return parser
83
90
 
84
91
 
@@ -148,7 +155,6 @@ def run_server(arguments: Iterable[str] | None = None) -> None:
148
155
  )
149
156
  logger.info(f"Data root is {root_path}")
150
157
 
151
- #having only the README.md. Think about a question a user might have. then using only
152
158
  # Start the human-accessible UI when an HTTP-capable transport is active.
153
159
  if not options.no_ui and any(t in ("http", "sse") for t in transports):
154
160
  kb = getattr(server, "kb", None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-kb
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: MCP server exposing a local markdown knowledge base
5
5
  Author: LLM Maintainer
6
6
  Requires-Python: >=3.11
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mcp-kb"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  description = "MCP server exposing a local markdown knowledge base"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "LLM Maintainer" }]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes