quran-md-plugin / README.md
Z User
README: add viewer:false frontmatter — stops the HF viewer from guessing splits out of tests/*.mjs source files (the CastError cause); license: mit declared; content otherwise unchanged
5910d1d
|
Raw History Blame Contribute Delete
2.08 kB
---
license: mit
viewer: false
---
# `quran-md` — MCP Server & CLI Plugin
An installable `npm` / `npx` plugin that grounds AI agents (Claude Desktop, Cursor, Windsurf, etc.) in the canonical, cross-sectarian **`quran.md`** knowledge base (`bravesigma/quran-md-data`).
## Usage
### 1. As an MCP Server
Add to your MCP client config:
```json
{
"mcpServers": {
"quran-md": {
"command": "npx",
"args": ["-y", "quran-md", "mcp"]
}
}
}
```
### 2. As a CLI
```bash
npx quran-md init # Download root quran.md manifest
npx quran-md 6:74 # Fetch canonical JSON for Surah 6, Ayah 74
```
## v0.2.0 — Phase 7 tools
| Tool | What it returns | Grounding |
|---|---|---|
| `get_verse` | canonical verse record | provenance block on every response |
| `compare_traditions` | Sunni/Imami side-by-side + positions[] + data_flags | consensus_level per claim; verification states |
| `get_roots` | word-level morphology (form/lemma/root/POS) + lexical edges | corpus-verified (Quranic Arabic Corpus v0.4, sha256) |
| `get_xrefs` | cross-reference edges (lexical IDF-weighted; exegetical citation edges) | relations from closed set; `review_status` exposed — 'queue' = NOT human-approved |
| `get_commentary` | tafsir commentary units (verbatim quote_ar + sha256) | Imami note when units pending (Al-Mizan license-blocked) |
| `audit_hadith` | isnad/matn audits per criteria set (never one score) | ghayb rule + 'ard 'ala al-Quran shared test; `unresolved` is a valid result |
| `sources` (CLI) | license manifest per source | states: use / use_with_notice / exclude_until_resolved / exclude_entirely |
## About `viewer: false`
This repo is code, not a dataset. `viewer: false` stops the Hugging Face dataset
viewer from guessing train/test splits out of this repo — the `tests/*.mjs` files
(previously mis-parsed as data rows with incompatible shapes) are source code and
are not intended to be rendered as a dataset.
Tests: `npm test` (node:test; needs `npm run build` first and `QURAN_MD_LOCAL_DIR` pointing at a data checkout for offline runs).