Commit ac40f03
committed
feat: add Markdown MCP docs generator (Docusaurus- and pdoc-compatible)
Introduces `scripts/generate_mcp_markdown.py` (exposed via `poe mcp-docs-md`)
which introspects the MCP server with `fastmcp inspect` and renders a small
set of Markdown files under `docs/mcp-generated/`:
- index.md — server overview + counts + TOC
- tools.md — one H2 per tool with a GFM parameters table and collapsible
input/output JSON schemas
- resources.md — concrete resources and resource templates
- prompts.md — prompts and their arguments
Formatting is modeled on `mcpdocs-gen` (evaluated in PR #1013) but emitted
as plain CommonMark + GFM + YAML front-matter + `<details>` blocks, so the
pages render correctly in both Docusaurus and `pdoc` without MDX-only
components. Every tool/resource/prompt has a stable slug anchor for
deep-linking.1 parent ce1a589 commit ac40f03
4 files changed
Lines changed: 400 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
0 commit comments