Skip to content

feat: MCP server v2 — build, status tools and structured search#279

Open
yichuan-w wants to merge 3 commits into
mainfrom
feat/mcp-improvements
Open

feat: MCP server v2 — build, status tools and structured search#279
yichuan-w wants to merge 3 commits into
mainfrom
feat/mcp-improvements

Conversation

@yichuan-w
Copy link
Copy Markdown
Collaborator

Summary

  • leann_build tool: 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_status tool: Inspect index details — backend type, embedding model, dimensions, chunk count, file count, total size, location.
  • leann_search improvements: Uses --json output instead of parsing text. File paths always included. Results formatted as markdown code blocks for better code context.
  • Bug fix: float32 JSON serialization in leann search --json.
  • Docs: Updated changelog, roadmap, added ultimate_goal.md, improved CLAUDE.md with dev doc guidelines.

Test plan

  • leann_list returns index listing via MCP
  • leann_search returns structured JSON with file paths and markdown formatting
  • leann_status shows index metadata (backend, model, chunks, files, size)
  • leann_build accepts docs list and passes to CLI
  • Lint passes (ruff check, ruff format)
  • End-to-end test in Claude Code with claude mcp add leann-server -- leann_mcp

🤖 Generated with Claude Code

yichuan-w and others added 3 commits March 5, 2026 02:17
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant