lean-lsp-mcp 0.13.0__py3-none-any.whl → 0.13.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.
@@ -7,7 +7,7 @@ INSTRUCTIONS = """## General Rules
7
7
  ## Key Tools
8
8
  - lean_local_search: Confirm declarations (theorems/lemmas/defs/etc.) exist. VERY USEFUL AND FAST!
9
9
  - lean_goal: Check proof state. USE OFTEN!
10
- - lean_diagnostic_messages: Understand current proof situation (use declaration_name to focus on one proof).
10
+ - lean_diagnostic_messages: Understand current proof situation.
11
11
  - lean_hover_info: Documentation about terms and lean syntax.
12
12
  - lean_leansearch: Search theorems using natural language or Lean terms.
13
13
  - lean_loogle: Search definitions and theorems by name, type, or subexpression.
lean_lsp_mcp/server.py CHANGED
@@ -289,6 +289,7 @@ def diagnostic_messages(
289
289
  declaration_name (str, optional): Name of a specific theorem/lemma/definition.
290
290
  If provided, only returns diagnostics within that declaration.
291
291
  Takes precedence over start_line/end_line.
292
+ Slow, requires waiting for full file analysis.
292
293
 
293
294
  Returns:
294
295
  List[str] | str: Diagnostic msgs or error msg
@@ -314,7 +315,7 @@ def diagnostic_messages(
314
315
  rel_path,
315
316
  start_line=start_line_0,
316
317
  end_line=end_line_0,
317
- inactivity_timeout=8.0,
318
+ inactivity_timeout=15.0,
318
319
  )
319
320
 
320
321
  return format_diagnostics(diagnostics)
@@ -672,7 +673,7 @@ def run_code(ctx: Context, code: str) -> List[str] | str:
672
673
  client.open_file(rel_path)
673
674
  opened_file = True
674
675
  diagnostics = format_diagnostics(
675
- client.get_diagnostics(rel_path, inactivity_timeout=8.0)
676
+ client.get_diagnostics(rel_path, inactivity_timeout=15.0)
676
677
  )
677
678
  finally:
678
679
  if opened_file:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-lsp-mcp
3
- Version: 0.13.0
3
+ Version: 0.13.1
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.2
12
- Requires-Dist: mcp[cli]==1.21.0
11
+ Requires-Dist: leanclient==0.5.3
12
+ Requires-Dist: mcp[cli]==1.21.1
13
13
  Requires-Dist: orjson>=3.11.1
14
14
  Provides-Extra: lint
15
15
  Requires-Dist: ruff>=0.2.0; extra == "lint"
@@ -2,13 +2,13 @@ lean_lsp_mcp/__init__.py,sha256=lxqDq0G_sI2iu2Nniy-pTW7BE9Ux7ZXeDoGf0OAWIDc,763
2
2
  lean_lsp_mcp/__main__.py,sha256=XnpTzfJc0T-j9tHtdkA8ovTr1c139ffTewcJGhxYDaM,49
3
3
  lean_lsp_mcp/client_utils.py,sha256=hF941DEeRE3ICMgMhv9J4vv6bO4hZPJOAcFU03yIDXs,4988
4
4
  lean_lsp_mcp/file_utils.py,sha256=kCTYQSfmV-R2cm_NCi_L8W5Dcsm0_rTOPpTtpyAin78,1365
5
- lean_lsp_mcp/instructions.py,sha256=hJuWqRBOEAtzkQT83W2YgjgOJss9GZIGk2M1Y45X6bI,898
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
- lean_lsp_mcp/server.py,sha256=K-m_a8CiR8cUlyyZEq9t_R3Y07KZ-mZ_Ljws42nPCLU,36200
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.0.dist-info/licenses/LICENSE,sha256=CQlxnf0tQyoVrBE93JYvAUYxv6Z5Yg6sX0pwogOkFvo,1071
10
- lean_lsp_mcp-0.13.0.dist-info/METADATA,sha256=OMClNzemdx8HJSJ5QvJ4ZYRz4ZqtyFvSDDztn2gH1Lk,19626
11
- lean_lsp_mcp-0.13.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- lean_lsp_mcp-0.13.0.dist-info/entry_points.txt,sha256=nQbvwctWkWD7I-2f4VrdVQBZYGUw8CnUnFC6QjXxOSE,51
13
- lean_lsp_mcp-0.13.0.dist-info/top_level.txt,sha256=LGEK0lgMSNPIQ6mG8EO-adaZEGPi_0daDs004epOTF0,13
14
- lean_lsp_mcp-0.13.0.dist-info/RECORD,,
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,,