Add comprehensive comment management functionality#15
Merged
a-bonus merged 4 commits intoa-bonus:mainfrom Aug 6, 2025
Merged
Conversation
- Implement 6 new comment tools: listComments, getComment, addComment, replyToComment, resolveComment, deleteComment - Use Google Drive API v3 with proper fields parameter for accurate quoted text extraction - Add complete comment workflow support for Google Docs collaboration - Update README documentation with new comment features - Add index.js entry point for running compiled server This addresses a major feature gap in Google Docs MCP server by enabling full comment management capabilities.
…and error handling
- Remove hardcoded 4000 character limit that was truncating long documents - Add optional maxLength parameter for user-controlled truncation - Improve text extraction to handle tables and other document elements - Provide clear feedback about document size and any applied limits - Default behavior now returns full document content without truncation
- Add convertDocsJsonToMarkdown function with full document structure support - Handle paragraphs, headings, lists, tables, and text formatting - Support bold, italic, underline, strikethrough, and links in markdown - Convert Google Docs tables to markdown table format - Add proper heading hierarchy (H1-H6) and list formatting - Include enhanced debugging for truncation issue investigation - Remove NotImplementedError for markdown format
Owner
|
thank you for your contribution! |
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.
This PR adds complete comment management capabilities to the Google Docs MCP server, addressing a major feature gap for document collaboration workflows.
New Features
listComments- View all comments with author, date, and quoted textgetComment- Get specific comment details with repliesaddComment- Create new comments anchored to text rangesreplyToComment- Add replies to existing commentsresolveComment- Mark comments as resolveddeleteComment- Remove comments from documentsTechnical Implementation
fieldsparameter for accurate quoted text extractionTesting
This enhancement enables AI assistants to fully participate in document review and collaboration workflows through the MCP protocol.