mcp-vector-search 0.9.0__py3-none-any.whl → 0.9.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.

@@ -1,7 +1,7 @@
1
1
  """MCP Vector Search - CLI-first semantic code search with MCP integration."""
2
2
 
3
- __version__ = "0.9.0"
4
- __build__ = "37"
3
+ __version__ = "0.9.1"
4
+ __build__ = "38"
5
5
  __author__ = "Robert Matsuoka"
6
6
  __email__ = "bobmatnyc@gmail.com"
7
7
 
@@ -332,6 +332,8 @@ async def _run_batch_indexing(
332
332
  )
333
333
  error_log_path = indexer.project_root / ".mcp-vector-search" / "indexing_errors.log"
334
334
  if error_log_path.exists():
335
+ # Prune log to keep only last 1000 errors
336
+ _prune_error_log(error_log_path, max_lines=1000)
335
337
  console.print(
336
338
  f"[dim] → See details in: {error_log_path}[/dim]"
337
339
  )
@@ -692,5 +694,28 @@ def health_cmd(
692
694
  health_main(project_root=project_root, repair=repair)
693
695
 
694
696
 
697
+ def _prune_error_log(log_path: Path, max_lines: int = 1000) -> None:
698
+ """Prune error log to keep only the most recent N lines.
699
+
700
+ Args:
701
+ log_path: Path to the error log file
702
+ max_lines: Maximum number of lines to keep (default: 1000)
703
+ """
704
+ try:
705
+ with open(log_path, 'r') as f:
706
+ lines = f.readlines()
707
+
708
+ if len(lines) > max_lines:
709
+ # Keep only the last max_lines lines
710
+ pruned_lines = lines[-max_lines:]
711
+
712
+ with open(log_path, 'w') as f:
713
+ f.writelines(pruned_lines)
714
+
715
+ logger.debug(f"Pruned error log from {len(lines)} to {len(pruned_lines)} lines")
716
+ except Exception as e:
717
+ logger.warning(f"Failed to prune error log: {e}")
718
+
719
+
695
720
  if __name__ == "__main__":
696
721
  index_app()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-vector-search
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: CLI-first semantic code search with MCP integration
5
5
  Project-URL: Homepage, https://github.com/bobmatnyc/mcp-vector-search
6
6
  Project-URL: Documentation, https://mcp-vector-search.readthedocs.io
@@ -1,4 +1,4 @@
1
- mcp_vector_search/__init__.py,sha256=0eBafvbkhjzUiEM3Vc7STYMG345Phx09Bd5ixiTR0S4,299
1
+ mcp_vector_search/__init__.py,sha256=wmIPI3OtTC0MnYzNIIhOfn-WL_Wne538UHx6NYSGYos,299
2
2
  mcp_vector_search/py.typed,sha256=lCKeV9Qcn9sGtbRsgg-LJO2ZwWRuknnnlmomq3bJFH0,43
3
3
  mcp_vector_search/cli/__init__.py,sha256=TNB7CaOASz8u3yHWLbNmo8-GtHF0qwUjVKWAuNphKgo,40
4
4
  mcp_vector_search/cli/didyoumean.py,sha256=F_ss-EX4F9RgnMsEhdTwLpyNCah9SqnBZc2tBtzASck,15918
@@ -12,7 +12,7 @@ mcp_vector_search/cli/commands/__init__.py,sha256=vQls-YKZ54YEwmf7g1dL0T2SS9D4pd
12
12
  mcp_vector_search/cli/commands/auto_index.py,sha256=imVVbxWRlA128NPdK9BetNNl3ELrsdq-hqcsLqyAmoM,12712
13
13
  mcp_vector_search/cli/commands/config.py,sha256=mKE8gUgAOqCM__4yzEEu9HJPbx9X15lN264zkDJBRxg,12399
14
14
  mcp_vector_search/cli/commands/demo.py,sha256=MVfEkYmA2abRFwAbk-lpa6P14_SLJBHZAuHb9d6d02U,10630
15
- mcp_vector_search/cli/commands/index.py,sha256=DOJa2zLuL10qJ8QHpMWsTUm53vj5ERGSGAMub1-P7lI,22385
15
+ mcp_vector_search/cli/commands/index.py,sha256=5GhJZzbzCBZYfMfZPjs9cf6RsSdgAAX2MkiTXm1i0K4,23258
16
16
  mcp_vector_search/cli/commands/init.py,sha256=2kdjtIPPeutKUXs65-6W1VQPF_BQrbV6_U3TCE7U5mw,23242
17
17
  mcp_vector_search/cli/commands/install.py,sha256=phk7Eb7UOU5IsRfJyaDPdOfdUWli9gyA4cHjhgXcNEI,24609
18
18
  mcp_vector_search/cli/commands/mcp.py,sha256=Mk4g43R9yRiJVMxsDFUsZldKqY0yi2coQmhAqIMPklo,38958
@@ -58,8 +58,8 @@ mcp_vector_search/utils/gitignore.py,sha256=GiHQu9kv9PRLsWuNS8kbpXsTaBdhlsSHTu1N
58
58
  mcp_vector_search/utils/monorepo.py,sha256=leTYx4ffN4IO0wDg7OWYfXMWMPp2Q_uEHl5WQFNk5Hs,8657
59
59
  mcp_vector_search/utils/timing.py,sha256=THC7mfbTYnUpnnDcblgQacYMzbEkfFoIShx6plmhCgg,11285
60
60
  mcp_vector_search/utils/version.py,sha256=d7fS-CLemxb8UzZ9j18zH0Y0Ud097ljKKYYOPulnGPE,1138
61
- mcp_vector_search-0.9.0.dist-info/METADATA,sha256=pcrOSybQZtX4zlO9zE0fN5W6O7F2POEckALzBt2Tf0c,19120
62
- mcp_vector_search-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
63
- mcp_vector_search-0.9.0.dist-info/entry_points.txt,sha256=y3Ygtc_JiBchNEIL-tPABo7EbzBExGAxwGdkkeP5D2I,86
64
- mcp_vector_search-0.9.0.dist-info/licenses/LICENSE,sha256=FqZUgGJH_tZKZLQsMCpXaLawRyLmyFKRVfMwYyEcyTs,1072
65
- mcp_vector_search-0.9.0.dist-info/RECORD,,
61
+ mcp_vector_search-0.9.1.dist-info/METADATA,sha256=AjybXcW7c9FHyG5OGsQDx0tPNvxAtxeHShq78CrX42o,19120
62
+ mcp_vector_search-0.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
63
+ mcp_vector_search-0.9.1.dist-info/entry_points.txt,sha256=y3Ygtc_JiBchNEIL-tPABo7EbzBExGAxwGdkkeP5D2I,86
64
+ mcp_vector_search-0.9.1.dist-info/licenses/LICENSE,sha256=FqZUgGJH_tZKZLQsMCpXaLawRyLmyFKRVfMwYyEcyTs,1072
65
+ mcp_vector_search-0.9.1.dist-info/RECORD,,