Skip to content

feat: pdf2mcp v0.6 — hybrid search, CLI commands, MCP prompts#4

Merged
iSamBa merged 1 commit into
mainfrom
feature/enhancements-v0.6
Mar 14, 2026
Merged

feat: pdf2mcp v0.6 — hybrid search, CLI commands, MCP prompts#4
iSamBa merged 1 commit into
mainfrom
feature/enhancements-v0.6

Conversation

@iSamBa
Copy link
Copy Markdown
Owner

@iSamBa iSamBa commented Mar 14, 2026

Summary

  • 3 new CLI commands: delete (remove docs from index), stats (index statistics with Rich tables), search (CLI search with --filename filter and -n results)
  • 5 MCP prompts: summarize_document, compare_documents, extract_key_findings, deep_dive, document_overview — guide LLMs through multi-tool workflows
  • Hybrid/keyword search: new PDF2MCP_SEARCH_MODE setting (semantic default, hybrid, keyword) with FTS index support and lazy index creation for backward compatibility
  • Interactive wizard updated: new step 5 for search mode selection (7 steps total), .env template includes PDF2MCP_SEARCH_MODE
  • Version bump: 0.5.0 → 0.6.0

Files changed

Area Files
CLI cli.py (3 new subcommands + .env template update)
Search search.py (hybrid/keyword modes, _row_score, _ensure_fts_index)
Server server.py (5 @mcp.prompt() functions)
Config config.py (search_mode + validator)
Store store.py (create_fts_index, delete_ingestion_metadata)
Ingest ingest.py (conditional FTS index creation)
Wizard interactive.py (search mode step, env generation, summary)
Tests 6 test files updated/extended (+101 new test lines)
Docs README.md (new sections: Search Modes, MCP Prompts, updated commands)

Test plan

  • uv run ruff check src/ tests/ — all checks passed
  • uv run ruff format --check src/ tests/ — all formatted
  • uv run mypy src/ — no issues in 13 source files
  • uv run pytest -v — 371 passed, 0 failed
  • Manual: pdf2mcp stats, pdf2mcp search "query", pdf2mcp delete file.pdf -y
  • Manual: verify MCP prompts via inspector or Claude Desktop
  • Manual: PDF2MCP_SEARCH_MODE=hybrid pdf2mcp ingest --force && pdf2mcp search "term"

🤖 Generated with Claude Code

…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>
@iSamBa iSamBa merged commit cc593a6 into main Mar 14, 2026
6 checks passed
@iSamBa iSamBa deleted the feature/enhancements-v0.6 branch March 14, 2026 01:32
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