lean-lsp-mcp 0.12.0__tar.gz → 0.12.1__tar.gz
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.
- {lean_lsp_mcp-0.12.0/src/lean_lsp_mcp.egg-info → lean_lsp_mcp-0.12.1}/PKG-INFO +2 -2
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/pyproject.toml +2 -2
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp/server.py +14 -15
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1/src/lean_lsp_mcp.egg-info}/PKG-INFO +2 -2
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp.egg-info/requires.txt +1 -1
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/LICENSE +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/README.md +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/setup.cfg +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp/__init__.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp/__main__.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp/client_utils.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp/file_utils.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp/instructions.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp/search_utils.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp/utils.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp.egg-info/SOURCES.txt +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp.egg-info/dependency_links.txt +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp.egg-info/entry_points.txt +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/src/lean_lsp_mcp.egg-info/top_level.txt +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/tests/test_diagnostic_line_range.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/tests/test_editor_tools.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/tests/test_file_caching.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/tests/test_logging.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/tests/test_misc_tools.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/tests/test_project_tools.py +0 -0
- {lean_lsp_mcp-0.12.0 → lean_lsp_mcp-0.12.1}/tests/test_search_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lean-lsp-mcp
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.1
|
|
4
4
|
Summary: Lean Theorem Prover MCP
|
|
5
5
|
Author-email: Oliver Dressler <hey@oli.show>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -8,7 +8,7 @@ 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.
|
|
11
|
+
Requires-Dist: leanclient==0.5.1
|
|
12
12
|
Requires-Dist: mcp[cli]==1.21.0
|
|
13
13
|
Requires-Dist: orjson>=3.11.1
|
|
14
14
|
Provides-Extra: lint
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "lean-lsp-mcp"
|
|
3
|
-
version = "0.12.
|
|
3
|
+
version = "0.12.1"
|
|
4
4
|
description = "Lean Theorem Prover MCP"
|
|
5
5
|
authors = [{name="Oliver Dressler", email="hey@oli.show"}]
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
requires-python = ">=3.10"
|
|
8
8
|
license = "MIT"
|
|
9
9
|
dependencies = [
|
|
10
|
-
"leanclient==0.5.
|
|
10
|
+
"leanclient==0.5.1",
|
|
11
11
|
"mcp[cli]==1.21.0",
|
|
12
12
|
"orjson>=3.11.1",
|
|
13
13
|
]
|
|
@@ -280,8 +280,8 @@ def diagnostic_messages(
|
|
|
280
280
|
|
|
281
281
|
Args:
|
|
282
282
|
file_path (str): Abs path to Lean file
|
|
283
|
-
start_line (int, optional): Start line (1-indexed)
|
|
284
|
-
end_line (int, optional): End line (1-indexed)
|
|
283
|
+
start_line (int, optional): Start line (1-indexed). Filters from this line.
|
|
284
|
+
end_line (int, optional): End line (1-indexed). Filters to this line.
|
|
285
285
|
|
|
286
286
|
Returns:
|
|
287
287
|
List[str] | str: Diagnostic msgs or error msg
|
|
@@ -292,19 +292,16 @@ def diagnostic_messages(
|
|
|
292
292
|
|
|
293
293
|
client: LeanLSPClient = ctx.request_context.lifespan_context.client
|
|
294
294
|
|
|
295
|
-
# leanclient requires both start_line and end_line to filter
|
|
296
295
|
# Convert 1-indexed to 0-indexed for leanclient
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
else:
|
|
307
|
-
diagnostics = client.get_diagnostics(rel_path, inactivity_timeout=10.0)
|
|
296
|
+
start_line_0 = (start_line - 1) if start_line is not None else None
|
|
297
|
+
end_line_0 = (end_line - 1) if end_line is not None else None
|
|
298
|
+
|
|
299
|
+
diagnostics = client.get_diagnostics(
|
|
300
|
+
rel_path,
|
|
301
|
+
start_line=start_line_0,
|
|
302
|
+
end_line=end_line_0,
|
|
303
|
+
inactivity_timeout=8.0,
|
|
304
|
+
)
|
|
308
305
|
|
|
309
306
|
return format_diagnostics(diagnostics)
|
|
310
307
|
|
|
@@ -660,7 +657,9 @@ def run_code(ctx: Context, code: str) -> List[str] | str:
|
|
|
660
657
|
assert client is not None # startup_client guarantees an initialized client
|
|
661
658
|
client.open_file(rel_path)
|
|
662
659
|
opened_file = True
|
|
663
|
-
diagnostics = format_diagnostics(
|
|
660
|
+
diagnostics = format_diagnostics(
|
|
661
|
+
client.get_diagnostics(rel_path, inactivity_timeout=8.0)
|
|
662
|
+
)
|
|
664
663
|
finally:
|
|
665
664
|
if opened_file:
|
|
666
665
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lean-lsp-mcp
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.1
|
|
4
4
|
Summary: Lean Theorem Prover MCP
|
|
5
5
|
Author-email: Oliver Dressler <hey@oli.show>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -8,7 +8,7 @@ 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.
|
|
11
|
+
Requires-Dist: leanclient==0.5.1
|
|
12
12
|
Requires-Dist: mcp[cli]==1.21.0
|
|
13
13
|
Requires-Dist: orjson>=3.11.1
|
|
14
14
|
Provides-Extra: lint
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|