mcp-kb 0.3.2__py3-none-any.whl → 0.3.3__py3-none-any.whl
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.
- mcp_kb/cli/args.py +9 -2
- mcp_kb/cli/main.py +9 -3
- {mcp_kb-0.3.2.dist-info → mcp_kb-0.3.3.dist-info}/METADATA +1 -1
- {mcp_kb-0.3.2.dist-info → mcp_kb-0.3.3.dist-info}/RECORD +7 -7
- {mcp_kb-0.3.2.dist-info → mcp_kb-0.3.3.dist-info}/WHEEL +0 -0
- {mcp_kb-0.3.2.dist-info → mcp_kb-0.3.3.dist-info}/entry_points.txt +0 -0
- {mcp_kb-0.3.2.dist-info → mcp_kb-0.3.3.dist-info}/top_level.txt +0 -0
mcp_kb/cli/args.py
CHANGED
@@ -15,8 +15,11 @@ from argparse import ArgumentParser, Namespace
|
|
15
15
|
from pathlib import Path
|
16
16
|
from typing import Optional
|
17
17
|
|
18
|
-
|
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,
|
mcp_kb/cli/main.py
CHANGED
@@ -14,7 +14,13 @@ from mcp_kb.cli.runtime_config import (
|
|
14
14
|
load_runtime_configuration,
|
15
15
|
persist_runtime_configuration,
|
16
16
|
)
|
17
|
-
|
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
|
-
|
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,8 +1,8 @@
|
|
1
1
|
mcp_kb/__init__.py,sha256=Ry7qODhfFQF6u6p2m3bwGWhB0-BdWTQcHDJB7NBYAio,74
|
2
2
|
mcp_kb/config.py,sha256=NUpzjDH4PQw4FyjGgYUcMsGMeenNiZTMrQj4U62xKlk,2530
|
3
3
|
mcp_kb/cli/__init__.py,sha256=dEIRWFycAfPkha1S1Bj_Y6zkvEZv4eF0qtbF9t74r60,67
|
4
|
-
mcp_kb/cli/args.py,sha256=
|
5
|
-
mcp_kb/cli/main.py,sha256=
|
4
|
+
mcp_kb/cli/args.py,sha256=NaAcxW6WzRZeDLEASKx6tPu3RDeJLX0cDkn2yeLSNZc,5904
|
5
|
+
mcp_kb/cli/main.py,sha256=t8zDokpVjRPkkhYBO4UGhHRHJifp4jAuxxbFQP4lQLE,5910
|
6
6
|
mcp_kb/cli/reindex.py,sha256=JxukrYWWurEk2DlyIEUNF6PzGbNSSwsw_XJ6-ABwIvs,3829
|
7
7
|
mcp_kb/cli/runtime_config.py,sha256=Lwb5IIINCQeidqP6Ev5JO_uqwhLpPsTokerQA8yIfPE,13077
|
8
8
|
mcp_kb/data/KNOWLEDBASE_DOC.md,sha256=xnLUJIK8WvdLxqm-rkjL00brpb3hvZHeNVpuqf_3w4E,6704
|
@@ -25,8 +25,8 @@ mcp_kb/ui/assets/index.html,sha256=4oPfhGAYhxrtwNj31JVfLgtrTyHEdoIirOTDPhMBh7g,2
|
|
25
25
|
mcp_kb/ui/assets/assets/index.css,sha256=0ijQKJMsklOMXKKMdFhx7cQUV-ksgJX1pT7XSX0XSyg,3923
|
26
26
|
mcp_kb/utils/__init__.py,sha256=lKhRsjgnbhye1sSlch1_wsAI3eWKE1M6RVIiNlnsvLI,71
|
27
27
|
mcp_kb/utils/filesystem.py,sha256=1Jr9cxIimV-o91DJMh5lR9GLFE3BDknoGquVBFQ-fd4,4027
|
28
|
-
mcp_kb-0.3.
|
29
|
-
mcp_kb-0.3.
|
30
|
-
mcp_kb-0.3.
|
31
|
-
mcp_kb-0.3.
|
32
|
-
mcp_kb-0.3.
|
28
|
+
mcp_kb-0.3.3.dist-info/METADATA,sha256=kMzKsM-pcL_EE0ah6FkLyIyNBkR5LOH83otv2DW7JzM,9944
|
29
|
+
mcp_kb-0.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
30
|
+
mcp_kb-0.3.3.dist-info/entry_points.txt,sha256=PdX1utY9cbvU_NQcKqUrWnMa4r3jGl448T7HUF9Gjqw,126
|
31
|
+
mcp_kb-0.3.3.dist-info/top_level.txt,sha256=IBiz3TNE3FF3TwkbCZpC1kkk6ohTwtBQNSPJNV3-qGA,7
|
32
|
+
mcp_kb-0.3.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|