mcp-gee-sweet 0.9.2.dev325__tar.gz → 0.9.2.dev330__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/PKG-INFO +1 -1
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/doc-revision-export.md +1 -1
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/local-file-access-policy.md +2 -2
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/docs_content.md +27 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/drive_transfer.md +88 -3
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/sheets_read.md +20 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/roadmap.md +4 -3
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/content.py +6 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/markdown_export.py +5 -2
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/transfer.py +34 -82
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/gmail.py +14 -27
- mcp_gee_sweet-0.9.2.dev330/src/mcp_gee_sweet/tools/mime_types.py +35 -0
- mcp_gee_sweet-0.9.2.dev330/src/mcp_gee_sweet/tools/response_limits.py +250 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/sheets/data.py +12 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/test_transfer.py +141 -0
- mcp_gee_sweet-0.9.2.dev330/tests/test_mime_types.py +51 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_response_limits.py +120 -0
- mcp_gee_sweet-0.9.2.dev325/src/mcp_gee_sweet/tools/response_limits.py +0 -125
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/cleanup-worktrees.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/merge-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/notify-kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/notify-partner.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/orchestrator.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/prep-for-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/qa-kickoff.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/release.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/retro.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/roadmap-status.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/start-worktree.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/team-member.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/commands/verify-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/settings.json +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/amy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/aziz.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/bob.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/dev.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/joy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.claude/team-roles/qa.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.dockerignore +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.github/dependabot.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.github/workflows/ci.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.github/workflows/docs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.github/workflows/publish-dev.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.github/workflows/release.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.gitignore +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.pre-commit-config.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/.python-version +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/CHANGELOG.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/CLAUDE.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/CODE_OF_CONDUCT.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/CONTRIBUTING.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/Dockerfile +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/LICENSE +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/Makefile +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/SECURITY.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docker-compose.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/assets/logo.png +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/auth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/client-setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/configuration.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-async-tool-execution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-cache-invalidation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-chart-theming.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-comments-first-class.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-composite-tools.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-converted-doc-change-detection.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-dev-team.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-docs-formatting.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-fork.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-gmail-domain.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-grid-data-size-cap.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-local-fs-test-harness.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-pillow-image-dependency.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-prompt-qa-role.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-publishing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-release-docs-roles.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-repositioning.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-review-finding-ticket-bar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-supports-all-drives-lint-check.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-sync-folder-recursion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-testing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/decision-tool-error-visibility.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/decisions/role-file-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/blockquote-representation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/borderless-table-columns.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/doc-to-markdown.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/docs-ast-pipeline.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/effectiveformat-spike.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/heading-anchor-resolution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/markdown-support.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/module-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/oauth-reauthorize-from-tool-call.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/phase3-theme-system.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/sse-consent-off-event-loop.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/known-limitations.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/notes-read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/fixtures.template.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/gmail-test-plan.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/operations.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/playwright_oauth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/.gitkeep +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-02.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-14.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-17.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-18.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-06-28.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04-docs.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04-infra.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-07-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/results/2026-09-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/retro-v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/retro-v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/run.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/runs/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/runs/v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/runs/v0.8.1.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/runs/v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/calendar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/docs_layout.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/docs_style.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/docs_tables.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/drive_activity.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/drive_files.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/drive_sharing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/gmail.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/infra.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/sheets_charts.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/sheets_mgmt.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/qa/tests/sheets_write.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/style-guide.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/tools.md +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/mkdocs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/pyproject.toml +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/pyrightconfig.json +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/scripts/check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/scripts/gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/scripts/lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/scripts/oauth_setup.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/scripts/qa_cancel_insert_local_images.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/scripts/qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/scripts/setup_team.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/scripts/write_team_mcp_configs.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/server.json +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/.env.template +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/http_transport.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/server.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/calendar.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/images.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/files.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/pagination.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/test_activity.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/test_files.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/drive/test_sharing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/fakes.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/integration/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/integration/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/integration/test_local_fs_harness.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/sheets/test_data.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/sheets/test_helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/sheets/test_structure.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_calendar.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_comments.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_content.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_core.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_editing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_images.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_layout.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_markdown_export.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_revision_export.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_style.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_docs_tables.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_gmail.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_server.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_server_json.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/tests/test_team_mcp_configs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: mcp-gee-sweet
|
|
3
|
-
Version: 0.9.2.
|
|
3
|
+
Version: 0.9.2.dev330
|
|
4
4
|
Summary: MCP server for Google Workspace — Sheets, Drive, Docs (HTML or Markdown), and Calendar.
|
|
5
5
|
Project-URL: Homepage, https://github.com/khuisman/mcp-gee-sweet
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/khuisman/mcp-gee-sweet/issues
|
{mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/doc-revision-export.md
RENAMED
|
@@ -103,7 +103,7 @@ Measured across two imports of the same DOCX:
|
|
|
103
103
|
- `revisions.list` returns at most 200 revisions per page by default (discovery document), and
|
|
104
104
|
`list_revisions` read only the first page. It now pages through every revision via the same
|
|
105
105
|
`_list_revisions` helper `sync_folder` uses.
|
|
106
|
-
- A Doc `local_path` is checked with `
|
|
106
|
+
- A Doc `local_path` is checked with `response_limits.validate_local_destination` before the export, so a bad
|
|
107
107
|
destination fails before the temporary Doc round trip.
|
|
108
108
|
|
|
109
109
|
## Live verification
|
{mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/docs/design/local-file-access-policy.md
RENAMED
|
@@ -128,11 +128,11 @@ Each local read or write gets exactly one check, placed at the narrowest shared
|
|
|
128
128
|
| `create_doc_from_file`, `update_doc_from_file` | `read_text` | `content._read_doc_source_file`, at the top, before `exists()` | read |
|
|
129
129
|
| `import_csv_to_sheet` | `open` | the tool, before `path.open` | read |
|
|
130
130
|
| `send_message`, `create_draft` (attachments) | `read_bytes` | `gmail._read_attachment_bytes` (already in a worker thread; the `ValueError` propagates out of `_compose_raw` as today's missing-field error does) | read |
|
|
131
|
-
| `download_file` | `_write_atomically`, `mkdir` | the tool, before `
|
|
131
|
+
| `download_file` | `_write_atomically`, `mkdir` | the tool, before `response_limits.validate_local_destination` (that helper `stat`s parents) | write |
|
|
132
132
|
| `download_folder`, `sync_folder` (downloads) | `mkdir`, `_write_atomically` per file | the destination root in the tool, before `mkdir`, plus each file (§6) | write |
|
|
133
133
|
| `sync_folder` (uploads, `use_checksum` hashing, `stat`) | `MediaFileUpload`, `_local_md5`, `stat` | each local entry where `_sync_level` builds `local_map` / `local_folder_map` (§6) | read |
|
|
134
134
|
| `sync_folder`, `upload_local_folder`, `download_folder`: the `local_path` root | `mkdir` / `iterdir` | the tool, at entry | read for upload-only, write for any direction that can download |
|
|
135
|
-
| 9 tools with the response-cap bypass (`get_sheet_data`, `get_multiple_sheet_data`, `get_multiple_spreadsheet_summary`, `find_in_spreadsheet`, `get_doc_content`, `find_in_doc`, `get_doc_as_markdown`, `get_message`, `get_thread`) and `sync_folder(result_local_path=)` | `mkdir`, `_write_atomically` | `response_limits.write_capped_result_to_disk`, at the top, before `
|
|
135
|
+
| 9 tools with the response-cap bypass (`get_sheet_data`, `get_multiple_sheet_data`, `get_multiple_spreadsheet_summary`, `find_in_spreadsheet`, `get_doc_content`, `find_in_doc`, `get_doc_as_markdown`, `get_message`, `get_thread`) and `sync_folder(result_local_path=)` | `mkdir`, `_write_atomically` | `response_limits.write_capped_result_to_disk`, at the top, before `validate_local_destination`. Check the final `dest` after the directory join too, since `default_filename` changes the target. For `result_local_path`, also `sync_folder`'s own early `validate_local_destination(result_local_path, ...)`, which runs before any transfer and before `local_path`'s `mkdir` (#990) | write |
|
|
136
136
|
|
|
137
137
|
`sync_folder`'s existing "`result_local_path` inside `local_path`" `ValueError` stays as it is and runs after the policy check. The two are independent.
|
|
138
138
|
|
|
@@ -4278,3 +4278,30 @@ Comment text is plain text, so no line of it may render as Markdown structure, a
|
|
|
4278
4278
|
**Result (2026-10-11) ✅ PASS (case as written), ❌ sent back on probes — Kit, PR #991 round 2 (`de8143e`).** Ran with the export under this job's scratch dir instead of `/tmp`. Every check passed for the case's own content: body `<p>- a</p>`, `<p># h</p>`, `<p>---</p>`, `<p>tab indent</p>`; the comment's eight lines joined by `<br />` in one paragraph, then `<p>indented *x*</p>`; no `<ul>`/`<ol>`/`<table>`/`<pre>`. Extra probes on the same doc failed: (1) a body paragraph `## Notes` and a comment line `## Notes` each rendered as `<h2>`, and the comment line before it kept a literal `\`, because `_LEADING_SIMPLE_MARKER` matches only a single `#`; (2) `add_doc_comment(quoted_text="Summary\n=== ")` exported `> Summary\` / `> === `, which renders as `<h1>Summary\</h1>` inside the blockquote, because `_LEADING_RULE_LINE` doesn't allow trailing whitespace after `=`. Drive trims trailing whitespace from the end of comment `content` (not from `quoted_text`), and a mid-content `=== ` line is safe because the hard break before it blocks the setext.
|
|
4279
4279
|
|
|
4280
4280
|
**Result (2026-10-11) ✅ PASS — Kit, PR #991 round 3 (`95ba882`).** Ran with the export under this job's scratch dir instead of `/tmp`. Step 3's HTML had no `<ul>`/`<ol>`/`<h1>`/`<table>`/`<pre>`, exactly one `<h2>` (`Comments`) and one `<hr />`. Body: `<p>- a</p>`, `<p># h</p>`, `<p>---</p>`, `<p>tab indent</p>`, `<p>## Notes</p>`. Step 1's comment rendered its nine lines through `## Notes` joined by `<br />` with no literal `\`, then `<p>indented *x*</p>`. Step 1a's `quoted_text` came back as `Summary\n=== ` (trailing spaces kept) and rendered as `<blockquote><p>Summary<br />===</p></blockquote>`, no `<h1>`.
|
|
4281
|
+
|
|
4282
|
+
### TC-DOC218: A trailing-slash `local_path` naming a missing directory creates it; one naming an existing file is refused (issue #990) ⚠️ local-filesystem
|
|
4283
|
+
Every capped tool's `local_path` goes through the shared `write_capped_result_to_disk`. Before #990, `dir/` for a directory that didn't exist yet was written as a *file* named `dir`, and `file/` over an existing file overwrote it.
|
|
4284
|
+
|
|
4285
|
+
**Setup:** `rm -rf /tmp/qa-990 && mkdir -p /tmp/qa-990/linkdir && printf 'keep me' > /tmp/qa-990/blocker && ln -s /tmp/qa-990/missing /tmp/qa-990/dangling && ln -s /tmp/qa-990/elsewhere /tmp/qa-990/linkdir/{DOC_ID}.md`. Confirm `/tmp/qa-990/new`, `/tmp/qa-990/missing`, and `/tmp/qa-990/elsewhere` don't exist.
|
|
4286
|
+
|
|
4287
|
+
**Steps**
|
|
4288
|
+
1. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/new/sub/")`
|
|
4289
|
+
2. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/blocker/")`
|
|
4290
|
+
3. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/blocker/sub/")`
|
|
4291
|
+
4. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/dangling/")`
|
|
4292
|
+
5. `get_doc_as_markdown(doc_id={DOC_ID}, local_path="/tmp/qa-990/linkdir/")`
|
|
4293
|
+
|
|
4294
|
+
**Checks**
|
|
4295
|
+
- Step 1 returns `local_path` `/tmp/qa-990/new/sub/{DOC_ID}.md`. `/tmp/qa-990/new/sub` is a directory (`test -d`), not a file, and the `.md` file in it holds raw Markdown whose byte size equals `bytes_written`
|
|
4296
|
+
- Step 2 raises "local_path '/tmp/qa-990/blocker/' has a non-directory path component at '/tmp/qa-990/blocker'; local_path ends in a path separator or '.', which makes it a directory target…", and `/tmp/qa-990/blocker` still holds `keep me`
|
|
4297
|
+
- Step 3 raises a `ValueError` "…has a non-directory path component at '/tmp/qa-990/blocker'" (a file further up the path), not a raw `NotADirectoryError` (PR #1000 QA round 1)
|
|
4298
|
+
- Step 4 raises a `ValueError` "…has a symlink to a missing target at '/tmp/qa-990/dangling'", not a raw `FileExistsError`, and `/tmp/qa-990/missing` still doesn't exist (PR #1000 QA round 1)
|
|
4299
|
+
- Step 5 raises a `ValueError` "…has a symlink to a missing target at '/tmp/qa-990/linkdir/{DOC_ID}.md'", and `/tmp/qa-990/elsewhere` still doesn't exist: the file joined onto a directory gets the same checks as a file `local_path` (PR #1000 QA round 2)
|
|
4300
|
+
|
|
4301
|
+
**Cleanup:** `rm -rf /tmp/qa-990`
|
|
4302
|
+
|
|
4303
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 1 (`12bd36a`).** Ran under this job's scratch dir instead of `/tmp`. Step 1 returned `local_path` `<dir>/new/sub/{DOC_ID}.md`, `bytes_written` 96; `new/sub` is a directory and the file is 96 bytes. Step 2 raised the expected "ends in a separator, so it must be a directory, but … is an existing file" error and `blocker` still holds `keep me`. Probes outside the case (sent back): `<file>/sub/` with `<file>` a regular file raises a raw `NotADirectoryError`, and `<dangling symlink>/` raises `FileExistsError`, not the new `ValueError`.
|
|
4304
|
+
|
|
4305
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 2 (`695d0f9`).** Ran under this job's scratch dir instead of `/tmp`. Step 1 returned `<dir>/new/sub/{DOC_ID}.md`, `bytes_written` 96, and `new/sub` is a directory. Step 2 raised "…has a non-directory path component at '<dir>/blocker'; local_path ends in a path separator or '.', which makes it a directory target…", and `blocker` still holds `keep me`. Step 3 raised the `ValueError` naming `<dir>/blocker`. Step 4 raised "…has a symlink to a missing target at '<dir>/dangling'", and `missing` was not created.
|
|
4306
|
+
|
|
4307
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 3 (`290f5bc`).** Ran under this job's scratch dir instead of `/tmp`. Steps 1–4 matched round 2 (step 1 wrote `<dir>/new/sub/{DOC_ID}.md`, 96 bytes; steps 2–4 raised the expected `ValueError`s; `blocker` still holds `keep me`; `missing` not created). Step 5 raised "…has a symlink to a missing target at '<dir>/linkdir/{DOC_ID}.md'", and `elsewhere` was not created.
|
|
@@ -334,6 +334,35 @@ Delete all `qa-convert.*` files and their converted Drive counterparts from `{FO
|
|
|
334
334
|
|
|
335
335
|
---
|
|
336
336
|
|
|
337
|
+
### TC-D286: a compressed file uploads with its compression MIME type, not the inner file's (#930) ⚠️ local-filesystem
|
|
338
|
+
**Background:** `upload_local_file`, `upload_local_folder`, and `sync_folder` dropped the encoding half of `mimetypes.guess_type()`, so `report.csv.gz` (`("text/csv", "gzip")`) was uploaded as `text/csv` even though its bytes are gzip. All three now go through the shared `guess_mime_type`, which Gmail attachments already used.
|
|
339
|
+
|
|
340
|
+
**Setup**
|
|
341
|
+
`mkdir -p /tmp/qa-gz-286 && printf 'a,b\n1,2\n' | gzip > /tmp/qa-gz-286/qa-report-286.csv.gz`
|
|
342
|
+
|
|
343
|
+
**Prompt**
|
|
344
|
+
> Step 1: "Upload the local file `/tmp/qa-gz-286/qa-report-286.csv.gz` to {FOLDER_ID}"
|
|
345
|
+
> Step 2: "Sync `/tmp/qa-gz-286` up to a new folder `qa-gz-286-sync` in {FOLDER_ID}"
|
|
346
|
+
> Step 3: "Upload the folder `/tmp/qa-gz-286` to a new folder `qa-gz-286-folder` in {FOLDER_ID}"
|
|
347
|
+
|
|
348
|
+
**Checks**
|
|
349
|
+
- Step 1: call `upload_local_file(local_path="/tmp/qa-gz-286/qa-report-286.csv.gz", parent_folder_id="{FOLDER_ID}")`; response has no `error` key
|
|
350
|
+
- `get_file_metadata` on step 1's `fileId` reports `mimeType: application/gzip` (not `text/csv`)
|
|
351
|
+
- Step 2: `create_folder(name="qa-gz-286-sync", parent_folder_id="{FOLDER_ID}")`, then `sync_folder(folder_id=<new folder ID>, local_path="/tmp/qa-gz-286", direction="upload")`; `uploaded` is `["qa-report-286.csv.gz"]`
|
|
352
|
+
- `list_files` on the new folder shows `qa-report-286.csv.gz` with `mimeType: application/gzip`
|
|
353
|
+
- Step 3: `create_folder(name="qa-gz-286-folder", parent_folder_id="{FOLDER_ID}")`, then `upload_local_folder(local_path="/tmp/qa-gz-286", parent_folder_id=<new folder ID>)`; `uploaded` is `["qa-report-286.csv.gz"]`, and `list_files` on that folder shows it with `mimeType: application/gzip`
|
|
354
|
+
|
|
355
|
+
**Teardown**
|
|
356
|
+
Delete `qa-report-286.csv.gz` and the `qa-gz-286-sync` and `qa-gz-286-folder` folders from `{FOLDER_ID}`. Remove `/tmp/qa-gz-286`.
|
|
357
|
+
|
|
358
|
+
**Result** (2026-10-11, Sky, PR #1002 round 1 at `594299f`, `mcp-gee-sweet-sky` reconnected after reset, OAuth, Shared Drive, `{FOLDER_ID}` = a throwaway child of `TEST_FOLDER_ID`): ✅ **PASS**.
|
|
359
|
+
- Step 1: no error. `get_file_metadata` reported `mimeType: application/gzip`, `size: 28`.
|
|
360
|
+
- Step 2: `uploaded == ["qa-report-286.csv.gz"]`, and `list_files` showed `application/gzip`. (`size_bytes` was `0`: sync_folder counts only downloaded bytes, which predates this PR.)
|
|
361
|
+
- Step 3 (added this round, since the Background names `upload_local_folder` but no check called it): `uploaded == ["qa-report-286.csv.gz"]`, and `list_files` showed `application/gzip`.
|
|
362
|
+
- Side probes on code-review findings. (a) Files the built-in table doesn't know, uploaded as `application/octet-stream` (`.xlsx`, `.docx` and `.7z` with random bytes, `.log`, `.ics`): Drive derived the real type from the name every time (the OOXML types, `application/x-7z-compressed`, `text/plain`, `text/calendar`). (b) A `.csv.gz` created the pre-fix way as `text/csv`, then re-uploaded by `sync_folder`'s `update()` path: Drive reset it to `application/gzip`. (c) `.svgz` now lands as `application/gzip`, where it used to be `image/svg+xml`. Neither version got a Drive thumbnail.
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
337
366
|
## `upload_local_folder`
|
|
338
367
|
|
|
339
368
|
### TC-D98: Bulk upload of a mixed directory ⚠️ destructive ⚠️ local-filesystem
|
|
@@ -585,7 +614,7 @@ Unit tests: `tests/drive/test_transfer.py -k TestDownloadFile` — 10 passed (in
|
|
|
585
614
|
|
|
586
615
|
### TC-D274: `download_file` — trailing-slash `local_path` over an existing regular file fails before any Drive request (#827, #855) ⚠️ local-filesystem
|
|
587
616
|
|
|
588
|
-
**Background:** #827 moved the trailing-slash clash check ahead of the Drive metadata call, and #855 folded it into a single preflight (`_validate_local_destination`). A bad destination should now fail without spending a Drive request. A file ID that doesn't exist is the live stand-in for "no Drive request": if the call reaches Drive it gets a 404 `HttpError`, and if the preflight rejects it first the path error comes back.
|
|
617
|
+
**Background:** #827 moved the trailing-slash clash check ahead of the Drive metadata call, and #855 folded it into a single preflight (`_validate_local_destination`, now the shared `response_limits.validate_local_destination`, #990). A bad destination should now fail without spending a Drive request. A file ID that doesn't exist is the live stand-in for "no Drive request": if the call reaches Drive it gets a 404 `HttpError`, and if the preflight rejects it first the path error comes back.
|
|
589
618
|
|
|
590
619
|
**Setup:** `rm -rf /tmp/qa-d274 && mkdir -p /tmp/qa-d274 && printf x > /tmp/qa-d274/clash`
|
|
591
620
|
|
|
@@ -2191,8 +2220,8 @@ revision separate (#814), so the diff below uses one.
|
|
|
2191
2220
|
|
|
2192
2221
|
### TC-D282: Doc revision `local_path`, and arguments that don't apply to the file's type (issue #959) ⚠️ local-filesystem ⚠️ requires-oauth
|
|
2193
2222
|
|
|
2194
|
-
**Setup:** `mkdir -p /tmp/qa-959` (
|
|
2195
|
-
|
|
2223
|
+
**Setup:** `mkdir -p /tmp/qa-959` (before #990, a `local_path` naming a missing directory, even
|
|
2224
|
+
with a trailing `/`, was written as a file of that name; TC-D288 covers the missing-directory case).
|
|
2196
2225
|
`create_doc(title="qa-959-args", content="<p>Saved to disk</p>")`, then
|
|
2197
2226
|
`list_revisions` on it and on `TEST_SPREADSHEET_ID`, taking each one's last `revisionId`.
|
|
2198
2227
|
|
|
@@ -2252,6 +2281,62 @@ is the Shared Drive.
|
|
|
2252
2281
|
|
|
2253
2282
|
---
|
|
2254
2283
|
|
|
2284
|
+
### TC-D288: `export_revision` — a trailing-slash `local_path` naming a missing directory creates it, not a file (issue #990) ⚠️ local-filesystem ⚠️ requires-oauth
|
|
2285
|
+
|
|
2286
|
+
Reproduces PR #988 round 1's observation: with the directory absent, `local_path="<dir>/"`
|
|
2287
|
+
wrote a 15-byte *file* named after it. Uses `/tmp/qa-990-rev`, not TC-DOC218's `/tmp/qa-990`, so
|
|
2288
|
+
parallel shards don't delete each other's scratch dir.
|
|
2289
|
+
|
|
2290
|
+
**Setup:** `rm -rf /tmp/qa-990-rev`. `create_doc(title="qa-990", content="<p>Saved to disk</p>")`, then
|
|
2291
|
+
`list_revisions(file_id="<doc-id>")` and take the last `revisionId`.
|
|
2292
|
+
|
|
2293
|
+
**Tool calls**
|
|
2294
|
+
1. `export_revision(file_id="<doc-id>", revision_id="<doc rev>", local_path="/tmp/qa-990-rev/")`
|
|
2295
|
+
|
|
2296
|
+
**Checks**
|
|
2297
|
+
- Call 1 returns `local_path` `/tmp/qa-990-rev/<doc-id>-r<doc rev>.md`, not `/tmp/qa-990-rev`.
|
|
2298
|
+
- `/tmp/qa-990-rev` is a directory (`test -d`), and the `.md` file in it holds `Saved to disk`.
|
|
2299
|
+
|
|
2300
|
+
**Teardown:** `rm -rf /tmp/qa-990-rev`; `delete_file(file_id="<doc-id>")`.
|
|
2301
|
+
|
|
2302
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 1 (`12bd36a`).** Ran under this job's scratch dir instead of `/tmp`. With the directory absent, call 1 returned `local_path` `<dir>/<doc-id>-r3.md`, `bytes_written` 15; `<dir>` is a directory and the file holds `Saved to disk`.
|
|
2303
|
+
|
|
2304
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 2 (`695d0f9`).** Same as round 1: call 1 returned `<dir>/<doc-id>-r3.md`, `bytes_written` 15; `<dir>` is a directory holding `Saved to disk`.
|
|
2305
|
+
|
|
2306
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 3 (`290f5bc`).** Ran under this job's scratch dir instead of `/tmp`. Call 1 returned `<dir>/<doc-id>-r3.md`, `bytes_written` 15; `<dir>` is a directory holding `Saved to disk`.
|
|
2307
|
+
|
|
2308
|
+
---
|
|
2309
|
+
|
|
2310
|
+
### TC-D287: `sync_folder` — a `result_local_path` over an existing file is refused before any transfer (PR #1000 QA round 1, issue #990) ⚠️ local-filesystem
|
|
2311
|
+
|
|
2312
|
+
Before the fix, a real sync ran every upload and download, then failed at the final manifest
|
|
2313
|
+
write, and the error named `local_path` (`sync_folder`'s other parameter).
|
|
2314
|
+
|
|
2315
|
+
**Setup:** `rm -rf /tmp/qa-990-sync && mkdir -p /tmp/qa-990-sync/src && printf 'upload me' > /tmp/qa-990-sync/src/a.txt && printf 'keep me' > /tmp/qa-990-sync/blocker`.
|
|
2316
|
+
`create_folder(name="qa-990-sync")`, note the returned ID as `<folder-id>`.
|
|
2317
|
+
|
|
2318
|
+
**Tool calls**
|
|
2319
|
+
1. `sync_folder(folder_id="<folder-id>", local_path="/tmp/qa-990-sync/src", direction="upload", result_local_path="/tmp/qa-990-sync/blocker/")`
|
|
2320
|
+
2. `list_files(folder_id="<folder-id>")`
|
|
2321
|
+
3. `sync_folder(folder_id="<folder-id>", local_path="/tmp/qa-990-sync/new/deep/sync", result_local_path="/tmp/qa-990-sync/blocker/")`
|
|
2322
|
+
|
|
2323
|
+
**Checks**
|
|
2324
|
+
- Call 1 raises "result_local_path '/tmp/qa-990-sync/blocker/' has a non-directory path component
|
|
2325
|
+
at '/tmp/qa-990-sync/blocker'; result_local_path ends in a path separator…". The message names
|
|
2326
|
+
`result_local_path` throughout, never `local_path`.
|
|
2327
|
+
- Call 2 returns no files: `a.txt` was not uploaded (a real, non-`dry_run` sync).
|
|
2328
|
+
- `/tmp/qa-990-sync/blocker` still holds `keep me`.
|
|
2329
|
+
- Call 3 raises the same error, and `/tmp/qa-990-sync/new` doesn't exist: the missing `local_path`
|
|
2330
|
+
isn't created for a refused call (PR #1000 QA round 2).
|
|
2331
|
+
|
|
2332
|
+
**Teardown:** `rm -rf /tmp/qa-990-sync`; `delete_file(file_id="<folder-id>")`.
|
|
2333
|
+
|
|
2334
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 2 (`695d0f9`).** Ran under this job's scratch dir instead of `/tmp`. Call 1 raised "result_local_path '<dir>/blocker/' has a non-directory path component at '<dir>/blocker'; result_local_path ends in a path separator or '.'…", naming `result_local_path` throughout. Call 2 returned `[]`, and `blocker` still holds `keep me`. Probe outside the case (sent back): the same call with a missing `local_path` of `<dir>/new/deep/sync` raised the same error but had already created `new/deep/sync`.
|
|
2335
|
+
|
|
2336
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 3 (`290f5bc`).** Ran under this job's scratch dir instead of `/tmp`. Call 1 raised the `result_local_path` error, call 2 returned `[]`, and call 3 raised the same error with no `new/` directory created. `blocker` still holds `keep me`.
|
|
2337
|
+
|
|
2338
|
+
---
|
|
2339
|
+
|
|
2255
2340
|
### TC-D256: `download_folder`'s `progress_unit='bytes'` feeds byte totals into the structured progress fields, with a file-count fallback when sizes aren't fully known (issue #741) ⚠️ local-filesystem
|
|
2256
2341
|
|
|
2257
2342
|
**Background:** TC-D255 (#352) confirmed the message text carries bytes-transferred-so-far as supplementary context, but the structured `progress`/`total` fields passed to `ctx.report_progress()` stayed file-count-based unconditionally — a client rendering a progress bar from those fields alone (not parsing message text) sees the same one-tick-per-file granularity regardless of individual file size. #741's maintainer decision: keep file-count as the default (`progress_unit='files'`), but add an opt-in `progress_unit='bytes'` so a caller can request byte-based structured fields when every candidate's size is known upfront (same `bytes_total_known` gate TC-D255's message-fallback logic already uses) — falling back to file-count when it isn't, since there's no reliable byte total to report against then. `sync_folder` is explicitly out of scope for this decision (recursive descent never has a full upfront size list). Unit-tested deterministically against a mocked `ctx` in `tests/drive/test_transfer.py::TestDownloadFolder::test_progress_unit_bytes_reports_byte_totals_when_sizes_known`/`test_progress_unit_bytes_falls_back_to_files_when_sizes_unknown`; this live check confirms both branches against a real API call.
|
|
@@ -809,3 +809,23 @@ Write 10 cells (`Empty!A1:A10`) each containing a ~4,785-character string with a
|
|
|
809
809
|
**Result (2026-09-04) ⏭️ SKIP**
|
|
810
810
|
Stale: references retired 40,000 cap; ~42k-char 10-match response no longer trips the 1,000,000 default. Cap + local_path mechanism covered by TC-R03c/d. Skipped rather than add fixture churn for no signal
|
|
811
811
|
|
|
812
|
+
|
|
813
|
+
---
|
|
814
|
+
|
|
815
|
+
### TC-R44: A sheet name with `/` or `..` writes inside the chosen `local_path` directory (PR #1000 QA round 2, issue #990) ⚠️ local-filesystem
|
|
816
|
+
`get_sheet_data` names its file `<sheet>_data.json`. Before the fix, a tab named `../x` wrote `x_data.json` beside the chosen directory, and a tab named `a/b` created a subdirectory.
|
|
817
|
+
|
|
818
|
+
**Setup:** `rm -rf /tmp/qa-990-sheet`. `create_sheet(spreadsheet_id={SPREADSHEET_ID}, title="../x")` and `create_sheet(spreadsheet_id={SPREADSHEET_ID}, title="a/b")`.
|
|
819
|
+
|
|
820
|
+
**Steps**
|
|
821
|
+
1. `get_sheet_data(spreadsheet_id={SPREADSHEET_ID}, sheet="../x", local_path="/tmp/qa-990-sheet/out/")`
|
|
822
|
+
2. `get_sheet_data(spreadsheet_id={SPREADSHEET_ID}, sheet="a/b", local_path="/tmp/qa-990-sheet/out/")`
|
|
823
|
+
|
|
824
|
+
**Checks**
|
|
825
|
+
- Step 1 returns `local_path` `/tmp/qa-990-sheet/out/.._x_data.json`
|
|
826
|
+
- Step 2 returns `local_path` `/tmp/qa-990-sheet/out/a_b_data.json`
|
|
827
|
+
- `ls -A /tmp/qa-990-sheet` lists only `out`, and `ls -A /tmp/qa-990-sheet/out` lists exactly `.._x_data.json` and `a_b_data.json` (no `a/` subdirectory)
|
|
828
|
+
|
|
829
|
+
**Cleanup:** `delete_sheet` both tabs; `rm -rf /tmp/qa-990-sheet`
|
|
830
|
+
|
|
831
|
+
**Result (2026-10-11) ✅ PASS — Kit, PR #1000 round 3 (`290f5bc`).** Ran under this job's scratch dir instead of `/tmp`. Used `TEST_SPREADSHEET_ID`. Step 1 returned `<dir>/out/.._x_data.json` (117 bytes), step 2 `<dir>/out/a_b_data.json` (116 bytes). `<dir>` lists only `out`, and `out` lists exactly those two files. Both tabs deleted afterward.
|
|
@@ -281,9 +281,10 @@ Same shape as v0.8.1 — stabilize on defects that surfaced since v0.9.0 shipped
|
|
|
281
281
|
- [x] Deduplicate the `max_results` clamp expression, hand-copied 8x across `drive/files.py` with inconsistent caps (PR #736 follow-up) ([#737](https://github.com/khuisman/mcp-gee-sweet/issues/737)) (PR #781)
|
|
282
282
|
- [x] `download_file`: one pre-flight `local_path` check before any Drive call, for both trailing-slash and plain branches, naming the blocking path (#724/#827 follow-up; on-deck, `good first issue`) (PR #855) ([#836](https://github.com/khuisman/mcp-gee-sweet/issues/836))
|
|
283
283
|
- [x] `sync_folder`: a failed mid-stream download leaves a truncated local file with a fresh mtime, which the next sync uploads over the intact Drive copy — download to a temp file and `os.replace` on success; check `download_file`/`download_folder` too. Found by code review, not yet observed live (lane-a, after #814 since both touch `_run_one`) ([#844](https://github.com/khuisman/mcp-gee-sweet/issues/844)) (PR #884)
|
|
284
|
-
- [
|
|
285
|
-
- [
|
|
286
|
-
- [ ]
|
|
284
|
+
- [x] **Bundle:** Drive transfer follow-ups (`download_file` preflight + `_write_atomically`), one PR closing [#874](https://github.com/khuisman/mcp-gee-sweet/issues/874), [#887](https://github.com/khuisman/mcp-gee-sweet/issues/887) — lane A (PR #1001) ([#895](https://github.com/khuisman/mcp-gee-sweet/issues/895))
|
|
285
|
+
- [x] `upload_local_file`/`sync_folder`: compressed files upload with the inner MIME type (`x.csv.gz` → `text/csv`). Lane A, after #895 (both touch `transfer.py` uploads); community PR #934 closed unmerged 2026-10-10 (PR #1002) ([#930](https://github.com/khuisman/mcp-gee-sweet/issues/930))
|
|
286
|
+
- [ ] `sync_folder`: `size_bytes` never counts uploaded bytes, so an upload-only sync reports 0 (found in PR #1002's QA, observed live). Lane A, after #930 ([#1003](https://github.com/khuisman/mcp-gee-sweet/issues/1003))
|
|
287
|
+
- [ ] Share one HttpError reason-check helper across the `storageQuotaExceeded` sites. Lane A, after #1003; community PR #921 closed unmerged 2026-10-10 ([#916](https://github.com/khuisman/mcp-gee-sweet/issues/916))
|
|
287
288
|
|
|
288
289
|
**Calendar hardening** _(triaged out of `backlog` 2026-09-11)_
|
|
289
290
|
- [ ] **Bundle:** Calendar follow-ups from PR #912, one PR closing [#915](https://github.com/khuisman/mcp-gee-sweet/issues/915), [#918](https://github.com/khuisman/mcp-gee-sweet/issues/918) — lane B, after #892 ([#985](https://github.com/khuisman/mcp-gee-sweet/issues/985))
|
{mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/docs/content.py
RENAMED
|
@@ -1157,6 +1157,9 @@ def register(tool):
|
|
|
1157
1157
|
file_id: The Google Drive file ID of the document.
|
|
1158
1158
|
local_path: Optional local filesystem path (file or directory) to write the
|
|
1159
1159
|
result to instead of returning it inline. Bypasses the response-size cap.
|
|
1160
|
+
A path ending in '/' is a directory, created if missing. A file in place
|
|
1161
|
+
of a parent directory, or at a path ending in '/', raises ValueError; an
|
|
1162
|
+
existing file at a plain file path is replaced.
|
|
1160
1163
|
Same caveat as download_file/download_folder: this path is resolved on the
|
|
1161
1164
|
*server's* filesystem, not the caller's.
|
|
1162
1165
|
|
|
@@ -1540,6 +1543,9 @@ def register(tool):
|
|
|
1540
1543
|
max_results: Maximum number of matches to return (default 50).
|
|
1541
1544
|
local_path: Optional local filesystem path (file or directory) to write the
|
|
1542
1545
|
result to instead of returning it inline. Bypasses the response-size cap.
|
|
1546
|
+
A path ending in '/' is a directory, created if missing. A file in place
|
|
1547
|
+
of a parent directory, or at a path ending in '/', raises ValueError; an
|
|
1548
|
+
existing file at a plain file path is replaced.
|
|
1543
1549
|
Same caveat as download_file/download_folder: this path is resolved on the
|
|
1544
1550
|
*server's* filesystem, not the caller's.
|
|
1545
1551
|
|
|
@@ -308,8 +308,11 @@ def register(tool):
|
|
|
308
308
|
instead of returning it inline. The file holds the raw Markdown
|
|
309
309
|
text (UTF-8), byte-identical to the inline markdown field,
|
|
310
310
|
including the comments section when include_comments is True.
|
|
311
|
-
A directory path writes <doc_id>.md inside it
|
|
312
|
-
|
|
311
|
+
A directory path writes <doc_id>.md inside it; a path ending in
|
|
312
|
+
'/' is a directory, created if missing. A file in place of a parent
|
|
313
|
+
directory, or at a path ending in '/', raises ValueError; an existing
|
|
314
|
+
file at a plain file path is replaced.
|
|
315
|
+
Bypasses the response-size cap.
|
|
313
316
|
|
|
314
317
|
Returns:
|
|
315
318
|
Dictionary with doc_id, title, and markdown (the full Markdown
|
{mcp_gee_sweet-0.9.2.dev325 → mcp_gee_sweet-0.9.2.dev330}/src/mcp_gee_sweet/tools/drive/transfer.py
RENAMED
|
@@ -3,7 +3,6 @@ import base64
|
|
|
3
3
|
import hashlib
|
|
4
4
|
import io
|
|
5
5
|
import logging
|
|
6
|
-
import mimetypes
|
|
7
6
|
import os
|
|
8
7
|
from collections.abc import Iterable
|
|
9
8
|
from dataclasses import dataclass
|
|
@@ -19,8 +18,16 @@ from mcp.types import ToolAnnotations
|
|
|
19
18
|
|
|
20
19
|
from ...auth import execute_in_thread, thread_http
|
|
21
20
|
from ..atomic_write import _check_destination, _is_partial_download, _write_atomically
|
|
21
|
+
from ..mime_types import guess_mime_type
|
|
22
22
|
from ..pagination import iter_pages
|
|
23
|
-
from ..response_limits import
|
|
23
|
+
from ..response_limits import (
|
|
24
|
+
_blocked_destination_error,
|
|
25
|
+
_is_dangling_symlink,
|
|
26
|
+
_local_dir_blocker,
|
|
27
|
+
enforce_response_size_cap,
|
|
28
|
+
validate_local_destination,
|
|
29
|
+
write_capped_result_to_disk,
|
|
30
|
+
)
|
|
24
31
|
from . import _SA_QUOTA_ERROR, _escape_drive_query_mime_type
|
|
25
32
|
|
|
26
33
|
logger = logging.getLogger(__name__)
|
|
@@ -272,75 +279,6 @@ def _restamp_failure_result(file_id: str, exc: Exception) -> dict[str, Any]:
|
|
|
272
279
|
}
|
|
273
280
|
|
|
274
281
|
|
|
275
|
-
def _local_dir_blocker(path: Path) -> Path | None:
|
|
276
|
-
"""The nearest existing component of `path` (itself, then its parents), if
|
|
277
|
-
it isn't a directory; None when `path` can be created with mkdir -p.
|
|
278
|
-
|
|
279
|
-
A dangling symlink counts as existing: mkdir can't create a directory over it.
|
|
280
|
-
"""
|
|
281
|
-
for p in (path, *path.parents):
|
|
282
|
-
if p.exists() or p.is_symlink():
|
|
283
|
-
return None if p.is_dir() else p
|
|
284
|
-
return None
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
def _is_dangling_symlink(path: Path) -> bool:
|
|
288
|
-
return path.is_symlink() and not path.exists()
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
def _blocked_destination_error(
|
|
292
|
-
local_path: str, blocker: Path, ending_made_dir: bool = False
|
|
293
|
-
) -> ValueError:
|
|
294
|
-
"""The ValueError for a local_path that `blocker` stops from being written.
|
|
295
|
-
|
|
296
|
-
`ending_made_dir`: `blocker` is the destination itself, and only local_path's
|
|
297
|
-
ending (a trailing separator, '.' or '..') made it a directory target. The
|
|
298
|
-
message then says so, since dropping that ending writes a file there instead.
|
|
299
|
-
"""
|
|
300
|
-
if _is_dangling_symlink(blocker):
|
|
301
|
-
return ValueError(
|
|
302
|
-
f"local_path {local_path!r} has a symlink to a missing target at {str(blocker)!r}"
|
|
303
|
-
)
|
|
304
|
-
message = f"local_path {local_path!r} has a non-directory path component at {str(blocker)!r}"
|
|
305
|
-
if ending_made_dir:
|
|
306
|
-
message += (
|
|
307
|
-
"; local_path ends in a path separator or '.', which makes it a directory "
|
|
308
|
-
"target. Remove that ending to write a file at that path instead"
|
|
309
|
-
)
|
|
310
|
-
return ValueError(message)
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
def _validate_local_destination(local_path: str, *, is_dir: bool = False) -> tuple[Path, bool]:
|
|
314
|
-
"""Reject a blocked local destination before making any Drive request.
|
|
315
|
-
|
|
316
|
-
The destination must be a directory when `is_dir` is set or local_path ends
|
|
317
|
-
in a separator, '.' or '..' (Path() drops a trailing '/.', so a check on the
|
|
318
|
-
Path alone would read 'dir/.' as a file named 'dir'). Otherwise it's a file
|
|
319
|
-
and only its parents must be directories: an existing regular file there may
|
|
320
|
-
still be replaced, but a dangling symlink is refused, the same as a dangling
|
|
321
|
-
symlink at a directory target (#874).
|
|
322
|
-
"""
|
|
323
|
-
dest = Path(local_path)
|
|
324
|
-
ending_made_dir = os.path.basename(local_path) in ("", ".", "..")
|
|
325
|
-
wants_dir = is_dir or ending_made_dir
|
|
326
|
-
if wants_dir:
|
|
327
|
-
blocker = _local_dir_blocker(dest)
|
|
328
|
-
elif _is_dangling_symlink(dest):
|
|
329
|
-
blocker = dest
|
|
330
|
-
else:
|
|
331
|
-
blocker = _local_dir_blocker(dest.parent)
|
|
332
|
-
if blocker is not None:
|
|
333
|
-
raise _blocked_destination_error(
|
|
334
|
-
local_path, blocker, ending_made_dir and not is_dir and blocker == dest
|
|
335
|
-
)
|
|
336
|
-
if not wants_dir and not dest.is_dir():
|
|
337
|
-
# A FIFO, socket, or unwritable file at a file destination fails here,
|
|
338
|
-
# not after a Workspace export's round trip (PR #1001 QA round 1). An
|
|
339
|
-
# existing directory without a trailing separator is a directory target.
|
|
340
|
-
_check_destination(dest)
|
|
341
|
-
return dest, wants_dir
|
|
342
|
-
|
|
343
|
-
|
|
344
282
|
def _mkdir_or_blocker(path: Path) -> Path | None:
|
|
345
283
|
"""mkdir -p `path`, or return the component in its way (_local_dir_blocker).
|
|
346
284
|
|
|
@@ -882,8 +820,7 @@ async def _upload_local_file(
|
|
|
882
820
|
# within Drive's per-property byte cap (PR #800 QA round 1).
|
|
883
821
|
metadata["properties"] = _convert_properties(file_name)
|
|
884
822
|
else:
|
|
885
|
-
mime
|
|
886
|
-
mime = mime or "application/octet-stream"
|
|
823
|
+
mime = guess_mime_type(local_path)
|
|
887
824
|
try:
|
|
888
825
|
# Inside the try, so a file that vanishes or becomes unreadable after
|
|
889
826
|
# the is_file() check above returns {"error": ...} instead of raising
|
|
@@ -1862,8 +1799,7 @@ async def _sync_level(
|
|
|
1862
1799
|
if convert_this:
|
|
1863
1800
|
mime, convert_target_mime = _CONVERT_MIME[".md"]
|
|
1864
1801
|
else:
|
|
1865
|
-
mime
|
|
1866
|
-
mime = mime or "application/octet-stream"
|
|
1802
|
+
mime = guess_mime_type(str(p))
|
|
1867
1803
|
try:
|
|
1868
1804
|
# Inside the try: the file can vanish or become unreadable
|
|
1869
1805
|
# between the scan and here, and that must land as this
|
|
@@ -2551,7 +2487,11 @@ def register(tool):
|
|
|
2551
2487
|
local_path: Docs only. Local path to write the Markdown to instead of
|
|
2552
2488
|
returning it inline (the raw Markdown text, UTF-8). A
|
|
2553
2489
|
directory path writes <file_id>-r<revision_id>.md inside
|
|
2554
|
-
it
|
|
2490
|
+
it; a path ending in '/' is a directory, created if
|
|
2491
|
+
missing. A file in place of a parent directory, or at a
|
|
2492
|
+
path ending in '/', raises ValueError before the export; an
|
|
2493
|
+
existing file at a plain file path is replaced. Bypasses the
|
|
2494
|
+
response-size cap.
|
|
2555
2495
|
|
|
2556
2496
|
Returns:
|
|
2557
2497
|
Sheets: revisionId, modifiedTime, sheet name, range, and values as a
|
|
@@ -2603,7 +2543,7 @@ def register(tool):
|
|
|
2603
2543
|
if local_path:
|
|
2604
2544
|
# Before the export: a bad destination would otherwise fail only
|
|
2605
2545
|
# after the temporary Doc round trip (PR #988 QA round 1).
|
|
2606
|
-
|
|
2546
|
+
validate_local_destination(local_path)
|
|
2607
2547
|
from ..docs.markdown_export import export_doc_revision_markdown
|
|
2608
2548
|
|
|
2609
2549
|
exported = await export_doc_revision_markdown(
|
|
@@ -3083,7 +3023,7 @@ def register(tool):
|
|
|
3083
3023
|
"""
|
|
3084
3024
|
drive_service = ctx.request_context.lifespan_context.drive_service
|
|
3085
3025
|
|
|
3086
|
-
dest, wants_dir =
|
|
3026
|
+
dest, wants_dir = validate_local_destination(local_path)
|
|
3087
3027
|
|
|
3088
3028
|
metadata = await execute_in_thread(
|
|
3089
3029
|
drive_service.files()
|
|
@@ -3198,7 +3138,7 @@ def register(tool):
|
|
|
3198
3138
|
plus total 'size_bytes' downloaded.
|
|
3199
3139
|
"""
|
|
3200
3140
|
drive_service = ctx.request_context.lifespan_context.drive_service
|
|
3201
|
-
dest_dir, _ =
|
|
3141
|
+
dest_dir, _ = validate_local_destination(local_path, is_dir=True)
|
|
3202
3142
|
_make_local_dir(dest_dir, local_path)
|
|
3203
3143
|
resolved_dest_dir = dest_dir.resolve()
|
|
3204
3144
|
|
|
@@ -3622,7 +3562,11 @@ def register(tool):
|
|
|
3622
3562
|
sync input on every call, so a result manifest written there
|
|
3623
3563
|
would show up as a new local-only file on the next sync (and
|
|
3624
3564
|
get uploaded to Drive on a real run); raises ValueError if it
|
|
3625
|
-
resolves inside `local_path`.
|
|
3565
|
+
resolves inside `local_path`. A path ending in '/' is a
|
|
3566
|
+
directory, created if missing. A file in place of a parent
|
|
3567
|
+
directory, or at a path ending in '/', raises ValueError; an
|
|
3568
|
+
existing file at a plain file path is replaced. Both checks
|
|
3569
|
+
run before any transfer or local mkdir.
|
|
3626
3570
|
|
|
3627
3571
|
Returns:
|
|
3628
3572
|
uploaded, downloaded, skipped, conflicts, failed lists (relative paths —
|
|
@@ -3657,10 +3601,15 @@ def register(tool):
|
|
|
3657
3601
|
|
|
3658
3602
|
lc = ctx.request_context.lifespan_context
|
|
3659
3603
|
drive_service = lc.drive_service
|
|
3660
|
-
dest_dir, _ =
|
|
3661
|
-
_make_local_dir(dest_dir, local_path)
|
|
3604
|
+
dest_dir, _ = validate_local_destination(local_path, is_dir=True)
|
|
3662
3605
|
|
|
3663
3606
|
if result_local_path:
|
|
3607
|
+
# Before any transfer: a bad destination would otherwise fail only at the
|
|
3608
|
+
# final manifest write, after every upload/download had already run, and
|
|
3609
|
+
# the caller would get no record of them (PR #1000 QA round 1). Before
|
|
3610
|
+
# local_path's mkdir too, so a refused call leaves nothing on disk
|
|
3611
|
+
# (PR #1000 QA round 2).
|
|
3612
|
+
validate_local_destination(result_local_path, local_path_param="result_local_path")
|
|
3664
3613
|
# local_path is also a live input directory this same call scans — unlike
|
|
3665
3614
|
# every other capped tool's local_path (a pure output destination), writing
|
|
3666
3615
|
# the result manifest inside it would make the manifest file itself show up
|
|
@@ -3679,6 +3628,8 @@ def register(tool):
|
|
|
3679
3628
|
"up as a new local-only file on the next sync. Use a separate directory."
|
|
3680
3629
|
)
|
|
3681
3630
|
|
|
3631
|
+
_make_local_dir(dest_dir, local_path)
|
|
3632
|
+
|
|
3682
3633
|
uploaded: list[str] = []
|
|
3683
3634
|
downloaded: list[str] = []
|
|
3684
3635
|
skipped: list[str] = []
|
|
@@ -3731,6 +3682,7 @@ def register(tool):
|
|
|
3731
3682
|
result_local_path,
|
|
3732
3683
|
default_filename=f"{folder_id}_sync_result.json",
|
|
3733
3684
|
manifest_extra={"folder_id": folder_id, "dry_run": dry_run},
|
|
3685
|
+
local_path_param="result_local_path",
|
|
3734
3686
|
)
|
|
3735
3687
|
|
|
3736
3688
|
# recursive=True removes the previous implicit bound (one folder's direct
|
|
@@ -6,7 +6,6 @@ import binascii
|
|
|
6
6
|
import codecs
|
|
7
7
|
import functools
|
|
8
8
|
import logging
|
|
9
|
-
import mimetypes
|
|
10
9
|
import re
|
|
11
10
|
import time
|
|
12
11
|
from dataclasses import dataclass, field
|
|
@@ -25,6 +24,7 @@ from mcp.types import ToolAnnotations
|
|
|
25
24
|
|
|
26
25
|
from ..auth import execute_in_thread, get_gmail_unauthorized_message
|
|
27
26
|
from .concurrency import gather_with_fallback
|
|
27
|
+
from .mime_types import OCTET_STREAM, guess_mime_type
|
|
28
28
|
from .response_limits import (
|
|
29
29
|
clamp_max_results,
|
|
30
30
|
enforce_response_size_cap,
|
|
@@ -568,25 +568,6 @@ def _shape_label(label: dict[str, Any]) -> dict[str, Any]:
|
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
|
|
571
|
-
# What a compressed file's guess_type() encoding means as a MIME type. guess_type
|
|
572
|
-
# reports "x.csv.gz" as ("text/csv", "gzip"), and the bytes are gzip, not CSV.
|
|
573
|
-
_ENCODING_MIME_TYPES = {
|
|
574
|
-
"gzip": "application/gzip",
|
|
575
|
-
"bzip2": "application/x-bzip2",
|
|
576
|
-
"xz": "application/x-xz",
|
|
577
|
-
"compress": "application/x-compress",
|
|
578
|
-
"br": "application/x-brotli",
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
# Python's built-in extension table only. A bare MimeTypes() builds its table from
|
|
582
|
-
# the module's built-in defaults; what mimetypes.init() reads from /etc/mime.types,
|
|
583
|
-
# Apache's files, or the Windows registry goes only into the module-level database,
|
|
584
|
-
# so a guess doesn't depend on the host (PR #928 QA: a Windows host with Excel maps
|
|
585
|
-
# .csv to application/vnd.ms-excel).
|
|
586
|
-
_MIME_TYPES = mimetypes.MimeTypes()
|
|
587
|
-
|
|
588
|
-
_OCTET_STREAM = "application/octet-stream"
|
|
589
|
-
|
|
590
571
|
# A type/subtype with both halves non-empty. "application/" or "/pdf" would
|
|
591
572
|
# otherwise go out verbatim as a broken Content-Type (PR #928 QA round 2).
|
|
592
573
|
_MIME_TYPE_RE = re.compile(r"[^/\s;]+/[^/\s;]+\Z")
|
|
@@ -603,11 +584,9 @@ def _guess_attachment_mime_type(filename: str) -> str:
|
|
|
603
584
|
message/rfc822 part could alter bytes the caller never asked to change (PR #928
|
|
604
585
|
QA).
|
|
605
586
|
"""
|
|
606
|
-
mime_type
|
|
607
|
-
if
|
|
608
|
-
return
|
|
609
|
-
if not mime_type or mime_type.partition("/")[0] in ("message", "multipart"):
|
|
610
|
-
return _OCTET_STREAM
|
|
587
|
+
mime_type = guess_mime_type(filename)
|
|
588
|
+
if mime_type.partition("/")[0] in ("message", "multipart"):
|
|
589
|
+
return OCTET_STREAM
|
|
611
590
|
return mime_type
|
|
612
591
|
|
|
613
592
|
|
|
@@ -852,7 +831,11 @@ def register(tool):
|
|
|
852
831
|
message_id: The Gmail message ID (from list_messages or get_thread).
|
|
853
832
|
local_path: Optional local filesystem path (file or directory) to write the
|
|
854
833
|
message JSON to instead of returning it inline. Bypasses the
|
|
855
|
-
response-size cap, for messages with very large bodies.
|
|
834
|
+
response-size cap, for messages with very large bodies. A
|
|
835
|
+
path ending in '/' is a directory, created if missing. A file
|
|
836
|
+
in place of a parent directory, or at a path ending in '/',
|
|
837
|
+
raises ValueError; an existing file at a plain file path is
|
|
838
|
+
replaced.
|
|
856
839
|
include_body: When False, fetch only metadata (Gmail's format='metadata'):
|
|
857
840
|
no body is downloaded, and body_plain, body_html, and
|
|
858
841
|
attachments are left out of the result.
|
|
@@ -969,7 +952,11 @@ def register(tool):
|
|
|
969
952
|
thread_id: The Gmail thread ID (from list_threads or a message's thread_id).
|
|
970
953
|
local_path: Optional local filesystem path (file or directory) to write the
|
|
971
954
|
thread JSON to instead of returning it inline. Bypasses the
|
|
972
|
-
response-size cap, for threads with very large bodies.
|
|
955
|
+
response-size cap, for threads with very large bodies. A
|
|
956
|
+
path ending in '/' is a directory, created if missing. A file
|
|
957
|
+
in place of a parent directory, or at a path ending in '/',
|
|
958
|
+
raises ValueError; an existing file at a plain file path is
|
|
959
|
+
replaced.
|
|
973
960
|
include_body: When False, fetch only each message's metadata (Gmail's
|
|
974
961
|
format='metadata'): no body is downloaded, and body_plain,
|
|
975
962
|
body_html, and attachments are left out. Use it to list a
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import mimetypes
|
|
2
|
+
|
|
3
|
+
OCTET_STREAM = "application/octet-stream"
|
|
4
|
+
|
|
5
|
+
# What a compressed file's guess_type() encoding means as a MIME type. guess_type
|
|
6
|
+
# reports "x.csv.gz" as ("text/csv", "gzip"), and the bytes are gzip, not CSV.
|
|
7
|
+
_ENCODING_MIME_TYPES = {
|
|
8
|
+
"gzip": "application/gzip",
|
|
9
|
+
"bzip2": "application/x-bzip2",
|
|
10
|
+
"xz": "application/x-xz",
|
|
11
|
+
"compress": "application/x-compress",
|
|
12
|
+
"br": "application/x-brotli",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
# Python's built-in extension table only. A bare MimeTypes() builds its table from
|
|
16
|
+
# the module's built-in defaults; what mimetypes.init() reads from /etc/mime.types,
|
|
17
|
+
# Apache's files, or the Windows registry goes only into the module-level database,
|
|
18
|
+
# so a guess doesn't depend on the host (PR #928 QA: a Windows host with Excel maps
|
|
19
|
+
# .csv to application/vnd.ms-excel).
|
|
20
|
+
_MIME_TYPES = mimetypes.MimeTypes()
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def guess_mime_type(filename: str) -> str:
|
|
24
|
+
"""The file's MIME type from its filename extension, or application/octet-stream
|
|
25
|
+
when unknown.
|
|
26
|
+
|
|
27
|
+
A compressed file gets its compression type, not the type of what's inside it
|
|
28
|
+
("x.csv.gz" is application/gzip, not text/csv; #930). Shared by Gmail
|
|
29
|
+
attachments and Drive uploads (upload_local_file, upload_local_folder,
|
|
30
|
+
sync_folder), so the two can't drift apart.
|
|
31
|
+
"""
|
|
32
|
+
mime_type, encoding = _MIME_TYPES.guess_type(filename)
|
|
33
|
+
if encoding:
|
|
34
|
+
return _ENCODING_MIME_TYPES.get(encoding, OCTET_STREAM)
|
|
35
|
+
return mime_type or OCTET_STREAM
|