mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 06:49:54 +08:00
PageIndex deprecated its REST retrieval endpoint; deep retrieval is now
agentic through the hosted PageIndex MCP server, while search() serves
programmatic callers with real document tree outlines.
- New built-in "pageindex" MCP server entry, code-injected at manager load
when an API key is configured (never persisted to mcp.json; user-defined
entry wins; hot-reloads on key change). remove_document is blocked via a
new MCPServerConfig.disabled_tools blocklist.
- Chat turns with a PageIndex KB attached get the server's tools preloaded
under a narrowed implicit grant (KB access = permission), plus a system
prompt block listing the KB's file -> doc_id manifest with usage notes.
The rag tool's kb_name enum excludes PageIndex KBs (a pure-PageIndex
conversation doesn't mount rag), so the agent reads those docs via MCP.
- PageIndexPipeline.search() now returns each document's tree outline
(titles / pages / summaries) fetched over REST (GET /doc/{id}/?summary=true)
as honest structural context for programmatic callers (book, co-writer,
seed, CLI). No new error_type; existing not_configured / retrieval_error /
needs_reindex semantics are unchanged. The dead REST retrieval client
methods are deleted. Existing KBs need no migration.
- SUPPORTED_EXTENSIONS now mirrors POST /doc/: pdf, md, markdown, txt, docx,
doc, pptx, ppt, xlsx, xls, csv (zip stays a local container); frontend
format list + copy updated (en/zh).