en un clic
paper2any
// Use when the user wants Paper2Any-based paper-to-figure, PPT, poster, video, citation, rebuttal, DrawIO, mindmap, image, PDF-to-PPT, or KB workflows through the ScholarAIO Paper2Any MCP sidecar.
// Use when the user wants Paper2Any-based paper-to-figure, PPT, poster, video, citation, rebuttal, DrawIO, mindmap, image, PDF-to-PPT, or KB workflows through the ScholarAIO Paper2Any MCP sidecar.
Use when the user wants to rebuild or refresh ScholarAIO keyword, full-text, FTS5, FAISS, or semantic search indexes after data or metadata changes.
Use when the user wants to find academic papers, search the local library, run keyword or semantic search, search by author, explore topics, or federate across library, explore databases, and arXiv.
Use when the user wants to import papers from Endnote XML/RIS, Zotero Web API or local SQLite, attach PDFs, match PDFs to records, or supplement records with PDF content.
Use when the user wants to process new papers, patents, theses, documents, or proceedings from inbox queues into the knowledge base, run the ingest pipeline, or rebuild indexes.
Use when the user wants diagrams, flowcharts, architecture visuals, data relationships, timelines, concept maps, Mermaid, Graphviz, drawio, or polished paper figures generated from structured text or IR.
Use when the user wants to install, configure, diagnose, or troubleshoot ScholarAIO, including setup check, dependency status, API keys, and bilingual setup flow.
| name | paper2any |
| description | Use when the user wants Paper2Any-based paper-to-figure, PPT, poster, video, citation, rebuttal, DrawIO, mindmap, image, PDF-to-PPT, or KB workflows through the ScholarAIO Paper2Any MCP sidecar. |
Paper2Any 是外部项目 OpenDCAI/Paper2Any。ScholarAIO 不 vendoring 它的代码和依赖;ScholarAIO 只提供一个轻量 MCP sidecar,把 agent 请求转交给真实 Paper2Any checkout 或它自己的 FastAPI 后端。
默认外部 checkout 位置:
data/runtime/extensions/paper2any/Paper2Any
一键准备外部 Paper2Any runtime:
scholaraio paper2any setup
如果用户明确要让 agent 把 upstream Python runtime 也准备好,使用:
scholaraio paper2any setup --install-runtime
这个命令会使用 OpenDCAI/Paper2Any 自己的 requirements 在 data/runtime/extensions/paper2any/.venv 中准备隔离环境;不要把依赖清单转嫁给非开发者用户。
确认 sidecar 是否可用:
scholaraio paper2any status
如果不可用,启动 ScholarAIO 轻量 MCP sidecar:
scholaraio paper2any mcp-serve
这只启动 ScholarAIO 的 MCP 代理,不会伪造 Paper2Any 结果。真实产物仍由外部 Paper2Any CLI 或 Paper2Any FastAPI 生成。
如果需要 Paper2Any FastAPI 工作流,启动真实上游 backend。上游 /api/v1/... 路由要求 BACKEND_API_KEY / X-API-Key,因此先在 config.local.yaml 写入 paper2any.backend_api_key,或设置环境变量:
export PAPER2ANY_BACKEND_API_KEY="..."
scholaraio paper2any backend-serve
这个命令只负责从外部 checkout 启动 Paper2Any 自己的 fastapi_app.main:app,优先使用 data/runtime/extensions/paper2any/.venv。
列出可用工具:
scholaraio paper2any tools
scholaraio paper2any call paper2any_capabilities
运行真实 CLI 工作流时,必须提供真实输入文件和输出目录:
scholaraio paper2any call paper2any_run_cli --arguments-json '{
"workflow": "paper2figure",
"input": "workspace/example/paper.pdf",
"output_dir": "workspace/_system/paper2any/example-figure",
"extra_args": ["--graph-type", "model_arch"]
}'
如果 upstream Paper2Any 只允许写入自己的 Paper2Any/outputs 目录,sidecar 会先在那里真实运行,再把真实产物复制回请求中的 workspace 输出目录。结果里会同时给出 paper2any_output_dir 和 requested_output_dir。
调用真实 Paper2Any FastAPI 后端 JSON 路径;这同样要求 paper2any.backend_api_key 或 PAPER2ANY_BACKEND_API_KEY:
scholaraio paper2any call paper2any_call_api --arguments-json '{
"path": "/api/v1/system/verify-llm",
"json": {"model": "gpt-4o"}
}'
paper2any_status: 检查外部 checkout、CLI 脚本、FastAPI /health。paper2any_capabilities: 列出所有已知 CLI 工作流和 API 工作流族。paper2any_run_cli: 运行真实 upstream standalone CLI 脚本。paper2any_call_api: 代理真实 upstream FastAPI /api/v1/... 或 /health。paper2any_outputs: 列出输出目录中的真实产物。真实 CLI 脚本路径:
paper2figure: script/run_paper2figure_cli.pypaper2ppt: script/run_paper2ppt_cli.pypaper2ppt_frontend: script/run_paper2ppt_frontend_cli.pypdf2ppt: script/run_pdf2ppt_cli.pyimage2ppt: script/run_image2ppt_cli.pyppt2polish: script/run_ppt2polish_cli.pypaper2poster: script/run_paper2poster_cli.pypaper2video: script/run_paper2video_cli.py真实 FastAPI 工作流族:
paper2figure, paper2ppt, paper2citation, paper2video, paper2posterpdf2ppt, image2ppt, image2drawio, image_playground(实际路径为 /api/v1/image-playground/...)mindmap, kb, kb_workflows, kb_embedding, files(kb_workflows 与 kb_embedding 实际挂在 /api/v1/kb/... 下)paper2drawio, paper2rebuttalconfig.yaml:
paper2any:
transport: mcp
mcp_url: http://127.0.0.1:8770/mcp
root: null
base_url: http://127.0.0.1:8000
api_key: null
backend_api_key: null # required for upstream /api/v1/... routes
config.local.yaml 只放本机密钥:
paper2any:
api_key: ""
backend_api_key: ""
可用环境变量:
PAPER2ANY_ROOTPAPER2ANY_MCP_URLPAPER2ANY_MCP_API_KEYPAPER2ANY_BACKEND_URLPAPER2ANY_BACKEND_API_KEY(上游 /api/v1/... 路由必需)paper2any_run_cli、真实 paper2any_call_api 或真实输出目录检查。workspace/_system/paper2any/ 或用户指定 workspace;不要写到仓库根目录。