PN

project-numina/lean-lsp-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 4 forks 品質 75 トレンド 0MIT

Leanclient を使用して言語サーバープロトコルを介して、Lean theorem の識別子との有能な相互作用を可能にする MCP サーバー.

概要

Leanclient を使用して言語サーバープロトコルを介して、Lean theorem の識別子との有能な相互作用を可能にする MCP サーバー。 このサーバーは、LLMエージェントがリーンプロジェクトを理解し、分析し、やり取りするためのツールを提供しています。 * : アクセス診断、目標状態、用語情報、ホバー文書など。 * : LeanSearch、Loogle、Lean Finder、Lean Hammer、Lean State Searchを使用して、関連するテーマと定義を見つけます。 * : VSCode、Cursor、Claudeコードを含む様々なクライアントのシンプルな構成。 1。 Pythonパッケージマネージャであるuvをインストールします。 2。 湖のビルドを手動で実行することで、あなたのLeanプロジェクトがすぐに構築されていることを確認してください。 3. IDE/Setup 4. (任意、非常に推薦される) ローカル調査を使用して幻惑を減らすためにripgrep (rg)を取付けて下さい。 システムにUVをインストールします。 Linux/MacOS: カール -LsSf https://astral.sh/uv/install.sh sh lean-lsp-mcp は、言語サーバー(ほとんどのツール)を使用するために、プロジェクトルートで湖を実行します。 一部のクライアント(例:.

概要(AI 翻訳)

ルアン-lsp-mcp

リーン・テオレンム・プロバー MCP

leanclient を使用して言語サーバープロトコルを介して、Lean theorem の識別子との有能な相互作用を可能にする MCP サーバー。 このサーバーは、LLMエージェントがリーンプロジェクトを理解し、分析し、やり取りするためのツールを提供しています。

主な特長

*リッチリーンインタラクション: 診断、目標の状態、用語情報、ホバー文書などにアクセスします。

  • 外部検索ツール**: [LeanSearch], [Loogle], [Lean Finder]], [Lean Hammer]], [[Lean State Search]]を使用して、関連する理論と定義を見つけます。 *Easy Setup:VSCode、Cursor、Claudeコードを含むさまざまなクライアントのシンプルな構成。

セットアップ

概要

1。 Pythonパッケージマネージャであるuvをインストールします。 2。 手動で[lake buildを実行することで、あなたのLeanプロジェクトが迅速に構築されていることを確認してください。 3. IDE/Setup の設定 4.(オプション、非常に推奨)ローカル検索を使用して幻覚を減らすために、ripgrep(rg)をインストールします。

##1. uvをインストール

システムにUVをインストールします。 Linux/MacOSの場合: [curl -LsSf https://astral.sh/uv/install.sh | sh

##2. 実行 lake build

lean-lsp-mcp は、言語サーバ(ほとんどのツール)を使用するプロジェクトルートで [[[T10] を実行します.

このページは 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"] } } }