mcp-vector-search 0.4.14__py3-none-any.whl → 0.5.1__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.
Potentially problematic release.
This version of mcp-vector-search might be problematic. Click here for more details.
- mcp_vector_search/__init__.py +2 -2
- mcp_vector_search/cli/commands/index.py +73 -31
- mcp_vector_search/cli/commands/init.py +189 -113
- mcp_vector_search/cli/commands/install.py +525 -113
- mcp_vector_search/cli/commands/mcp.py +201 -151
- mcp_vector_search/cli/commands/reset.py +41 -41
- mcp_vector_search/cli/commands/search.py +73 -14
- mcp_vector_search/cli/commands/status.py +51 -17
- mcp_vector_search/cli/didyoumean.py +254 -246
- mcp_vector_search/cli/main.py +114 -43
- mcp_vector_search/cli/output.py +152 -0
- mcp_vector_search/cli/suggestions.py +246 -197
- mcp_vector_search/core/database.py +81 -49
- mcp_vector_search/core/indexer.py +10 -4
- mcp_vector_search/core/search.py +17 -6
- mcp_vector_search/mcp/__main__.py +1 -1
- mcp_vector_search/mcp/server.py +211 -203
- mcp_vector_search/parsers/__init__.py +7 -0
- mcp_vector_search/parsers/dart.py +605 -0
- mcp_vector_search/parsers/html.py +413 -0
- mcp_vector_search/parsers/php.py +694 -0
- mcp_vector_search/parsers/registry.py +21 -1
- mcp_vector_search/parsers/ruby.py +678 -0
- mcp_vector_search/parsers/text.py +32 -26
- mcp_vector_search/utils/gitignore.py +72 -71
- {mcp_vector_search-0.4.14.dist-info → mcp_vector_search-0.5.1.dist-info}/METADATA +76 -5
- {mcp_vector_search-0.4.14.dist-info → mcp_vector_search-0.5.1.dist-info}/RECORD +30 -26
- {mcp_vector_search-0.4.14.dist-info → mcp_vector_search-0.5.1.dist-info}/WHEEL +0 -0
- {mcp_vector_search-0.4.14.dist-info → mcp_vector_search-0.5.1.dist-info}/entry_points.txt +0 -0
- {mcp_vector_search-0.4.14.dist-info → mcp_vector_search-0.5.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -5,8 +5,12 @@ from pathlib import Path
|
|
|
5
5
|
from loguru import logger
|
|
6
6
|
|
|
7
7
|
from .base import BaseParser, FallbackParser
|
|
8
|
+
from .dart import DartParser
|
|
9
|
+
from .html import HTMLParser
|
|
8
10
|
from .javascript import JavaScriptParser, TypeScriptParser
|
|
11
|
+
from .php import PHPParser
|
|
9
12
|
from .python import PythonParser
|
|
13
|
+
from .ruby import RubyParser
|
|
10
14
|
from .text import TextParser
|
|
11
15
|
|
|
12
16
|
|
|
@@ -39,11 +43,27 @@ class ParserRegistry:
|
|
|
39
43
|
# Register TypeScript parser
|
|
40
44
|
typescript_parser = TypeScriptParser()
|
|
41
45
|
self.register_parser("typescript", typescript_parser)
|
|
42
|
-
|
|
46
|
+
|
|
47
|
+
# Register Dart parser
|
|
48
|
+
dart_parser = DartParser()
|
|
49
|
+
self.register_parser("dart", dart_parser)
|
|
50
|
+
|
|
51
|
+
# Register PHP parser
|
|
52
|
+
php_parser = PHPParser()
|
|
53
|
+
self.register_parser("php", php_parser)
|
|
54
|
+
|
|
55
|
+
# Register Ruby parser
|
|
56
|
+
ruby_parser = RubyParser()
|
|
57
|
+
self.register_parser("ruby", ruby_parser)
|
|
58
|
+
|
|
43
59
|
# Register Text parser for .txt files
|
|
44
60
|
text_parser = TextParser()
|
|
45
61
|
self.register_parser("text", text_parser)
|
|
46
62
|
|
|
63
|
+
# Register HTML parser for .html files
|
|
64
|
+
html_parser = HTMLParser()
|
|
65
|
+
self.register_parser("html", html_parser)
|
|
66
|
+
|
|
47
67
|
def register_parser(self, language: str, parser: BaseParser) -> None:
|
|
48
68
|
"""Register a parser for a specific language.
|
|
49
69
|
|