feat: pdf2mcp v0.6 — hybrid search, CLI commands, MCP prompts#4
Merged
Conversation
…P prompts - Add 3 new CLI commands: `delete` (remove docs from index), `stats` (index statistics), and `search` (CLI search with optional filters) - Add 5 MCP prompts: summarize_document, compare_documents, extract_key_findings, deep_dive, document_overview - Add hybrid/keyword search modes via PDF2MCP_SEARCH_MODE setting (semantic remains default for backward compatibility) - Add search_mode to interactive setup wizard (new step 5) - Add FTS index creation in store and ingest pipeline - Bump version to 0.6.0 Co-Authored-By: Claude Opus 4.6 (1M context) <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
delete(remove docs from index),stats(index statistics with Rich tables),search(CLI search with--filenamefilter and-nresults)summarize_document,compare_documents,extract_key_findings,deep_dive,document_overview— guide LLMs through multi-tool workflowsPDF2MCP_SEARCH_MODEsetting (semanticdefault,hybrid,keyword) with FTS index support and lazy index creation for backward compatibility.envtemplate includesPDF2MCP_SEARCH_MODEFiles changed
cli.py(3 new subcommands +.envtemplate update)search.py(hybrid/keyword modes,_row_score,_ensure_fts_index)server.py(5@mcp.prompt()functions)config.py(search_mode+ validator)store.py(create_fts_index,delete_ingestion_metadata)ingest.py(conditional FTS index creation)interactive.py(search mode step, env generation, summary)README.md(new sections: Search Modes, MCP Prompts, updated commands)Test plan
uv run ruff check src/ tests/— all checks passeduv run ruff format --check src/ tests/— all formatteduv run mypy src/— no issues in 13 source filesuv run pytest -v— 371 passed, 0 failedpdf2mcp stats,pdf2mcp search "query",pdf2mcp delete file.pdf -yPDF2MCP_SEARCH_MODE=hybrid pdf2mcp ingest --force && pdf2mcp search "term"🤖 Generated with Claude Code