feat: add a notion_append_block_content
method that enables to write using Markdown
#49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LLMs struggle with very large tool schemas. Using this MCP server for relatively large Notion refactoring tasks, even the best LLMs today struggle using
notion_append_block_children
given the complexity of the Notion API. This PR introduces a new toolnotion_append_block_content
which enables the LLM to provide a Markdown text that will then be converted to Notion blocks by the server directly (using https://github.com/tryfabric/martian). It's much easier for LLMs to produce large chunk of contents this way.@suekou let me know what you think. I did this on top of this MCP server because there is already a Markdown format support so it makes sense to me to support this both ways but I'd happily hear that you believe it's outside of the scope and would create another MCP server for it.
Lastly, going in this directly, I think that it would be worth removing the "notion to markdown" code from this repository and reuses something like https://github.com/souvikinator/notion-to-md instead.