You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notion skill: add Keystone MCP fallback and large page handling
When mcp__notion__notion-fetch isn't available (e.g., Thanx/Keystone
environments), the skill now documents fallback tools for reading pages,
searching, and querying databases. Also adds guidance for handling large
page responses that exceed token limits.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|`mcp__plugin_thanx_keystone__notion_get_page_content`| Read page blocks (raw Notion API JSON) |
25
+
|`mcp__plugin_thanx_keystone__notion_search`| Search for pages by title |
26
+
|`mcp__plugin_thanx_keystone__notion_query_database`| Query a database with filters |
27
+
|`mcp__plugin_thanx_keystone__notion_get_database`| Get database schema and metadata |
28
+
29
+
The blocks API returns raw JSON. To extract readable text, parse each block's `rich_text[].plain_text` fields. Use ToolSearch to discover and load these tools before calling them.
30
+
17
31
## Instructions
18
32
19
33
You are helping read Notion data. Use the MCP tools above for all operations.
@@ -53,7 +67,15 @@ These indicate sections that were absorbed into code blocks during a bad edit.
53
67
-**Page reading**: Full page content as structured markdown
54
68
-**Database browsing**: View database schemas and entries
55
69
70
+
### Large Page Handling
71
+
72
+
Notion pages can return very large responses (100K+ characters) that exceed token limits. When this happens:
73
+
- The content may be saved to a temp file automatically
74
+
- Use `python3 -c` or `jq` to extract block text rather than reading raw JSON directly
75
+
- For Keystone blocks JSON, extract text with: `jq -r '.. | .rich_text? // empty | .[].plain_text' < temp_file.json`
76
+
- Consider requesting specific sections rather than the full page when possible
77
+
56
78
## Limitations
57
79
58
80
-**Read-only** — Cannot create, update, or delete pages
59
-
- Page content is returned as Notion-flavored markdown, not raw JSON
81
+
- Page content is returned as Notion-flavored markdown, not raw JSON (except Keystone fallback which returns raw blocks)
0 commit comments