PN

project-numina/lean-lsp-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

23 stars 4 forks 품질 75 트렌드 0MIT

MCP 서버는 Linclient를 사용하여 언어 서버 프로토콜을 통해 Lean theorem 입증자와 에이전트 상호 작용을 할 수 있습니다.

개요

MCP 서버는 Linclient를 사용하여 언어 서버 프로토콜을 통해 Lean theorem 입증자와 에이전트 상호 작용을 할 수 있습니다. 이 서버는 LLM Agent에 대한 다양한 도구를 제공하여 Lean 프로젝트를 이해하고 분석하고 상호 작용합니다. *: 접근 진단, 목표 국가, 기간 정보, hover 문서 및 더 많은 것. * : LeanSearch, Loogle, Lean Finder, Lean Hammer 및 Lean State Search를 사용하여 관련 이론과 정의를 찾을 수 있습니다. * : VSCode, Cursor 및 Claude Code를 포함한 다양한 클라이언트의 간단한 구성. 1. uv, Python 패키지 관리자 설치. 2. Lean 프로젝트를 수동으로 실행하여 신속하게 빌드하십시오. 3. IDE / Setup 4. (선택 사항, 권장) 로컬 검색을 사용하여 복도를 줄이기 위해 ripgrep (rg)을 설치하십시오. 시스템에 uv를 설치합니다. 리눅스/MacOS: 컬 -LsSf https://astral.sh/uv/install.sh | sh Lin-lsp-mcp는 프로젝트 루트에서 로컬 서버 (최대 도구)를 사용합니다. 일부 고객 (예 :.

개요(AI 번역)

린-lsp-mcp

Lean Theorem 프로버 MCP

MCP 서버는 Linclient를 사용하여 언어 서버 프로토콜을 통해 Lean theorem 입증자와 에이전트 상호 작용을 할 수 있습니다. 이 서버는 LLM Agent에 대한 다양한 도구를 제공하여 Lean 프로젝트를 이해하고 분석하고 상호 작용합니다.

키 기능

  • **Rich Lean 상호 작용 **: 접근 진단, 목표 상태, 기간 정보, hover 문서 및 더 많은 것. *External Search Tools: LeanSearch, Loogle, Lean Finder], Lean Hammer] 및 Lean State Search를 사용하여 관련 이론과 정의를 찾을 수 있습니다.
  • Easy Setup: VSCode, Cursor, Claude Code 등 다양한 클라이언트를 위한 간단한 구성.

설치

개요

  1. uv, Python 패키지 관리자 설치.
  2. Lean 프로젝트가 lake build]을 수동으로 실행하여 신속하게 빌드합니다.
  3. IDE/Setup 구성
  4. (선택, 높게 추천되는) ripgrep 설치하십시오 (rg]) 국부적으로 수색을 사용하여 복류를 감소시키기 위하여.

##1. uv 설치

시스템에 uv를 설치합니다. 리눅스/MacOS: curl -LsSf https://astral.sh/uv/install.sh | sh

##2. 실행 lake build

lean-lsp-mcp] lake serve]] 프로젝트 루트에서 언어 서버 사용 (최대 도구).

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

lean-lsp-mcp

Lean Theorem Prover MCP

MCP server that allows agentic interaction with the Lean theorem prover via the Language Server Protocol using leanclient. This server provides a range of tools for LLM agents to understand, analyze and interact with Lean projects.

Key Features

  • Rich Lean Interaction: Access diagnostics, goal states, term information, hover documentation and more.
  • External Search Tools: Use LeanSearch, Loogle, Lean Finder, Lean Hammer and Lean State Search to find relevant theorems and definitions.
  • Easy Setup: Simple configuration for various clients, including VSCode, Cursor and Claude Code.

Setup

Overview

  1. Install uv, a Python package manager.
  2. Make sure your Lean project builds quickly by running lake build manually.
  3. Configure your IDE/Setup
  4. (Optional, highly recommended) Install ripgrep (rg) to reduce hallucinations using local search.

1. Install uv

Install uv for your system. On Linux/MacOS: curl -LsSf https://astral.sh/uv/install.sh | sh

2. Run lake build

lean-lsp-mcp will run lake serve in the project root to use the language server (for most tools). Some clients (e.g. Cursor) might timeout during this process. Therefore, it is recommended to run lake build manually before starting the MCP. This ensures a faster build time and avoids timeouts.

3. Configure your IDE/Setup

One-click config setup:

OR using the setup wizard:

GitHub에서 전체 README 보기

설치

uvx lean-lsp-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "lean-lsp": { "command": "uvx", "args": ["lean-lsp-mcp"] } } }