feat: MCP server v2 — build, status tools and structured search#279
Open
yichuan-w wants to merge 3 commits into
Open
feat: MCP server v2 — build, status tools and structured search#279yichuan-w wants to merge 3 commits into
yichuan-w wants to merge 3 commits into
Conversation
…ch output - Add `leann_build` tool: build/update indexes directly from MCP, supports incremental updates so the index stays current as code changes - Add `leann_status` tool: show index details (backend, embedding model, chunk count, file count, size) - Switch `leann_search` to use --json output with file paths always included, formatted as markdown code blocks for better code context - Fix float32 JSON serialization in `leann search --json` - Clean up tool descriptions to be concise and action-oriented - Bump MCP server version to 2.0.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ate vscode settings Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
leann_buildtool: Build or incrementally update indexes directly from Claude Code. Supports file lists, backend selection (ivf/hnsw), and force rebuild. This is the key "dynamic update" feature — the index stays current as code changes.leann_statustool: Inspect index details — backend type, embedding model, dimensions, chunk count, file count, total size, location.leann_searchimprovements: Uses--jsonoutput instead of parsing text. File paths always included. Results formatted as markdown code blocks for better code context.float32JSON serialization inleann search --json.ultimate_goal.md, improved CLAUDE.md with dev doc guidelines.Test plan
leann_listreturns index listing via MCPleann_searchreturns structured JSON with file paths and markdown formattingleann_statusshows index metadata (backend, model, chunks, files, size)leann_buildaccepts docs list and passes to CLIruff check,ruff format)claude mcp add leann-server -- leann_mcp🤖 Generated with Claude Code