mcwaddams-site/src/content/docs/reference/resources.mdx

41 lines
1.1 KiB
Text
Raw Normal View History

---
title: MCP Resources
description: Resource URIs for on-demand document access.
---
import { Aside } from '@astrojs/starlight/components';
# MCP Resources
After indexing a document, access content via MCP resource URIs.
## Resource URI Schemes
| Scheme | Pattern | Description |
|--------|---------|-------------|
| `chapter` | `chapter://doc_id/N` | Single chapter |
| `chapter` | `chapter://doc_id/N.md` | Chapter as Markdown |
| `chapter` | `chapter://doc_id/N.txt` | Chapter as plain text |
| `chapter` | `chapter://doc_id/N.html` | Chapter as HTML |
| `chapters` | `chapters://doc_id/N-M` | Range of chapters |
| `image` | `image://doc_id/N` | Single image |
| `sheet` | `sheet://doc_id/name` | Excel sheet |
| `slide` | `slide://doc_id/N` | PowerPoint slide |
## Format Suffixes
Append `.md`, `.txt`, or `.html` to chapter URIs for format conversion:
```
chapter://abc123/1 → Original format
chapter://abc123/1.md → Markdown
chapter://abc123/1.txt → Plain text
chapter://abc123/1.html → HTML
```
---
<Aside type="tip">
Use `index_document` to create the resource index first.
</Aside>