docs: document MCP support for documents - #31
Merged
Conversation
📝 WalkthroughWalkthroughThe MCP documentation now covers Markdown document resources, workspace-scoped reads, document creation and editing prompts, document mutations, architecture integration, and audit events. ChangesMCP document support
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@mcp/tools.md`:
- Around line 109-119: Update the heading above the JSON example to clearly
indicate that it is preview-only, since the request uses mode "preview" and does
not write a document. Keep the example payload unchanged.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 675a962e-9107-4113-8140-c434fa267340
📒 Files selected for processing (5)
mcp/architecture.mdmcp/auditability.mdmcp/index.mdmcp/resources.mdmcp/tools.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Testing
Companion to dagucloud/dagu#2495
Summary by cubic
Add docs for MCP document support: list/read/search Markdown with
dagu_read, and create/update/rename/move/delete withdagu_change, using workspace-awaredagu://docsresources and new prompts. Architecture and audit docs now cover document stores, events, and that Markdown is never stored.dagu_readaddsdocs,doc, anddoc_searchwithworkspace,path, andsearch; document URIs are canonical and support pagination/sort query params.dagu_changeaddsupsert_doc,rename_doc, anddelete_docwithpreview(no write) andapply; examples clarify document preview withcontent.dagu://docs,dagu://docs/{workspace},dagu://docs/{workspace}/{path}with nested-path encoding.dagu_create_docanddagu_edit_doc.resource_type=doc; document mutations emit normal domain events and notify the Web UI; document resources are read on demand.Written for commit b9e683e. Summary will update on new commits.
Summary by CodeRabbit