modularize comments, add smithery

This commit is contained in:
Taylor Wilsdon
2025-07-01 17:14:30 -07:00
parent f5b9a6ff52
commit 7ce96edc48
4 changed files with 257 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ from googleapiclient.errors import HttpError
from auth.service_decorator import require_google_service
from core.server import server
from core.utils import handle_http_errors
from core.comments import create_comment_tools
# Configure module logger
logger = logging.getLogger(__name__)
@@ -338,3 +339,11 @@ async def create_sheet(
return text_output
# Create comment management tools for sheets
_comment_tools = create_comment_tools("sheet", "spreadsheet_id")
read_sheet_comments = _comment_tools['read_comments']
create_sheet_comment = _comment_tools['create_comment']
reply_to_sheet_comment = _comment_tools['reply_to_comment']
resolve_sheet_comment = _comment_tools['resolve_comment']