lean-lsp-mcp 0.19.0__tar.gz → 0.19.2__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.19.0/src/lean_lsp_mcp.egg-info → lean_lsp_mcp-0.19.2}/PKG-INFO +3 -2
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/pyproject.toml +2 -2
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/loogle.py +9 -3
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2/src/lean_lsp_mcp.egg-info}/PKG-INFO +3 -2
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp.egg-info/requires.txt +2 -1
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/LICENSE +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/README.md +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/setup.cfg +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/__init__.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/__main__.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/client_utils.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/file_utils.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/instructions.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/models.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/outline_utils.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/profile_utils.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/search_utils.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/server.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp/utils.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp.egg-info/SOURCES.txt +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp.egg-info/dependency_links.txt +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp.egg-info/entry_points.txt +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/src/lean_lsp_mcp.egg-info/top_level.txt +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_diagnostic_line_range.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_editor_tools.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_error_handling.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_file_caching.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_logging.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_misc_tools.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_outline.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_profile.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_project_tools.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_search_tools.py +0 -0
- {lean_lsp_mcp-0.19.0 → lean_lsp_mcp-0.19.2}/tests/test_structured_output.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lean-lsp-mcp
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.2
|
|
4
4
|
Summary: Lean Theorem Prover MCP
|
|
5
5
|
Author-email: Oliver Dressler <hey@oli.show>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -8,9 +8,10 @@ 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.9.
|
|
11
|
+
Requires-Dist: leanclient==0.9.2
|
|
12
12
|
Requires-Dist: mcp[cli]==1.25.0
|
|
13
13
|
Requires-Dist: orjson>=3.11.1
|
|
14
|
+
Requires-Dist: certifi>=2024.0.0
|
|
14
15
|
Provides-Extra: lint
|
|
15
16
|
Requires-Dist: ruff>=0.2.0; extra == "lint"
|
|
16
17
|
Provides-Extra: dev
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "lean-lsp-mcp"
|
|
3
|
-
version = "0.19.
|
|
3
|
+
version = "0.19.2"
|
|
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
|
-
dependencies = ["leanclient==0.9.
|
|
9
|
+
dependencies = ["leanclient==0.9.2", "mcp[cli]==1.25.0", "orjson>=3.11.1", "certifi>=2024.0.0"]
|
|
10
10
|
|
|
11
11
|
[project.urls]
|
|
12
12
|
Repository = "https://github.com/oOo0oOo/lean-lsp-mcp"
|
|
@@ -8,12 +8,14 @@ import json
|
|
|
8
8
|
import logging
|
|
9
9
|
import os
|
|
10
10
|
import shutil
|
|
11
|
+
import ssl
|
|
11
12
|
import subprocess
|
|
12
13
|
import urllib.parse
|
|
13
14
|
import urllib.request
|
|
14
15
|
from pathlib import Path
|
|
15
16
|
from typing import Any
|
|
16
17
|
|
|
18
|
+
import certifi
|
|
17
19
|
import orjson
|
|
18
20
|
|
|
19
21
|
from lean_lsp_mcp.models import LoogleResult
|
|
@@ -35,7 +37,8 @@ def loogle_remote(query: str, num_results: int) -> list[LoogleResult] | str:
|
|
|
35
37
|
f"https://loogle.lean-lang.org/json?q={urllib.parse.quote(query)}",
|
|
36
38
|
headers={"User-Agent": "lean-lsp-mcp/0.1"},
|
|
37
39
|
)
|
|
38
|
-
|
|
40
|
+
ssl_ctx = ssl.create_default_context(cafile=certifi.where())
|
|
41
|
+
with urllib.request.urlopen(req, timeout=10, context=ssl_ctx) as response:
|
|
39
42
|
results = orjson.loads(response.read())
|
|
40
43
|
if "hits" not in results:
|
|
41
44
|
return "No results found."
|
|
@@ -139,9 +142,12 @@ class LoogleManager:
|
|
|
139
142
|
self._run(["lake", "exe", "cache", "get"], timeout=600)
|
|
140
143
|
except Exception as e:
|
|
141
144
|
logger.warning(f"Cache download: {e}")
|
|
142
|
-
logger.info("Building loogle...")
|
|
145
|
+
logger.info("Building loogle (this may a few minutes)...")
|
|
143
146
|
try:
|
|
144
|
-
|
|
147
|
+
result = self._run(["lake", "build"], timeout=900)
|
|
148
|
+
if result.returncode != 0:
|
|
149
|
+
logger.error(f"Build failed: {result.stderr[:1000]}")
|
|
150
|
+
return result.returncode == 0
|
|
145
151
|
except Exception as e:
|
|
146
152
|
logger.error(f"Build error: {e}")
|
|
147
153
|
return False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lean-lsp-mcp
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.2
|
|
4
4
|
Summary: Lean Theorem Prover MCP
|
|
5
5
|
Author-email: Oliver Dressler <hey@oli.show>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -8,9 +8,10 @@ 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.9.
|
|
11
|
+
Requires-Dist: leanclient==0.9.2
|
|
12
12
|
Requires-Dist: mcp[cli]==1.25.0
|
|
13
13
|
Requires-Dist: orjson>=3.11.1
|
|
14
|
+
Requires-Dist: certifi>=2024.0.0
|
|
14
15
|
Provides-Extra: lint
|
|
15
16
|
Requires-Dist: ruff>=0.2.0; extra == "lint"
|
|
16
17
|
Provides-Extra: dev
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|