lean-lsp-mcp 0.13.1__py3-none-any.whl → 0.13.2__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.
@@ -36,14 +36,15 @@ def startup_client(ctx: Context):
36
36
  client.close()
37
37
 
38
38
  # Need to create a new client
39
+ # In test environments, prevent repeated cache downloads
40
+ prevent_cache = bool(os.environ.get("LEAN_LSP_TEST_MODE"))
39
41
  with OutputCapture() as output:
40
- try:
41
- client = LeanLSPClient(lean_project_path)
42
- logger.info(f"Connected to Lean language server at {lean_project_path}")
43
- except Exception as e:
44
- logger.warning(f"Initial connection failed, trying with build: {e}")
45
- client = LeanLSPClient(lean_project_path, initial_build=True)
46
- logger.info(f"Connected with initial build to {lean_project_path}")
42
+ client = LeanLSPClient(
43
+ lean_project_path,
44
+ initial_build=False,
45
+ prevent_cache_get=prevent_cache
46
+ )
47
+ logger.info(f"Connected to Lean language server at {lean_project_path}")
47
48
  build_output = output.get_output()
48
49
  if build_output:
49
50
  logger.debug(f"Build output: {build_output}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-lsp-mcp
3
- Version: 0.13.1
3
+ Version: 0.13.2
4
4
  Summary: Lean Theorem Prover MCP
5
5
  Author-email: Oliver Dressler <hey@oli.show>
6
6
  License-Expression: MIT
@@ -8,8 +8,8 @@ Project-URL: Repository, https://github.com/oOo0oOo/lean-lsp-mcp
8
8
  Requires-Python: >=3.10
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
- Requires-Dist: leanclient==0.5.3
12
- Requires-Dist: mcp[cli]==1.21.1
11
+ Requires-Dist: leanclient==0.5.5
12
+ Requires-Dist: mcp[cli]==1.21.2
13
13
  Requires-Dist: orjson>=3.11.1
14
14
  Provides-Extra: lint
15
15
  Requires-Dist: ruff>=0.2.0; extra == "lint"
@@ -1,14 +1,14 @@
1
1
  lean_lsp_mcp/__init__.py,sha256=lxqDq0G_sI2iu2Nniy-pTW7BE9Ux7ZXeDoGf0OAWIDc,763
2
2
  lean_lsp_mcp/__main__.py,sha256=XnpTzfJc0T-j9tHtdkA8ovTr1c139ffTewcJGhxYDaM,49
3
- lean_lsp_mcp/client_utils.py,sha256=hF941DEeRE3ICMgMhv9J4vv6bO4hZPJOAcFU03yIDXs,4988
3
+ lean_lsp_mcp/client_utils.py,sha256=lzWOuiuho-PrI_ARH0Kdn93yBXmK--G3izccMsuu-7g,4930
4
4
  lean_lsp_mcp/file_utils.py,sha256=kCTYQSfmV-R2cm_NCi_L8W5Dcsm0_rTOPpTtpyAin78,1365
5
5
  lean_lsp_mcp/instructions.py,sha256=1Xgh_fkdRpz-lqdl6kpETdwEu-IGRQGIdSdU7o9t5hc,853
6
6
  lean_lsp_mcp/search_utils.py,sha256=X2LPynDNLi767UDxbxHpMccOkbnfKJKv_HxvRNxIXM4,3984
7
7
  lean_lsp_mcp/server.py,sha256=g_CcgMl4aOE0MqcNv5O0DvSR7mN_fSdmJQAddDSclfA,36261
8
8
  lean_lsp_mcp/utils.py,sha256=YE6o6eswOi47AYojITQ2RcR-DspqKtgACeV-O7xgOKM,10554
9
- lean_lsp_mcp-0.13.1.dist-info/licenses/LICENSE,sha256=CQlxnf0tQyoVrBE93JYvAUYxv6Z5Yg6sX0pwogOkFvo,1071
10
- lean_lsp_mcp-0.13.1.dist-info/METADATA,sha256=Y7CElIvCA6scvnk2PJyMANjW1dyg9VFk0-SBwpk4wU8,19626
11
- lean_lsp_mcp-0.13.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- lean_lsp_mcp-0.13.1.dist-info/entry_points.txt,sha256=nQbvwctWkWD7I-2f4VrdVQBZYGUw8CnUnFC6QjXxOSE,51
13
- lean_lsp_mcp-0.13.1.dist-info/top_level.txt,sha256=LGEK0lgMSNPIQ6mG8EO-adaZEGPi_0daDs004epOTF0,13
14
- lean_lsp_mcp-0.13.1.dist-info/RECORD,,
9
+ lean_lsp_mcp-0.13.2.dist-info/licenses/LICENSE,sha256=CQlxnf0tQyoVrBE93JYvAUYxv6Z5Yg6sX0pwogOkFvo,1071
10
+ lean_lsp_mcp-0.13.2.dist-info/METADATA,sha256=8UFbXM1OVizqVDOthRMcbQo5mN4VeGMFm-qINdvvXC8,19626
11
+ lean_lsp_mcp-0.13.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ lean_lsp_mcp-0.13.2.dist-info/entry_points.txt,sha256=nQbvwctWkWD7I-2f4VrdVQBZYGUw8CnUnFC6QjXxOSE,51
13
+ lean_lsp_mcp-0.13.2.dist-info/top_level.txt,sha256=LGEK0lgMSNPIQ6mG8EO-adaZEGPi_0daDs004epOTF0,13
14
+ lean_lsp_mcp-0.13.2.dist-info/RECORD,,