|
1 | 1 | ## 1. Core Library Support |
2 | 2 |
|
3 | | -- [ ] 1.1 Add `search_text(query, context_chars=100)` method to `Document` class |
4 | | -- [ ] 1.2 Add `get_paragraph_text(paragraphs)` method to `Document` class |
5 | | -- [ ] 1.3 Add `get_document_info()` method to `Document` class (paragraph count, word count, heading outline) |
6 | | -- [ ] 1.4 Add `start`/`limit` parameters to `Document.list_paragraphs()` |
| 3 | +- [x] 1.1 Add `search_text(query, context_chars=100)` method to `Document` class |
| 4 | +- [x] 1.2 Add `get_paragraph_text(paragraphs)` method to `Document` class |
| 5 | +- [x] 1.3 Add `get_document_info()` method to `Document` class (paragraph count, word count, heading outline) |
| 6 | +- [x] 1.4 Add `start`/`limit` parameters to `Document.list_paragraphs()` |
7 | 7 |
|
8 | 8 | ## 2. MCP Tool Functions |
9 | 9 |
|
10 | | -- [ ] 2.1 Add `search_text` tool function in `tools.py` |
11 | | -- [ ] 2.2 Add `get_paragraph_text` tool function in `tools.py` |
12 | | -- [ ] 2.3 Add `get_document_info` tool function in `tools.py` |
13 | | -- [ ] 2.4 Modify `list_paragraphs` tool to accept `start`/`limit` |
14 | | -- [ ] 2.5 Modify `get_visible_text` tool to accept `max_chars` and auto-truncate with hint |
| 10 | +- [x] 2.1 Add `search_text` tool function in `tools.py` |
| 11 | +- [x] 2.2 Add `get_paragraph_text` tool function in `tools.py` |
| 12 | +- [x] 2.3 Add `get_document_info` tool function in `tools.py` |
| 13 | +- [x] 2.4 Modify `list_paragraphs` tool to accept `start`/`limit` |
| 14 | +- [x] 2.5 Modify `get_visible_text` tool to accept `max_chars` and auto-truncate with hint |
15 | 15 |
|
16 | 16 | ## 3. Server Registration and Instructions |
17 | 17 |
|
18 | | -- [ ] 3.1 Register new tools in `server.py` (`_register_tools`) |
19 | | -- [ ] 3.2 Update `SERVER_INSTRUCTIONS` to guide LLMs toward exploration workflow |
| 18 | +- [x] 3.1 Register new tools in `server.py` (`_register_tools`) |
| 19 | +- [x] 3.2 Update `SERVER_INSTRUCTIONS` to guide LLMs toward exploration workflow |
20 | 20 |
|
21 | 21 | ## 4. Tests |
22 | 22 |
|
23 | | -- [ ] 4.1 Test `search_text` (found, not found, multiple matches, context extraction) |
24 | | -- [ ] 4.2 Test `get_paragraph_text` (single, multiple, invalid ref) |
25 | | -- [ ] 4.3 Test `get_document_info` (with headings, without headings) |
26 | | -- [ ] 4.4 Test `list_paragraphs` pagination (start/limit, out of range) |
27 | | -- [ ] 4.5 Test `get_visible_text` truncation (small doc returns full, large doc truncates with hint) |
| 23 | +- [x] 4.1 Test `search_text` (found, not found, multiple matches, context extraction) |
| 24 | +- [x] 4.2 Test `get_paragraph_text` (single, multiple, invalid ref) |
| 25 | +- [x] 4.3 Test `get_document_info` (with headings, without headings) |
| 26 | +- [x] 4.4 Test `list_paragraphs` pagination (start/limit, out of range) |
| 27 | +- [x] 4.5 Test `get_visible_text` truncation (small doc returns full, large doc truncates with hint) |
0 commit comments