|
| 1 | += Academic Workflow Cartridge |
| 2 | +:toc: preamble |
| 3 | +:author: Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk> |
| 4 | +:date: 2026-04-25 |
| 5 | +:spdx: PMPL-1.0-or-later |
| 6 | + |
| 7 | +// SPDX-License-Identifier: PMPL-1.0-or-later |
| 8 | + |
| 9 | +Zotero integration for academic research workflows — search papers, manage citations, add review notes. |
| 10 | + |
| 11 | +== Features |
| 12 | + |
| 13 | +- **Zotero Search** — Query papers and collections |
| 14 | +- **Metadata Extraction** — Fetch full paper metadata (title, authors, DOI, year, abstract) |
| 15 | +- **Citation Export** — Generate citations in BibTeX, CSL-JSON, RIS, EndNote formats |
| 16 | +- **Review Annotations** — Add notes to papers (typo, unclear, question, suggestion) |
| 17 | +- **Batch Export** — Export entire collections as BibTeX |
| 18 | + |
| 19 | +== Architecture |
| 20 | + |
| 21 | +[cols="1,3"] |
| 22 | +|=== |
| 23 | +| Component | Purpose |
| 24 | + |
| 25 | +| `abi/AcademicWorkflow.idr` |
| 26 | +| Idris2 interface with proof-indexed citation formats. |
| 27 | + |
| 28 | +| `ffi/academic_ffi.zig` |
| 29 | +| Zig bindings for Zotero API calls and citation generation. |
| 30 | + |
| 31 | +| `adapter/mod.ts` |
| 32 | +| Deno MCP server bridging Zotero API and citation tools. |
| 33 | + Runs on `127.0.0.1:5174` (loopback only). |
| 34 | + |
| 35 | +| `cartridge.json` |
| 36 | +| Tool manifest with 6 MCP tools for academic workflow. |
| 37 | +|=== |
| 38 | + |
| 39 | +== MCP Tools |
| 40 | + |
| 41 | +=== `search_zotero` |
| 42 | +Search Zotero library (supports filtering by collection). |
| 43 | + |
| 44 | +=== `get_paper_metadata` |
| 45 | +Fetch complete metadata for a paper by Zotero item ID. |
| 46 | + |
| 47 | +=== `generate_citation` |
| 48 | +Export paper citation in requested format (BibTeX/CSL/RIS/EndNote). |
| 49 | + |
| 50 | +=== `extract_bibkeys` |
| 51 | +Parse text and extract citation keys (\cite{...}, @key patterns). |
| 52 | + |
| 53 | +=== `export_collection` |
| 54 | +Export entire Zotero collection as BibTeX file. |
| 55 | + |
| 56 | +=== `add_review_note` |
| 57 | +Add review annotation (page, text, category) to a paper. |
| 58 | + |
| 59 | +== Integration |
| 60 | + |
| 61 | +Connects to Zotero via: |
| 62 | +- **Zotero Web API** (https://www.zotero.org/support/dev/web_api) for library access |
| 63 | +- **Citation Style Language** (CSL) for format generation |
| 64 | +- **BibTeX export** for LaTeX workflows |
| 65 | + |
| 66 | +Loopback proof pinning: `IsLoopback 5174` at compile-time. |
| 67 | + |
| 68 | +== CRG Phase 3b: New-cartridge backlog |
| 69 | + |
| 70 | +High external-facing ROI for academic teams (citations, paper management). |
| 71 | +Matches gossamer-mcp template (~270 LOC ABI+FFI+adapter). |
| 72 | + |
| 73 | +== License |
| 74 | + |
| 75 | +PMPL-1.0-or-later (MPL-2.0 legal fallback). |
0 commit comments