mcp-gee-sweet 0.9.2.dev370__tar.gz → 0.9.2.dev377__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.dev370 → mcp_gee_sweet-0.9.2.dev377}/CLAUDE.md +6 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/PKG-INFO +14 -13
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/README.md +11 -10
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/configuration.md +35 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/local-file-access-policy.md +16 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/index.md +5 -14
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/known-limitations.md +41 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/infra.md +168 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/roadmap.md +5 -3
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/tools.md +9 -9
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/pyproject.toml +2 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/gen_tool_docs.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/qa_cancel_insert_local_images.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/qa_revision_temp_doc_parent.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/server.json +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/.env.template +9 -0
- mcp_gee_sweet-0.9.2.dev377/src/mcp_gee_sweet/local_files.py +330 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/server.py +59 -19
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/content.py +40 -9
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/images.py +20 -2
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/markdown_export.py +4 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/drive/files.py +14 -4
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/drive/transfer.py +305 -197
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/gmail.py +10 -3
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/response_limits.py +8 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/sheets/data.py +13 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/drive/test_activity.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/drive/test_files.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/drive/test_sharing.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/drive/test_transfer.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/fakes.py +11 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/sheets/test_data.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/sheets/test_structure.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_calendar.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_comments.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_content.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_editing.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_images.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_layout.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_markdown_export.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_named_ranges.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_revision_export.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_style.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_tables.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_gmail.py +1 -1
- mcp_gee_sweet-0.9.2.dev377/tests/test_local_file_sites.py +589 -0
- mcp_gee_sweet-0.9.2.dev377/tests/test_local_files.py +506 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_server.py +290 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/cleanup-worktrees.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/merge-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/notify-kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/notify-partner.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/orchestrator.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/prep-for-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/qa-kickoff.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/release.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/retro.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/roadmap-status.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/security-advisory.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/start-worktree.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/team-member.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/commands/verify-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/settings.json +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/team-roles/amy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/team-roles/aziz.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/team-roles/bob.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/team-roles/dev.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/team-roles/joy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/team-roles/kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.claude/team-roles/qa.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.dockerignore +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.github/dependabot.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.github/workflows/ci.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.github/workflows/docs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.github/workflows/publish-dev.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.github/workflows/release.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.gitignore +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.pre-commit-config.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/.python-version +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/CHANGELOG.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/CODE_OF_CONDUCT.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/CONTRIBUTING.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/Dockerfile +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/LICENSE +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/Makefile +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/SECURITY.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docker-compose.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/assets/logo.png +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/auth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/client-setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-async-tool-execution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-cache-invalidation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-chart-theming.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-comments-first-class.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-composite-tools.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-converted-doc-change-detection.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-dev-team.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-docs-formatting.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-fork.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-gmail-domain.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-grid-data-size-cap.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-impact-reach-triage.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-local-fs-test-harness.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-pillow-image-dependency.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-prompt-qa-role.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-publishing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-release-docs-roles.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-repositioning.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-review-finding-ticket-bar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-supports-all-drives-lint-check.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-sync-folder-recursion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-testing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/decision-tool-error-visibility.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/decisions/role-file-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/blockquote-representation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/borderless-table-columns.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/doc-replace-backup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/doc-revision-export.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/doc-to-markdown.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/docs-ast-pipeline.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/effectiveformat-spike.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/heading-anchor-resolution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/image-share-lifecycle.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/markdown-support.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/module-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/oauth-reauthorize-from-tool-call.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/phase3-theme-system.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/sse-consent-off-event-loop.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/notes-read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/fixtures.template.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/gmail-test-plan.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/operations.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/playwright_oauth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/.gitkeep +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-06-02.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-06-14.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-06-17.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-06-18.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-06-28.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-07-04-docs.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-07-04-infra.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-07-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/results/2026-09-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/retro-v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/retro-v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/run.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/runs/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/runs/v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/runs/v0.8.1.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/runs/v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/runs/v0.9.1.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/calendar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/docs_content.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/docs_layout.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/docs_style.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/docs_tables.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/drive_activity.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/drive_files.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/drive_sharing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/drive_transfer.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/gmail.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/sheets_charts.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/sheets_mgmt.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/qa/tests/sheets_write.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/style-guide.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/mkdocs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/pyrightconfig.json +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/oauth_setup.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/setup_team.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/scripts/write_team_mcp_configs.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/http_transport.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/calendar.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/http_errors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/mime_types.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/pagination.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/integration/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/integration/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/integration/test_local_fs_harness.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/sheets/test_helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_core.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_docs_indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_http_errors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_http_transport.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_mime_types.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_response_limits.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_server_json.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/tests/test_team_mcp_configs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/uv.lock +0 -0
|
@@ -84,6 +84,12 @@ Each entry below says what a module owns and the invariants a future edit could
|
|
|
84
84
|
- A code-styled paragraph's internal `"\n"` breaks become `"\v"` (`_is_code_paragraph`) so a fenced block stays one Docs paragraph; `doc_to_ast.py` reverses it.
|
|
85
85
|
- `tools/cache.py` — `refresh_cache`, `set_cache_ttl`/`get_cache_ttl` (runtime TTL change, no restart needed)
|
|
86
86
|
- `tools/calendar.py` — Calendar API tools
|
|
87
|
+
- `local_files.py` — the local-file access policy, `LOCAL_FILE_ACCESS=full|roots|off` (#796, `docs/design/local-file-access-policy.md`). Resolved once at import from env and argv (`cli_transport`, shared with `main()`): the default is `full` under stdio and `off` otherwise, and `_timed`'s `request_over_http` tripwire refuses a defaulted `full` that reaches an HTTP request. Invariants:
|
|
88
|
+
- Every local read or write a tool makes goes through `check_read`/`check_write`, *before* any `stat` of the path, so a refusal reads the same whether or not the path exists. The check returns the resolved path. Where a site uses it (`_upload_local_file`'s upload, `_read_doc_source_file`, `import_csv_to_sheet`, Gmail attachments) it narrows the window before the I/O; writes keep the caller's path, since `_write_atomically` resolves a symlinked destination itself. Neither closes the check-then-use race, which is a documented known limitation. Take a filename or suffix from the caller's own spelling, so a symlink keeps its link name. A malformed path (a NUL byte) is a `LocalFileAccessError` too, so a per-item site fails only that item.
|
|
89
|
+
- A folder walk checks each entry, not just the root: a symlink inside a root can point anywhere. In `sync_folder` a refusal is a `local_read_fail` plan step (`_sync_policy_refusal`). `_sync_local_check` picks the check from what the plan can do to the local side (read, write, or either for a both-sides bidirectional entry) and returns None for a name on one side only that the direction never touches, which is skipped unchecked. Wrap a walk in `local_files.many_checks()`, which stats the deny-list once for the whole walk instead of once per entry, on the loop. It also resolves each parent directory once, keyed by the path's raw spelling. Never normalize it lexically (`abspath`/`normpath`): `link/..` is the parent of the link's target, and collapsing it first let a write land in a deny-listed directory (PR #1039 QA round 2). A relative path bypasses the cache.
|
|
90
|
+
- `resolve_policy` never raises: an invalid setting resolves to `off` with `Policy.error` set, and only `main()`'s serving path exits on it (`exit_if_invalid`), so `mcp-gee-sweet auth` and `gen_tool_docs.py` still run.
|
|
91
|
+
- A tool that can only work on local files takes `@tool(local_only=True)`, which `off` mode doesn't register. A tool with an optional `local_path` checks it at entry, before any fetch; `write_capped_result_to_disk` is the backstop and also checks the joined `default_filename`.
|
|
92
|
+
- A new tool parameter that takes a local path fails `tests/test_server.py::TestLocalPathToolsAreCovered` until the tool is added to `_LOCAL_ONLY_TOOLS` or `_OPTIONAL_LOCAL_PATH_TOOLS` there, with its check in place.
|
|
87
93
|
- `tools/response_limits.py` — shared response-size safety net (`enforce_response_size_cap`, `write_capped_result_to_disk`); imported cross-package the same way `tools/drive/__init__.py`'s `_SA_QUOTA_ERROR` is. Cap configured via `MAX_TOOL_RESPONSE_CHARS` (see `docs/configuration.md` for the current default — raised in issue #519 after live-testing found the client-connection-death failure mode it defends against no longer reproduces at the old default's scale, kept as defense-in-depth for other/untested MCP clients); see `docs/decisions/decision-response-size-cap-generalization.md` and `docs/decisions/decision-response-size-cap-reevaluation-519.md`
|
|
88
94
|
|
|
89
95
|
`__init__.py` loads `src/mcp_gee_sweet/.env` via `python-dotenv` before importing `server`, so env vars from that file are in `os.environ` by the time any module-level `os.environ.get()` runs. Priority: real env var > `.env` > default.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: mcp-gee-sweet
|
|
3
|
-
Version: 0.9.2.
|
|
4
|
-
Summary: MCP server for Google Workspace — Sheets, Drive, Docs (HTML or Markdown), and
|
|
3
|
+
Version: 0.9.2.dev377
|
|
4
|
+
Summary: MCP server for Google Workspace — Sheets, Drive, Docs (HTML or Markdown), Calendar, and Gmail.
|
|
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
|
|
7
7
|
Project-URL: Repository, https://github.com/khuisman/mcp-gee-sweet.git
|
|
8
8
|
Author-email: Kevin Huisman <khuisman@users.noreply.github.com>
|
|
9
9
|
License-Expression: MIT
|
|
10
10
|
License-File: LICENSE
|
|
11
|
-
Keywords: ai-agent,claude,google-calendar,google-docs,google-drive,google-sheets,google-workspace,mcp,model-context-protocol
|
|
11
|
+
Keywords: ai-agent,claude,gmail,google-calendar,google-docs,google-drive,google-sheets,google-workspace,mcp,model-context-protocol
|
|
12
12
|
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -37,16 +37,16 @@ Description-Content-Type: text/markdown
|
|
|
37
37
|
<img src="https://raw.githubusercontent.com/khuisman/mcp-gee-sweet/main/docs/assets/logo.png" alt="mcp-gee-sweet logo" width="160">
|
|
38
38
|
|
|
39
39
|
<b>mcp-gee-sweet</b>
|
|
40
|
-
<p align="center"><i>
|
|
40
|
+
<p align="center"><i>A Google Workspace MCP server built for depth.</i></p>
|
|
41
41
|
|
|
42
42
|

|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
<!-- mcp-name: io.github.khuisman/mcp-gee-sweet -->
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
mcp-gee-sweet gives AI clients deep, direct access to Google Sheets, Docs, Drive, Calendar, and Gmail. It reads raw formulas like `=VLOOKUP()` directly, builds Docs structurally (colspan/rowspan tables, themes, named styles, an HTML/Markdown→AST→Docs pipeline), and covers Drive files, sharing, and sync alongside Calendar events and Gmail messages, threads, and drafts.
|
|
48
48
|
|
|
49
|
-
A few
|
|
49
|
+
A few highlights:
|
|
50
50
|
- **Caching** — repeated reads return in ~2ms from a local cache instead of a round-trip API call every time.
|
|
51
51
|
- **Formula access** — reads raw `=VLOOKUP()`, `=SUM()`, and `=IF()` expressions, not just the values they produce.
|
|
52
52
|
- **Local sync** — two-way sync between a local folder and Google Drive.
|
|
@@ -67,12 +67,13 @@ uvx --prerelease=allow mcp-gee-sweet
|
|
|
67
67
|
|
|
68
68
|
## What's covered
|
|
69
69
|
|
|
70
|
-
| Service | Tools |
|
|
71
|
-
|
|
72
|
-
| **Google Sheets** |
|
|
73
|
-
| **Google Drive** | 38 |
|
|
74
|
-
| **Google Docs** | 34 |
|
|
75
|
-
| **Google Calendar** | 17 |
|
|
70
|
+
| Service | Tools | Highlights |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| **Google Sheets** | 36 | Formula access, batch read/write, 8 chart types, structural ops |
|
|
73
|
+
| **Google Drive** | 38 | File ops, sharing/permissions, local sync, revision history |
|
|
74
|
+
| **Google Docs** | 34 | Full HTML→Doc pipeline, tables, range styling, themes, Markdown export |
|
|
75
|
+
| **Google Calendar** | 17 | Event CRUD, free-slot finder across multiple calendars |
|
|
76
|
+
| **Gmail** | 11 | Search and read messages and threads, send and reply, drafts, labels (OAuth only) |
|
|
76
77
|
|
|
77
78
|
---
|
|
78
79
|
|
|
@@ -120,7 +121,7 @@ mcp-gee-sweet auth # one-time browser login; `uvx mcp-gee-sweet auth` for a Py
|
|
|
120
121
|
|
|
121
122
|
Pass the same `CREDENTIALS_PATH` and `TOKEN_PATH` in your MCP client's `env`. A stdio server with no token doesn't open a browser itself. Instead its first tool call offers you the Google consent link (or you run `mcp-gee-sweet auth`), and you retry the call. A token revoked mid-session is handled the same way, with no restart.
|
|
122
123
|
|
|
123
|
-
Service accounts (recommended for headless server deployments — see Option B above), base64 credential injection, and Application Default Credentials are also supported. See [Authentication](https://khuisman.github.io/mcp-gee-sweet/latest/auth/) for all options.
|
|
124
|
+
Service accounts (recommended for headless server deployments — see Option B above; Gmail tools need OAuth), base64 credential injection, and Application Default Credentials are also supported. See [Authentication](https://khuisman.github.io/mcp-gee-sweet/latest/auth/) for all options.
|
|
124
125
|
|
|
125
126
|
---
|
|
126
127
|
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
<img src="https://raw.githubusercontent.com/khuisman/mcp-gee-sweet/main/docs/assets/logo.png" alt="mcp-gee-sweet logo" width="160">
|
|
3
3
|
|
|
4
4
|
<b>mcp-gee-sweet</b>
|
|
5
|
-
<p align="center"><i>
|
|
5
|
+
<p align="center"><i>A Google Workspace MCP server built for depth.</i></p>
|
|
6
6
|
|
|
7
7
|

|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
<!-- mcp-name: io.github.khuisman/mcp-gee-sweet -->
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
mcp-gee-sweet gives AI clients deep, direct access to Google Sheets, Docs, Drive, Calendar, and Gmail. It reads raw formulas like `=VLOOKUP()` directly, builds Docs structurally (colspan/rowspan tables, themes, named styles, an HTML/Markdown→AST→Docs pipeline), and covers Drive files, sharing, and sync alongside Calendar events and Gmail messages, threads, and drafts.
|
|
13
13
|
|
|
14
|
-
A few
|
|
14
|
+
A few highlights:
|
|
15
15
|
- **Caching** — repeated reads return in ~2ms from a local cache instead of a round-trip API call every time.
|
|
16
16
|
- **Formula access** — reads raw `=VLOOKUP()`, `=SUM()`, and `=IF()` expressions, not just the values they produce.
|
|
17
17
|
- **Local sync** — two-way sync between a local folder and Google Drive.
|
|
@@ -32,12 +32,13 @@ uvx --prerelease=allow mcp-gee-sweet
|
|
|
32
32
|
|
|
33
33
|
## What's covered
|
|
34
34
|
|
|
35
|
-
| Service | Tools |
|
|
36
|
-
|
|
37
|
-
| **Google Sheets** |
|
|
38
|
-
| **Google Drive** | 38 |
|
|
39
|
-
| **Google Docs** | 34 |
|
|
40
|
-
| **Google Calendar** | 17 |
|
|
35
|
+
| Service | Tools | Highlights |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| **Google Sheets** | 36 | Formula access, batch read/write, 8 chart types, structural ops |
|
|
38
|
+
| **Google Drive** | 38 | File ops, sharing/permissions, local sync, revision history |
|
|
39
|
+
| **Google Docs** | 34 | Full HTML→Doc pipeline, tables, range styling, themes, Markdown export |
|
|
40
|
+
| **Google Calendar** | 17 | Event CRUD, free-slot finder across multiple calendars |
|
|
41
|
+
| **Gmail** | 11 | Search and read messages and threads, send and reply, drafts, labels (OAuth only) |
|
|
41
42
|
|
|
42
43
|
---
|
|
43
44
|
|
|
@@ -85,7 +86,7 @@ mcp-gee-sweet auth # one-time browser login; `uvx mcp-gee-sweet auth` for a Py
|
|
|
85
86
|
|
|
86
87
|
Pass the same `CREDENTIALS_PATH` and `TOKEN_PATH` in your MCP client's `env`. A stdio server with no token doesn't open a browser itself. Instead its first tool call offers you the Google consent link (or you run `mcp-gee-sweet auth`), and you retry the call. A token revoked mid-session is handled the same way, with no restart.
|
|
87
88
|
|
|
88
|
-
Service accounts (recommended for headless server deployments — see Option B above), base64 credential injection, and Application Default Credentials are also supported. See [Authentication](https://khuisman.github.io/mcp-gee-sweet/latest/auth/) for all options.
|
|
89
|
+
Service accounts (recommended for headless server deployments — see Option B above; Gmail tools need OAuth), base64 credential injection, and Application Default Credentials are also supported. See [Authentication](https://khuisman.github.io/mcp-gee-sweet/latest/auth/) for all options.
|
|
89
90
|
|
|
90
91
|
---
|
|
91
92
|
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
| `OAUTH_CONSENT_TIMEOUT_SECONDS` | SSE only: how long the server waits for the browser consent when there's no usable OAuth token, before starting without Google access. See [Authentication](auth.md) | `300` |
|
|
14
14
|
| `CREDENTIALS_CONFIG` | Base64-encoded credentials JSON (for containers) | — |
|
|
15
15
|
| `ENABLED_TOOLS` | Comma-separated list of tool names to register | all tools |
|
|
16
|
+
| `LOCAL_FILE_ACCESS` | Which local files tools may read and write: `full`, `roots`, or `off`. See [Local file access](#local-file-access) | `full` under stdio, `off` under SSE and streamable HTTP |
|
|
17
|
+
| `LOCAL_FILE_ROOTS` | With `LOCAL_FILE_ACCESS=roots`, the directories tools may use, separated by `:` (`;` on Windows), like `PATH` | — |
|
|
16
18
|
| `CACHE_DB_PATH` | Path to the SQLite cache database | `/tmp/mcp_gee_sweet.db` |
|
|
17
19
|
| `CACHE_TTL` | Cache time-to-live in seconds. Also adjustable at runtime via the `set_cache_ttl` tool, no restart needed | `1800` (30 min) |
|
|
18
20
|
| `CACHE_VALIDATE_MODIFIED_TIME` | Validate sheet/doc cache hits against Drive's `modifiedTime` before serving them, catching edits from other sessions without waiting out the TTL. Costs one extra Drive API call per cache lookup | `true` |
|
|
@@ -113,6 +115,39 @@ list_messages,get_message,list_threads,get_thread,list_labels,send_message,creat
|
|
|
113
115
|
|
|
114
116
|
See [Tools](tools.md) for the full list of tool names.
|
|
115
117
|
|
|
118
|
+
## Local file access
|
|
119
|
+
|
|
120
|
+
Some tools read or write files on the machine the server runs on: uploads, downloads, `sync_folder`, `create_doc_from_file`, Gmail attachments, local images in Markdown, and the `local_path` destination that large results can be written to. `LOCAL_FILE_ACCESS` decides which files they may use:
|
|
121
|
+
|
|
122
|
+
| Mode | What tools may use |
|
|
123
|
+
|---|---|
|
|
124
|
+
| `full` | Any local path the server process can open |
|
|
125
|
+
| `roots` | Only paths under a directory listed in `LOCAL_FILE_ROOTS`. Paths are resolved first, symlinks included, so a link inside a root that points outside it is refused |
|
|
126
|
+
| `off` | No local files |
|
|
127
|
+
|
|
128
|
+
**Default:** `full` under stdio, where the caller is the person running the server, and `off` under SSE and streamable HTTP, where it may not be. A network-facing server that should use local files needs `LOCAL_FILE_ACCESS` set explicitly.
|
|
129
|
+
|
|
130
|
+
**Always refused, in every mode:** the server's own credential, config, cache, and log files. That's `CREDENTIALS_PATH`, `TOKEN_PATH`, `SERVICE_ACCOUNT_PATH`, `GOOGLE_APPLICATION_CREDENTIALS`, gcloud's default ADC file, `src/mcp_gee_sweet/.env`, `CACHE_DB_PATH` (and its `-wal`/`-shm` files), `LOG_FILE`, and `ACCESS_LOG_FILE`. A file is matched by identity, so a hardlink or a differently cased path to one of them is refused too.
|
|
131
|
+
|
|
132
|
+
**In `off` mode** these tools aren't registered, since they can only work on local files: `upload_local_file`, `upload_local_folder`, `download_file`, `download_folder`, `sync_folder`, `import_csv_to_sheet`, `create_doc_from_file`, `update_doc_from_file`, and `insert_local_images`. Tools with an optional local path stay registered and return an error if one is used. That covers `local_path` on large-result tools, Gmail's `attachments[].local_path` (`content_base64` still works), and local image paths in `create_doc`/`write_doc_content` content, which fail per image while the doc is still written.
|
|
133
|
+
|
|
134
|
+
During a folder walk (`upload_local_folder`, `download_folder`, `sync_folder`), each file and subfolder is checked, not just the top directory. A refused entry is listed under `failed`, and the rest of the walk continues.
|
|
135
|
+
|
|
136
|
+
`server://auth-status` reports the active policy under `local_file_access`: its `mode`, whether it was set `explicit`ly, the `roots` in `roots` mode, and the `unregistered_tools` that `off` mode left out.
|
|
137
|
+
|
|
138
|
+
Docker example, with the host's `./data` directory as the only one tools may use:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
docker run --rm -p 8000:8000 \
|
|
142
|
+
-v "$PWD/data:/data" \
|
|
143
|
+
-e LOCAL_FILE_ACCESS=roots \
|
|
144
|
+
-e LOCAL_FILE_ROOTS=/data \
|
|
145
|
+
-e CREDENTIALS_CONFIG=<base64> \
|
|
146
|
+
mcp-gee-sweet
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
An invalid `LOCAL_FILE_ACCESS` value, `roots` mode without `LOCAL_FILE_ROOTS`, or a root that isn't an existing directory stops the server at startup, before it serves. `mcp-gee-sweet auth` still runs, so a root that isn't mounted yet doesn't block re-authorization. Design: [local-file-access-policy.md](design/local-file-access-policy.md).
|
|
150
|
+
|
|
116
151
|
## Caching
|
|
117
152
|
|
|
118
153
|
The server caches responses in a local SQLite database to reduce API calls and latency. Five namespaces are cached: sheet structure, sheet data, Drive folder listings, doc content, and calendar metadata.
|
{mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev377}/docs/design/local-file-access-policy.md
RENAMED
|
@@ -107,7 +107,7 @@ Don't interpolate `TOKEN_PATH`'s value or other secret-named values into log lin
|
|
|
107
107
|
|
|
108
108
|
### 4. Configuration validation
|
|
109
109
|
|
|
110
|
-
Done at import, alongside `ENABLED_TOOLS`. An invalid value raises `SystemExit` with a one-line message, so a misconfigured server never starts serving:
|
|
110
|
+
Done at import, alongside `ENABLED_TOOLS`. An invalid value raises `SystemExit` with a one-line message, so a misconfigured server never starts serving (as implemented, the exit moved to `main()`'s serving path; see [As implemented](#as-implemented)):
|
|
111
111
|
|
|
112
112
|
- `LOCAL_FILE_ACCESS` not in `full|roots|off` (case-insensitive).
|
|
113
113
|
- `roots` with `LOCAL_FILE_ROOTS` empty or unset.
|
|
@@ -219,6 +219,21 @@ Unit tests only for the policy itself; it has no Google API surface.
|
|
|
219
219
|
|
|
220
220
|
Live QA: the policy makes no Google API calls of its own, so live QA is limited to confirming the real launch paths. One stdio and one SSE subprocess run through `tests/integration/` (`decision-local-fs-test-harness.md`): under SSE with no setting, `sync_folder` is absent from `tools/list`; with `LOCAL_FILE_ACCESS=roots`, `upload_local_file` works inside the root and is refused outside it.
|
|
221
221
|
|
|
222
|
+
## As implemented
|
|
223
|
+
|
|
224
|
+
Where the implementation goes beyond the design above:
|
|
225
|
+
|
|
226
|
+
- **The `off` refusal says why when the mode was defaulted.** An explicit `off` reads as in §3. A defaulted one reads `local file access is disabled on this server: LOCAL_FILE_ACCESS is unset, which means off for the <transport> transport`, since `(LOCAL_FILE_ACCESS=off)` would name a setting the operator never made. The deny-list message ends `can't be read by a tool` or `can't be written by a tool`, depending on the operation.
|
|
227
|
+
- **An optional `local_path` is also checked at the tool's entry.** A live SSE run showed `get_sheet_data(local_path=...)` in `off` mode fetching first: a bad spreadsheet ID reported its 404 instead of the refusal, and a good one paid for a fetch it would then refuse to write. The ten tools with an optional `local_path` now call `check_write` before any API call. `write_capped_result_to_disk` keeps its own check as the backstop.
|
|
228
|
+
- **`sync_folder` checks a download's target even when nothing exists locally.** §6 checks each local entry; a Drive-only file is checked at the path it would be written to, so a Drive file named `token.json` can't plant a token in the directory holding `TOKEN_PATH`. A name on one side only that the direction never touches (local-only under `download`, Drive-only under `upload`) is planned as the usual skip without a check (`_sync_policy_refusal`), the way `_unsafe_name_step` treats an unsafe name.
|
|
229
|
+
- **The docstring note joins each local-only tool's first paragraph.** `gen_tool_docs.py` takes only the first paragraph, so a separate one wouldn't have reached `docs/tools.md`.
|
|
230
|
+
- **An invalid setting doesn't exit at import (PR #1039 QA round 1, finding 4).** §4's import-time `SystemExit` also blocked `mcp-gee-sweet auth` and `gen_tool_docs.py`, neither of which serves, and a `roots` entry that isn't mounted yet blocked re-authorization. `resolve_policy` now resolves an invalid setting to `off`, the fail-safe for registration, with the reason in `Policy.error`. It logs one `ERROR` at import, and `main()`'s serving path exits on it with the same one-line message (`exit_if_invalid`).
|
|
231
|
+
- **`sync_folder`'s verb follows the operation (finding 3).** `_sync_local_check` maps `(in_drive, in_local, direction)` to no check, `check_read`, `check_write`, or `check_read_write` for a both-sides entry under `bidirectional`, whose refusal says "can't be read or written". The sync root counts as a both-sides entry, and `_unsafe_name_step`'s skip rule uses the same helper.
|
|
232
|
+
- **A NUL byte is a refusal, not a crash (finding 1).** `os.path.realpath` raises a plain `ValueError` for one, which the per-item sites didn't catch; `_check` turns it into a `LocalFileAccessError`, so that item fails alone, as a missing file did before.
|
|
233
|
+
- **The case-insensitive compare applies only to a target that doesn't exist (finding 5).** An existing target matches by exact path or file identity, so on a case-sensitive filesystem a distinct `Token.json` beside `token.json` is allowed.
|
|
234
|
+
- **`many_checks()` for walks (finding 6).** A check cost about 75µs, most of it `realpath`'s `lstat` per component plus a `stat` of every deny-list entry. Inside `many_checks()`, which wraps the walks in `upload_local_folder`, `download_folder` and `sync_folder`, the deny-list is statted once and each parent directory resolved once, leaving one `lstat` per entry: about 13µs. The parent cache is keyed by the path's raw spelling and never normalizes lexically (QA round 2): `os.path.abspath` collapsed `<symlink>/..` before the symlink was resolved, so a walk rooted there checked one directory and wrote into another. A relative path bypasses the cache.
|
|
235
|
+
- **No CHANGELOG entry.** `CHANGELOG.md` stops at 0.8.1, so the breaking default for network transports goes in the PR body for the release notes instead.
|
|
236
|
+
|
|
222
237
|
## Known limitations
|
|
223
238
|
|
|
224
239
|
- **Check-then-use race.** A symlink swapped between the check and the `open` defeats `roots`. A remote caller can't create symlinks through any tool (downloads write regular files and `sync_folder` never creates links), so exploiting it needs a local actor with write access inside a root. Closing it fully would mean `openat`-style descriptor-relative I/O through every site, which is out of proportion here.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# mcp-gee-sweet
|
|
2
2
|
|
|
3
|
-
An MCP server that gives AI clients reliable, direct access to Google Workspace — Sheets, Drive, Docs, and
|
|
3
|
+
An MCP server that gives AI clients reliable, direct access to Google Workspace — Sheets, Drive, Docs, Calendar, and Gmail.
|
|
4
4
|
|
|
5
5
|
## What it does
|
|
6
6
|
|
|
@@ -8,24 +8,15 @@ An MCP server that gives AI clients reliable, direct access to Google Workspace
|
|
|
8
8
|
- **Manage Google Drive** — list, search, upload, download, move, copy, and sync files and folders
|
|
9
9
|
- **Work with Google Docs** — create documents, read content, write formatted content from HTML
|
|
10
10
|
- **Access Google Calendar** — list calendars and events, create and update events, find free slots
|
|
11
|
+
- **Use Gmail** — search and read messages and threads, send and reply, manage drafts and labels (OAuth only)
|
|
11
12
|
|
|
12
13
|
## Why it exists
|
|
13
14
|
|
|
14
|
-
This project started as a fork of [xing5/mcp-google-sheets](https://github.com/xing5/mcp-google-sheets) and has since diverged substantially — full Sheets read/write/formulas/structure/formatting/charts plus a raw `batch_update` passthrough for anything a named tool doesn't cover, an AST-based Docs pipeline (HTML and Markdown input, theming, structural table editing), Drive file/sharing/sync operations, and
|
|
15
|
+
This project started as a fork of [xing5/mcp-google-sheets](https://github.com/xing5/mcp-google-sheets) and has since diverged substantially — full Sheets read/write/formulas/structure/formatting/charts plus a raw `batch_update` passthrough for anything a named tool doesn't cover, an AST-based Docs pipeline (HTML and Markdown input, theming, structural table editing), Drive file/sharing/sync operations, Calendar, and Gmail. See [Project Fork](decisions/decision-fork.md) for the original fork history.
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
This project deliberately consolidates related operations into fewer, more parameterized tools, with `batch_update` as the escape hatch for whatever doesn't fit a named tool — see [Design Principles](design.md) for the reasoning ("tool count is a cost").
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|---|---|---|---|
|
|
20
|
-
| Sheets | 35 tools — read/write, formulas, structure, formatting, charts, raw `batch_update` passthrough | 6 tools (Developer Preview) | [taylorwilsdon/google_workspace_mcp](https://github.com/taylorwilsdon/google_workspace_mcp) (12), [a-bonus/google-docs-mcp](https://github.com/a-bonus/google-docs-mcp) (~44, incl. comments/conditional formatting/protected ranges we don't have yet) |
|
|
21
|
-
| Docs | 34 tools — HTML + Markdown input, Markdown export, AST-based theming (`apply_theme`, named styles), structural table editing | 2 tools (Developer Preview) | taylorwilsdon (18), [piotr-agier/google-drive-mcp](https://github.com/piotr-agier/google-drive-mcp) (~17, incl. footnotes/multi-tab we don't have) |
|
|
22
|
-
| Drive | 38 tools | 8 tools | Several — piotr-agier and others cover a similar range |
|
|
23
|
-
| Calendar | 17 tools | 9 tools | Several |
|
|
24
|
-
| Release channel | Stable PyPI releases behind a QA regression gate | Developer Preview | Varies by project |
|
|
25
|
-
|
|
26
|
-
This project deliberately keeps its named-tool surface smaller than some alternatives — a-bonus/google-docs-mcp, for example, registers more raw tools by giving nearly every Sheets/Docs operation its own dedicated tool. Here, related operations consolidate into fewer, more parameterized tools, with `batch_update` as the escape hatch for whatever doesn't fit a named tool — see [Design Principles](design.md) for the reasoning ("tool count is a cost"). Neither approach is strictly better; it's a different tradeoff, and it's why raw tool counts alone don't tell the whole story in the table above.
|
|
27
|
-
|
|
28
|
-
Known gaps found while researching this comparison (comments, conditional formatting, protected ranges, multi-tab Docs, and more) are tracked as candidates in the [roadmap](roadmap.md), not silently ignored.
|
|
19
|
+
Known gaps (full comments CRUD, conditional formatting, protected ranges, multi-tab Docs, and more) are tracked as candidates in the [roadmap](roadmap.md), not silently ignored.
|
|
29
20
|
|
|
30
21
|
## Key design decisions
|
|
31
22
|
|
|
@@ -289,3 +289,44 @@ A rename means the destination only ever holds the old content or the complete n
|
|
|
289
289
|
|
|
290
290
|
**Workaround:** Re-apply ACLs, tags, or ownership after downloading, if they matter. Delete a
|
|
291
291
|
leftover `.gee-sweet-partial-*` file once no download into that folder is running.
|
|
292
|
+
|
|
293
|
+
## Local file access
|
|
294
|
+
|
|
295
|
+
### `LOCAL_FILE_ACCESS=roots` checks a path before it's used, not as it's used
|
|
296
|
+
|
|
297
|
+
**What:** A path is resolved, symlinks included, and checked against `LOCAL_FILE_ROOTS` just
|
|
298
|
+
before the tool opens it. If a symlink inside a root is swapped to point outside it between
|
|
299
|
+
that check and the open, the tool follows the new link.
|
|
300
|
+
|
|
301
|
+
**Why:** Closing the gap fully means descriptor-relative I/O (`openat`) through every local
|
|
302
|
+
read and write, which is out of proportion here. No tool can create a symlink (downloads write
|
|
303
|
+
regular files and `sync_folder` never creates links), so a remote caller can't stage the swap.
|
|
304
|
+
It takes a local user with write access inside a root.
|
|
305
|
+
|
|
306
|
+
**Workaround:** Don't give untrusted local users write access to a directory listed in
|
|
307
|
+
`LOCAL_FILE_ROOTS`.
|
|
308
|
+
|
|
309
|
+
### `roots` mode can refuse a path spelled in a different case on macOS
|
|
310
|
+
|
|
311
|
+
**What:** On a case-insensitive filesystem (macOS's default), a path whose directories are
|
|
312
|
+
spelled with a different case than the configured root, such as `/Data/x.csv` under the root
|
|
313
|
+
`/data`, can be refused even though it names a file inside the root.
|
|
314
|
+
|
|
315
|
+
**Why:** Containment is a test on the resolved path's text, and resolving keeps the caller's
|
|
316
|
+
spelling of existing directories. A case mismatch can therefore refuse a path inside a root,
|
|
317
|
+
but never allows one outside it. The always-refused credential files are matched by file
|
|
318
|
+
identity instead, so a case variant of one of them is still refused.
|
|
319
|
+
|
|
320
|
+
**Workaround:** Spell paths with the same case as the `LOCAL_FILE_ROOTS` entry.
|
|
321
|
+
|
|
322
|
+
### Only the server's own files are protected
|
|
323
|
+
|
|
324
|
+
**What:** In every mode, tools can't read or write the server's own credential, config, cache,
|
|
325
|
+
and log files. Any other secret is readable in `full` mode, or in `roots` mode when it's
|
|
326
|
+
inside a root.
|
|
327
|
+
|
|
328
|
+
**Why:** The server can't know which other files are sensitive. `roots` mode is how an
|
|
329
|
+
operator limits tools to directories meant for them.
|
|
330
|
+
|
|
331
|
+
**Workaround:** Use `LOCAL_FILE_ACCESS=roots` with roots that hold only files meant for the
|
|
332
|
+
server.
|
|
@@ -1397,3 +1397,171 @@ uvicorn 0.47.0, mcp 2.3.0, run through `uv run` (exit code 143 is uv forwarding
|
|
|
1397
1397
|
|
|
1398
1398
|
**Result (2026-10-10, PR #975 round 2 @ f5987b8, Sky) ✅ PASS**
|
|
1399
1399
|
Same driver as round 1 (uvicorn 0.47.0, mcp 2.3.0, `uv run`). Steps 1–3 (three plain runs): `initialize` 200, `notifications/initialized` 202, `GET /mcp` 200. Each GET read to a clean EOF (0 bytes), and each log has the `#917` close line and none of the three error strings. The servers exited 0.60–0.61s after SIGTERM, with no listener left. Step 3 `--reload` run: `Started reloader process ... using StatReload`, the same `#917` close line, a clean EOF, and exit 0.76s (uvicorn's reloader exits 0). Extra check: touching `src/mcp_gee_sweet/sse_shutdown.py` under `--reload` logged `StatReload detected changes ... Reloading...` and started a new server process, so the reload works and isn't only a banner. Step 4: SDK session, 139 tools, no close line and no ASGI error, exit 0.23s. Step 5: `mcp-gee-sweet: unknown --transport 'websocket' (use stdio, sse, or streamable-http)`, exit 1, no traceback. Extra check: `--reload` with stdio logs `WARNING ... --reload applies only to the sse and streamable-http transports; ignoring it`. TC-I47 recheck: steps 1–2 once (`#868` drop line, clean EOF, exit 0.60s, port free).
|
|
1400
|
+
|
|
1401
|
+
---
|
|
1402
|
+
|
|
1403
|
+
### TC-I56: over SSE with `LOCAL_FILE_ACCESS` unset, local-only tools aren't registered and an optional `local_path` is refused before any fetch (issue #796) ⚠️ requires-oauth ⚠️ local-filesystem
|
|
1404
|
+
|
|
1405
|
+
**Background:** #796's policy defaults to `off` under any network transport, because a network-facing server's caller isn't necessarily its operator. In `off` mode the nine tools that only work on local files aren't registered. Tools with an optional local path stay registered and refuse it at entry, before any Google API call, so a refused destination costs no fetch and never reports an unrelated API error first. Design: `docs/design/local-file-access-policy.md`.
|
|
1406
|
+
|
|
1407
|
+
**Setup:** a checkout of this branch with working OAuth credentials in `src/mcp_gee_sweet/.env` (or `CREDENTIALS_PATH`/`TOKEN_PATH`). A spreadsheet ID the account can read (`QA_SPREADSHEET_ID`). Make sure `LOCAL_FILE_ACCESS` and `LOCAL_FILE_ROOTS` are unset in the environment *and* not set in `.env`. An empty scratch directory `<scratch>`.
|
|
1408
|
+
|
|
1409
|
+
**Action**
|
|
1410
|
+
Start `uv run mcp-gee-sweet --transport sse` with `HOST=127.0.0.1`, `PORT=<free port>`. With the `mcp` SDK's `sse_client` + `ClientSession`:
|
|
1411
|
+
1. `initialize`, then `list_tools`
|
|
1412
|
+
2. `read_resource("server://auth-status")`
|
|
1413
|
+
3. `call_tool("get_sheet_data", {"spreadsheet_id": QA_SPREADSHEET_ID, "sheet": "Sheet1", "local_path": "<scratch>/out.json"})`
|
|
1414
|
+
4. `call_tool("get_sheet_data", {"spreadsheet_id": "not-a-real-id", "sheet": "Sheet1", "local_path": "<scratch>/out.json"})`
|
|
1415
|
+
5. `call_tool("create_doc", {"title": "TC-I56 image probe", "content": "Text\n\n", "content_format": "markdown"})` after writing any small PNG to `<scratch>/x.png`
|
|
1416
|
+
|
|
1417
|
+
**Checks**
|
|
1418
|
+
- 1: none of `upload_local_file`, `upload_local_folder`, `download_file`, `download_folder`, `sync_folder`, `import_csv_to_sheet`, `create_doc_from_file`, `update_doc_from_file`, `insert_local_images` is listed. `get_sheet_data`, `send_message`, `create_doc` are.
|
|
1419
|
+
- 2: `local_file_access` is `{"mode": "off", "explicit": false, "roots": [], "unregistered_tools": [<the nine names above, sorted>]}`
|
|
1420
|
+
- 3 and 4: both return an error whose text is exactly `local file access is disabled on this server: LOCAL_FILE_ACCESS is unset, which means off for the sse transport`. Step 4 does **not** report an HttpError 404, which proves the refusal comes before the fetch
|
|
1421
|
+
- 3, 4: `<scratch>` is still empty
|
|
1422
|
+
- 5: the doc is created with its text. The result's image outcome for `<scratch>/x.png` carries the same refusal text, and no file was uploaded to Drive for it
|
|
1423
|
+
|
|
1424
|
+
**Cleanup:** `delete_file` the TC-I56 doc. SIGTERM the server.
|
|
1425
|
+
|
|
1426
|
+
**Result (2026-10-15, PR #1039 round 1 @ fb49e7d, Sky) ✅ PASS**
|
|
1427
|
+
mcp 2.3.0, uvicorn 0.47.0, `uv run mcp-gee-sweet --transport sse`, SDK `sse_client`, OAuth, `LOCAL_FILE_ACCESS`/`LOCAL_FILE_ROOTS` unset in the environment and both `.env` files. Step 1: none of the nine local-only tools listed; `get_sheet_data`, `send_message`, `create_doc` listed. Step 2: `{"mode": "off", "explicit": false, "roots": [], "unregistered_tools": [<the nine, sorted>]}`. Steps 3 and 4: both `is_error` with exactly `local file access is disabled on this server: LOCAL_FILE_ACCESS is unset, which means off for the sse transport`; step 4 reported no 404. `<scratch>` held only `x.png` afterwards. Step 5: doc created with its text, `images[0].error` the same refusal text, and no PNG appeared in the target folder. Doc deleted.
|
|
1428
|
+
|
|
1429
|
+
**Result (2026-10-15, PR #1039 round 2 @ 6ba5297, Sky) ✅ PASS**
|
|
1430
|
+
Same driver as round 1, fresh subprocess on this head. Steps 1–5 matched round 1 exactly: no local-only tools listed, `{"mode": "off", "explicit": false, ...}` with the nine sorted, both `get_sheet_data` calls refused with the defaulted-off text (no 404), `<scratch>` held only `x.png`, and the doc was created with the image's per-item refusal. Doc deleted.
|
|
1431
|
+
|
|
1432
|
+
**Result (2026-10-16, PR #1039 round 3 @ b8d0ced, Sky) ✅ PASS**
|
|
1433
|
+
Same driver, fresh subprocess on this head. Steps 1–5 matched round 2: no local-only tools listed, `{"mode": "off", "explicit": false, ...}` with the nine sorted, both `get_sheet_data` calls refused with the defaulted-off text (no 404), `<scratch>` held only `x.png`, and the doc was created with the image's per-item refusal. Scratch folder trashed.
|
|
1434
|
+
|
|
1435
|
+
---
|
|
1436
|
+
|
|
1437
|
+
### TC-I57: `LOCAL_FILE_ACCESS=roots` allows paths inside a root and refuses the rest, symlinks included (issue #796) ⚠️ requires-oauth ⚠️ local-filesystem
|
|
1438
|
+
|
|
1439
|
+
**Background:** In `roots` mode a path is resolved, symlinks included, and must land under a `LOCAL_FILE_ROOTS` directory. The refusal lists the allowed directories so a caller can choose a valid path. During a folder walk each entry is checked, so a symlink inside a root that points outside it is refused while the rest of the walk continues.
|
|
1440
|
+
|
|
1441
|
+
**Setup:** working OAuth credentials, a Drive scratch folder (`QA_SCRATCH_FOLDER_ID`). Local directories `<root>` and `<outside>` (siblings, not nested). Files: `<root>/ok.txt` (`fine`), `<outside>/secret.txt` (`secret`), and a symlink `<root>/escape.txt` → `<outside>/secret.txt`.
|
|
1442
|
+
|
|
1443
|
+
**Action**
|
|
1444
|
+
Start `uv run mcp-gee-sweet --transport sse` with `HOST=127.0.0.1`, `PORT=<free port>`, `LOCAL_FILE_ACCESS=roots`, `LOCAL_FILE_ROOTS=<root>`. With the SDK client:
|
|
1445
|
+
1. `list_tools`, then `read_resource("server://auth-status")`
|
|
1446
|
+
2. `call_tool("upload_local_file", {"local_path": "<root>/ok.txt", "parent_folder_id": QA_SCRATCH_FOLDER_ID, "skip_if_exists": false})`
|
|
1447
|
+
3. `call_tool("upload_local_file", {"local_path": "<outside>/secret.txt", "parent_folder_id": QA_SCRATCH_FOLDER_ID})`
|
|
1448
|
+
4. `call_tool("upload_local_file", {"local_path": "<root>/escape.txt", "parent_folder_id": QA_SCRATCH_FOLDER_ID})`
|
|
1449
|
+
5. `call_tool("upload_local_file", {"local_path": "<root>/../<outside basename>/secret.txt", "parent_folder_id": QA_SCRATCH_FOLDER_ID})`
|
|
1450
|
+
6. `call_tool("sync_folder", {"folder_id": QA_SCRATCH_FOLDER_ID, "local_path": "<root>", "direction": "upload", "dry_run": true})`
|
|
1451
|
+
7. `call_tool("upload_local_folder", {"local_path": "<root>", "parent_folder_id": QA_SCRATCH_FOLDER_ID, "skip_if_exists": false})`
|
|
1452
|
+
|
|
1453
|
+
**Checks**
|
|
1454
|
+
- 1: all nine local-only tools are listed. `local_file_access` is `{"mode": "roots", "explicit": true, "roots": ["<root>"], "unregistered_tools": []}`
|
|
1455
|
+
- 2: succeeds, returning a `fileId`
|
|
1456
|
+
- 3, 4, 5: each fails with `<the path as passed> is outside this server's LOCAL_FILE_ROOTS. Allowed directories: <root>`, and no file is created in `QA_SCRATCH_FOLDER_ID` (check with `list_files`)
|
|
1457
|
+
- 6: `actions` has `escape.txt` with `action: "local_read_fail"` and a reason containing `outside this server's LOCAL_FILE_ROOTS`. `ok.txt` is planned normally
|
|
1458
|
+
- 7: `uploaded` is `["ok.txt"]` and `failed` has one entry, `escape.txt`, with the same refusal text. `secret` never appears in Drive
|
|
1459
|
+
|
|
1460
|
+
**Cleanup:** `delete_file` every file the case created in `QA_SCRATCH_FOLDER_ID`. SIGTERM the server. Remove `<root>` and `<outside>`.
|
|
1461
|
+
|
|
1462
|
+
**Result (2026-10-15, PR #1039 round 1 @ fb49e7d, Sky) ✅ PASS**
|
|
1463
|
+
Same driver as TC-I56, with `LOCAL_FILE_ACCESS=roots`, `LOCAL_FILE_ROOTS=<root>`. Step 1: all nine local-only tools listed; `{"mode": "roots", "explicit": true, "roots": ["<root>"], "unregistered_tools": []}`. Step 2: `fileId` returned. Steps 3, 4 (symlink) and 5 (`..` traversal): each `<path as passed> is outside this server's LOCAL_FILE_ROOTS. Allowed directories: <root>`. Step 6: `escape.txt` → `local_read_fail` with that reason plus `; not synced`; `ok.txt` → `skip` / `in sync`. Step 7: `uploaded: ["ok.txt"]`, `failed: [{escape.txt, <same refusal>}]`. `list_files` on the scratch folder never showed `secret.txt` or `escape.txt`. Note: a first harness run crashed after step 2 and left extra `ok.txt` copies, which made step 6 plan `collision`; the copies were deleted and the case rerun clean, as recorded here.
|
|
1464
|
+
|
|
1465
|
+
**Result (2026-10-15, PR #1039 round 2 @ 6ba5297, Sky) ✅ PASS**
|
|
1466
|
+
Fresh subprocess on this head. Step 1: nine listed, roots status as expected. Step 2: `fileId`. Steps 3–5: the same `outside this server's LOCAL_FILE_ROOTS` refusal for each. Step 6: `escape.txt` → `local_read_fail`, `ok.txt` → `skip` / `in sync`. Step 7: `uploaded: ["ok.txt"]`, `failed: [escape.txt]`. Neither `secret.txt` nor `escape.txt` reached Drive. Scratch folder deleted.
|
|
1467
|
+
|
|
1468
|
+
**Result (2026-10-16, PR #1039 round 3 @ b8d0ced, Sky) ✅ PASS**
|
|
1469
|
+
Fresh subprocess on this head, in its own empty Drive folder. Step 1: nine listed, `{"mode": "roots", "explicit": true, "roots": ["<root>"], ...}`. Step 2: `fileId`. Steps 3–5: the `outside this server's LOCAL_FILE_ROOTS` refusal for each. Step 6: `escape.txt` → `local_read_fail`, `ok.txt` → `skip`. Step 7: `uploaded: ["ok.txt"]`, `failed: [escape.txt]`. A first run in a folder that already held a control `ok.txt` planned `collision` at step 6 (fixture, not product); this clean rerun is the one recorded. Scratch folder trashed.
|
|
1470
|
+
|
|
1471
|
+
---
|
|
1472
|
+
|
|
1473
|
+
### TC-I58: the server's own credential files are refused in `full` mode too (issue #796) ⚠️ requires-oauth ⚠️ local-filesystem
|
|
1474
|
+
|
|
1475
|
+
**Background:** In every mode, including stdio's default `full`, tools can't read or write the server's own `CREDENTIALS_PATH`, `TOKEN_PATH`, `SERVICE_ACCOUNT_PATH`, `.env`, ADC key files, cache DB, or log files. Files are matched by identity, so a hardlink or symlink to the token is refused too, and a write target that doesn't exist yet is still refused, so a download can't plant a token.
|
|
1476
|
+
|
|
1477
|
+
**Setup:** a server whose `TOKEN_PATH` is a real OAuth token (a stdio server launched from this branch, e.g. via an MCP client config pointing at `uv run mcp-gee-sweet`). A Drive scratch folder holding a small text file named `token.json` (`QA_TOKEN_NAMED_FILE_ID`). A hardlink `<scratch>/innocent.json` to `TOKEN_PATH` (`ln <TOKEN_PATH> <scratch>/innocent.json`). For step 6: a subdirectory `<directory containing TOKEN_PATH>/sub`, a symlink `<scratch>/link` → that subdirectory (`ln -s <directory containing TOKEN_PATH>/sub <scratch>/link`), and a Drive subfolder of `QA_SCRATCH_FOLDER_ID` holding one copy of `QA_TOKEN_NAMED_FILE_ID` named exactly `TOKEN_PATH`'s basename (`copy_file`, then `move_file`).
|
|
1478
|
+
|
|
1479
|
+
**Action**
|
|
1480
|
+
1. `upload_local_file(local_path=<TOKEN_PATH>, parent_folder_id=QA_SCRATCH_FOLDER_ID)`
|
|
1481
|
+
2. `upload_local_file(local_path="<scratch>/innocent.json", parent_folder_id=QA_SCRATCH_FOLDER_ID)`
|
|
1482
|
+
3. `create_draft(to=<QA mailbox>, subject="TC-I58", body="x", attachments=[{"local_path": <TOKEN_PATH>}])`
|
|
1483
|
+
4. `download_file(file_id=QA_TOKEN_NAMED_FILE_ID, local_path=<directory containing TOKEN_PATH>)`
|
|
1484
|
+
5. `read_resource("server://auth-status")`
|
|
1485
|
+
6. `download_folder(folder_id=<the step-6 Drive subfolder>, local_path="<scratch>/link/..", skip_if_exists=false)`. The kernel resolves `link` before `..`, so this writes into `<directory containing TOKEN_PATH>`, not `<scratch>`
|
|
1486
|
+
|
|
1487
|
+
**Checks**
|
|
1488
|
+
- 1–4: each fails with `<path> is one of this server's own credential, config, cache, or log files and can't be read by a tool` (`written` for step 4)
|
|
1489
|
+
- 1, 2: no file is created in `QA_SCRATCH_FOLDER_ID`. 3: no draft is created (check `list_messages` with `label_ids=["DRAFT"]`). 4: `TOKEN_PATH`'s content and mtime are unchanged
|
|
1490
|
+
- 5: `local_file_access` is `{"mode": "full", "explicit": false, "roots": [], "unregistered_tools": []}`
|
|
1491
|
+
- 6: `downloaded` is empty and `failed` holds the one file, with the `... can't be written by a tool` refusal naming the path as passed (`<scratch>/link/../<TOKEN_PATH basename>`), which the kernel resolves into `<directory containing TOKEN_PATH>`. `TOKEN_PATH`'s content and mtime are unchanged (PR #1039 QA round 2)
|
|
1492
|
+
|
|
1493
|
+
**Cleanup:** `rm <scratch>/innocent.json` (the hardlink, not the token) and `rm <scratch>/link` (the symlink); `rmdir <directory containing TOKEN_PATH>/sub`. Trash the step-6 Drive subfolder. Leave `QA_TOKEN_NAMED_FILE_ID` for re-runs.
|
|
1494
|
+
|
|
1495
|
+
**Result (2026-10-15, PR #1039 round 1 @ fb49e7d, Sky) ⚠️ PARTIAL: steps 1, 2, 4 run against a deny-listed log file, not `TOKEN_PATH`; step 3 pending**
|
|
1496
|
+
This role's stdio `mcp-gee-sweet-sky` server (defaulted `full`). Claude Code's auto-mode classifier refused creating a hardlink to the real OAuth token, so the identity check was exercised with `LOG_FILE` (`/tmp/mcp-gee-sweet.log`), which goes through the same `_is_denied` path. Step 1 (`upload_local_file` on `LOG_FILE`): `... is one of this server's own credential, config, cache, or log files and can't be read by a tool`. Step 2 (a hardlink to `LOG_FILE` in a scratch dir, same inode confirmed with `ls -li`): the same refusal, naming the hardlink path. Step 4 (`download_file` of a Drive file named `mcp-gee-sweet.log` to `/tmp/`): `/tmp/mcp-gee-sweet.log is one of ... and can't be written by a tool`. Steps 1–2 added nothing to the scratch folder. Step 3 **pending**: the classifier also refused `create_draft` with an attachment, and this slot's token lacks the Gmail scope anyway. Step 5: `{"mode": "full", "explicit": false, "roots": [], "unregistered_tools": []}`. Not yet run: steps 1, 2 and 4 against the real `TOKEN_PATH`.
|
|
1497
|
+
|
|
1498
|
+
**Result (2026-10-15, PR #1039 round 2 @ 6ba5297, Sky) ⚠️ PARTIAL: steps 1, 2, 4 against `LOG_FILE`; step 3 pending; a regression found outside the case's steps**
|
|
1499
|
+
Fresh SSE subprocess on this head with an explicit `LOCAL_FILE_ACCESS=full` and `LOG_FILE=<denied>/log.txt` (round 1's substitution, for the same reason). Step 1: `<denied>/log.txt ... can't be read by a tool`. Step 2 (hardlink `<scratch>/innocent-log.txt`): the same refusal. Step 4 (as `download_folder(local_path=<denied>)` of a Drive folder holding `log.txt`): `failed: [{log.txt, "... can't be written by a tool"}]`. Step 5: `{"mode": "full", "explicit": true, ...}`, as expected for the explicit setting. Step 3 still pending. **Outside the steps:** `download_folder(local_path="<scratch>/link/..", skip_if_exists=false)`, where `<scratch>/link` → `<denied>/sub`, *downloaded* `log.txt` and overwrote the deny-listed `LOG_FILE` with the Drive file's content. `many_checks()`' `_realpath` collapses `..` with `abspath` before resolving the symlink, so the check sees `<scratch>/log.txt`, while the write's `<scratch>/link/../log.txt` lands in `<denied>`. At round 1's head the plain `realpath` refused it. Sent back on the PR.
|
|
1500
|
+
|
|
1501
|
+
**Result (2026-10-16, PR #1039 round 3 @ b8d0ced, Sky) ⚠️ PARTIAL: steps 1, 2, 4, 6 against `LOG_FILE`; step 3 pending**
|
|
1502
|
+
Fresh SSE subprocess on this head, explicit `LOCAL_FILE_ACCESS=full`, `LOG_FILE=<denied>/log.txt` (the same substitution as rounds 1–2). Steps 1, 2, 4: the same refusals as round 2. Step 5: `{"mode": "full", "explicit": true, ...}`. Step 6, with `<scratch>/link` → `<denied>/sub` and a Drive folder holding `log.txt` plus the control files `a.txt` and `ok.txt`: `download_folder(local_path="<scratch>/link/..", skip_if_exists=false)` put `log.txt` in `failed` with `<scratch>/link/../log.txt is one of this server's own credential, config, cache, or log files and can't be written by a tool`. The same probe through `sync_folder(direction="download")` failed `log.txt` with the same refusal plus `; not synced`. `LOG_FILE`'s head was unchanged after both. The control files landed in `<denied>`, not `<scratch>`, so the walk really did go through the symlink. Step 3 still pending (the auto-mode classifier and the slot token's missing Gmail scope, as in round 1).
|
|
1503
|
+
|
|
1504
|
+
---
|
|
1505
|
+
|
|
1506
|
+
### TC-I59: an invalid local-file setting stops the server at startup with a one-line message (issue #796) ⚠️ local-filesystem
|
|
1507
|
+
|
|
1508
|
+
**Background:** `LOCAL_FILE_ACCESS`/`LOCAL_FILE_ROOTS` are validated at import, but an invalid setting only resolves to `off` there, with its reason recorded. `main()` exits on it before serving, so a misconfigured server never serves, while `mcp-gee-sweet auth` and `scripts/gen_tool_docs.py` still run (PR #1039 QA round 1, finding 4). A `LOCAL_FILE_ROOTS` set outside `roots` mode only warns. With `ENABLED_TOOLS` naming a local-only tool that `off` mode drops, the server warns which ones are missing and why.
|
|
1509
|
+
|
|
1510
|
+
**Setup:** none beyond a checkout of this branch. No Google credentials are needed.
|
|
1511
|
+
|
|
1512
|
+
**Action**
|
|
1513
|
+
Run each with `uv run mcp-gee-sweet --transport sse` and `HOST=127.0.0.1`, `PORT=<free port>`, stderr captured. Stop a server that starts with SIGTERM after 3 seconds.
|
|
1514
|
+
1. `LOCAL_FILE_ACCESS=everything`
|
|
1515
|
+
2. `LOCAL_FILE_ACCESS=roots` with `LOCAL_FILE_ROOTS` unset
|
|
1516
|
+
3. `LOCAL_FILE_ACCESS=roots`, `LOCAL_FILE_ROOTS=/no/such/dir`
|
|
1517
|
+
4. `LOCAL_FILE_ACCESS=full`, `LOCAL_FILE_ROOTS=/tmp`
|
|
1518
|
+
5. `LOCAL_FILE_ACCESS=off`, `ENABLED_TOOLS=sync_folder,get_sheet_data`
|
|
1519
|
+
6. `LOCAL_FILE_ACCESS=roots`, `LOCAL_FILE_ROOTS=/no/such/dir`, running `uv run mcp-gee-sweet auth --help` instead of the server
|
|
1520
|
+
7. `LOCAL_FILE_ACCESS=everything`, running `uv run python scripts/gen_tool_docs.py` instead of the server
|
|
1521
|
+
|
|
1522
|
+
**Checks**
|
|
1523
|
+
- 1: exits non-zero with `mcp-gee-sweet: LOCAL_FILE_ACCESS='everything' isn't valid (use full, roots, or off)` and no traceback. Steps 1–3 also log one `ERROR mcp_gee_sweet.local_files Local file access is off: <the same reason>` line first
|
|
1524
|
+
- 2: exits non-zero with `mcp-gee-sweet: LOCAL_FILE_ACCESS=roots needs LOCAL_FILE_ROOTS, a ':'-separated list of directories`
|
|
1525
|
+
- 3: exits non-zero with `mcp-gee-sweet: LOCAL_FILE_ROOTS entry '/no/such/dir' isn't an existing directory`
|
|
1526
|
+
- 4: starts; stderr has `LOCAL_FILE_ROOTS is set but ignored: it applies only when LOCAL_FILE_ACCESS=roots`
|
|
1527
|
+
- 5: starts; stderr has `LOCAL_FILE_ACCESS=off: not registering local-only tools named in ENABLED_TOOLS: sync_folder`, and an SDK `list_tools` returns only `get_sheet_data`
|
|
1528
|
+
- 6: exits 0 and prints `usage: mcp-gee-sweet auth`, so a root that isn't mounted yet doesn't block re-authorization
|
|
1529
|
+
- 7: exits 0 with `gen_tool_docs: docs already up to date` (on a clean checkout), and `git status` shows no change to `docs/tools.md`: the generated docs list every tool whatever the policy
|
|
1530
|
+
|
|
1531
|
+
**Cleanup:** SIGKILL any server still running.
|
|
1532
|
+
|
|
1533
|
+
**Result (2026-10-15, PR #1039 round 1 @ fb49e7d, Sky) ✅ PASS**
|
|
1534
|
+
`uv run mcp-gee-sweet --transport sse`, stdout and stderr captured. Steps 1–3: exit 1 with exactly the three expected one-line messages and no traceback. Step 4: started; `WARNING mcp_gee_sweet.local_files LOCAL_FILE_ROOTS is set but ignored: it applies only when LOCAL_FILE_ACCESS=roots`. Step 5: started; `WARNING mcp_gee_sweet.server LOCAL_FILE_ACCESS=off: not registering local-only tools named in ENABLED_TOOLS: sync_folder`, and SDK `list_tools` returned `["get_sheet_data"]`. Exit 143 for the started servers is uv forwarding SIGTERM.
|
|
1535
|
+
|
|
1536
|
+
**Result (2026-10-15, PR #1039 round 2 @ 6ba5297, Sky) ✅ PASS**
|
|
1537
|
+
Steps 1–3: exit 1 with the three one-line messages, no traceback, each preceded by `ERROR mcp_gee_sweet.local_files Local file access is off: <the same reason>`. Step 4: started, with the ignored-roots warning. Step 5: started, with the `ENABLED_TOOLS` warning, and `list_tools` returned `["get_sheet_data"]`. Step 6: exit 0, `usage: mcp-gee-sweet auth [-h] [--no-browser] [--include-tools INCLUDE_TOOLS]`. Step 7: exit 0, the `ERROR ... isn't valid` line, then `gen_tool_docs: docs already up to date`; `git status` clean.
|
|
1538
|
+
|
|
1539
|
+
**Result (2026-10-16, PR #1039 round 3 @ b8d0ced, Sky) ✅ PASS**
|
|
1540
|
+
Steps 1–3: exit 1 with the three one-line messages, each preceded by the `ERROR ... Local file access is off: <reason>` line, no traceback. Step 4: started, with the ignored-roots warning. Step 5: started, with the `ENABLED_TOOLS` warning; `list_tools` returned `["get_sheet_data"]`. Step 6: exit 0, `usage: mcp-gee-sweet auth [-h] [--no-browser] [--include-tools INCLUDE_TOOLS]`. Step 7: `gen_tool_docs: docs already up to date`, and `git status` showed no change outside this file.
|
|
1541
|
+
|
|
1542
|
+
---
|
|
1543
|
+
|
|
1544
|
+
### TC-I60: an HTTP request reaching a defaulted `full` policy is refused (issue #796) ⚠️ requires-oauth ⚠️ local-filesystem
|
|
1545
|
+
|
|
1546
|
+
**Background:** The transport default is read from `--transport` on the command line. A server served some other way, such as `uvicorn mcp_gee_sweet.server:app` directly, has no `--transport`, so it resolves to stdio's default `full` while actually serving SSE. `_timed` marks every call that arrives over HTTP, and the policy then refuses all local access unless `LOCAL_FILE_ACCESS` was set explicitly, logging one warning. The local-only tools are registered in that launch, but every call they make is refused.
|
|
1547
|
+
|
|
1548
|
+
**Setup:** working OAuth credentials (a call needs Google services to reach the tool body). A scratch file `<scratch>/a.txt`. `LOCAL_FILE_ACCESS` unset in the environment and in `.env`.
|
|
1549
|
+
|
|
1550
|
+
**Action**
|
|
1551
|
+
1. Start `uv run uvicorn mcp_gee_sweet.server:app --host 127.0.0.1 --port <free port>`. With the SDK's `sse_client`: `list_tools`, then `call_tool("upload_local_file", {"local_path": "<scratch>/a.txt", "parent_folder_id": QA_SCRATCH_FOLDER_ID})` twice. SIGTERM the server
|
|
1552
|
+
2. Same with `LOCAL_FILE_ACCESS=full` set, calling `upload_local_file` once
|
|
1553
|
+
|
|
1554
|
+
**Checks**
|
|
1555
|
+
- 1: `upload_local_file` is listed. Both calls fail with `local file access is disabled for HTTP requests unless LOCAL_FILE_ACCESS is set explicitly`, nothing is uploaded, and the server log has exactly one `Refusing local file access for an HTTP request` warning
|
|
1556
|
+
- 2: the upload succeeds (an explicit `full` over HTTP is the operator's choice)
|
|
1557
|
+
|
|
1558
|
+
**Cleanup:** `delete_file` the step-2 upload. SIGTERM the server.
|
|
1559
|
+
|
|
1560
|
+
**Result (2026-10-15, PR #1039 round 1 @ fb49e7d, Sky) ✅ PASS**
|
|
1561
|
+
`uv run uvicorn mcp_gee_sweet.server:app` (uvicorn 0.47.0), OAuth, SDK `sse_client`. Step 1: `upload_local_file` listed; both calls returned `local file access is disabled for HTTP requests unless LOCAL_FILE_ACCESS is set explicitly`; the run's stderr has exactly one `Refusing local file access for an HTTP request` warning; nothing uploaded. Step 2 (`LOCAL_FILE_ACCESS=full`): upload succeeded, no warning. Upload deleted.
|
|
1562
|
+
|
|
1563
|
+
**Result (2026-10-15, PR #1039 round 2 @ 6ba5297, Sky) ✅ PASS**
|
|
1564
|
+
Same driver, fresh subprocesses on this head. Step 1: listed, both calls refused, exactly one tripwire warning in the run's stderr. Step 2: upload succeeded, no warning. Scratch folder deleted.
|
|
1565
|
+
|
|
1566
|
+
**Result (2026-10-16, PR #1039 round 3 @ b8d0ced, Sky) ✅ PASS**
|
|
1567
|
+
Same driver, fresh subprocesses on this head. Step 1: `upload_local_file` listed, both calls refused with `local file access is disabled for HTTP requests unless LOCAL_FILE_ACCESS is set explicitly`, and exactly one `Refusing local file access for an HTTP request` warning (the same record appears once in `LOG_FILE` and once in stderr). Step 2: upload succeeded, no warning. Scratch folder trashed.
|
|
@@ -255,7 +255,7 @@ Same shape as v0.8.1 — stabilize on defects that surfaced since v0.9.0 shipped
|
|
|
255
255
|
- [x] `export_revision`'s temporary Doc exposes an old revision's content to the default folder's audience (a whole Shared Drive) — decided 2026-10-11: under OAuth create it in My Drive root; a service account keeps the default folder, and that remaining exposure goes in `docs/known-limitations.md`. Found in PR #988 — lane B, after #990 (PR #1006) ([#989](https://github.com/khuisman/mcp-gee-sweet/issues/989))
|
|
256
256
|
- [x] Quota-exceeded error tells a user identity to switch to OAuth: `_quota_error_detail` renders `_SA_QUOTA_ERROR` for every identity. Found in PR #1006's QA — v0.9.2 under condition (a): #1006 (this release) makes it reachable for an OAuth user with a full My Drive (PR #1006) ([#1009](https://github.com/khuisman/mcp-gee-sweet/issues/1009))
|
|
257
257
|
- [x] `insert_local_images`: temporary `anyone:reader` image shares aren't revoked when the call is cancelled — apply PR #877's shielded-cleanup pattern — lane B ([#883](https://github.com/khuisman/mcp-gee-sweet/issues/883)) (PR #903)
|
|
258
|
-
- [
|
|
258
|
+
- [x] **Bundle:** Docs image-share cancellation follow-ups (from PR #903), one PR closing [#904](https://github.com/khuisman/mcp-gee-sweet/issues/904), [#907](https://github.com/khuisman/mcp-gee-sweet/issues/907), [#908](https://github.com/khuisman/mcp-gee-sweet/issues/908), [#666](https://github.com/khuisman/mcp-gee-sweet/issues/666) — lane B, moved from lane A 2026-10-13 so it runs alongside lane A's #1012 and #1018 (shares `content.py` with #1018, different functions) ([#909](https://github.com/khuisman/mcp-gee-sweet/issues/909)) (PR #1029)
|
|
259
259
|
- [x] `_apply_doc_content`: temporary `anyone:reader` image shares aren't revoked when the doc edit raises — revoke pass should run in a `finally`. Same share/revoke surface as #666 and #511 ([#789](https://github.com/khuisman/mcp-gee-sweet/issues/789)) (PR #877)
|
|
260
260
|
- [x] Extract a shared helper for the isolated-bullet-run zero-tab anchor mechanic (`emitter.py` ↔ `style.py`); harden its regression test (`lane-a`) ([#727](https://github.com/khuisman/mcp-gee-sweet/issues/727)) (PR #735)
|
|
261
261
|
|
|
@@ -312,9 +312,10 @@ Same shape as v0.8.1 — stabilize on defects that surfaced since v0.9.0 shipped
|
|
|
312
312
|
- [x] `get_message`/`get_thread` return no body when Gmail delivers a large (~MB) `text/plain`/`text/html` part by `attachmentId`. Found in #803's live QA ([#825](https://github.com/khuisman/mcp-gee-sweet/issues/825)) (PR #829)
|
|
313
313
|
- [x] `get_thread`/`get_message`: add a body-less option — a long thread trips the response-size cap and there's no other way to get its message IDs, so it can't be read at all ([#793](https://github.com/khuisman/mcp-gee-sweet/issues/793)) (PR #885)
|
|
314
314
|
- [x] **Bundle:** Gmail cleanup, one PR closing [#795](https://github.com/khuisman/mcp-gee-sweet/issues/795), [#802](https://github.com/khuisman/mcp-gee-sweet/issues/802), [#823](https://github.com/khuisman/mcp-gee-sweet/issues/823) — lane B ([#896](https://github.com/khuisman/mcp-gee-sweet/issues/896)) (PR #928)
|
|
315
|
-
- [
|
|
315
|
+
- [x] Local-file read policy across local-path tools — in a remote/SSE deployment these read the server's own filesystem (token, SA key), and Gmail attachments can now mail them out. Decided 2026-10-04: `LOCAL_FILE_ACCESS=full|roots|off` (default `off` under SSE/HTTP), one shared check for every local read and write; also covers `_read_doc_source_file`'s synchronous read. Lane A after #1018, `solo-only`: lane B holds after #909 until it ships ([#796](https://github.com/khuisman/mcp-gee-sweet/issues/796)) (PR #1039)
|
|
316
316
|
- [ ] Release-pass Gmail QA (`docs/qa/tests/gmail.md`, added by #786). Many cases are destructive (send/draft/trash), so they need a dedicated mailbox fixture plan — Aziz ([#803](https://github.com/khuisman/mcp-gee-sweet/issues/803))
|
|
317
317
|
- [ ] Rewrite TC-GM01–22 prescriptively, add TC-GM26–44 and the Smoke rows, per `docs/qa/gmail-test-plan.md` §4. Part of #803, Aziz ([#822](https://github.com/khuisman/mcp-gee-sweet/issues/822))
|
|
318
|
+
- [ ] README and `docs/index.md`: add Gmail coverage (recounted per-domain tool counts) and remove the comparisons with other MCP servers. Docs-only, no file overlap with PR #1039, so it runs alongside #796 despite the `solo-only` hold (user decision 2026-10-16) — lane B ([#1033](https://github.com/khuisman/mcp-gee-sweet/issues/1033))
|
|
318
319
|
|
|
319
320
|
Tool surface (from the original v1.1+ plan):
|
|
320
321
|
|
|
@@ -384,8 +385,9 @@ Follows the design in [`docs/decisions/decision-comments-first-class.md`](decisi
|
|
|
384
385
|
- [ ] **Bundle:** Docs read side (`doc_to_ast`/`ast_to_markdown`), one PR closing [#596](https://github.com/khuisman/mcp-gee-sweet/issues/596), [#600](https://github.com/khuisman/mcp-gee-sweet/issues/600), [#732](https://github.com/khuisman/mcp-gee-sweet/issues/732) — lane B ([#893](https://github.com/khuisman/mcp-gee-sweet/issues/893))
|
|
385
386
|
- [ ] `update_doc_from_file`: opt-in incremental (`mode="patch"`) update that diffs block by block and rewrites only changed blocks, so comment anchors and revision history survive — lane A, after #878 (same write-path files) ([#957](https://github.com/khuisman/mcp-gee-sweet/issues/957))
|
|
386
387
|
- [ ] Docstrings: `create_paragraph_bullets` carries internal API-quirk mechanics plus residual bare issue refs in `style.py` tool docstrings ([#683](https://github.com/khuisman/mcp-gee-sweet/issues/683))
|
|
387
|
-
- [ ] `style_doc_range` has no `font_family` parameter — can't apply monospace to an existing range ([#720](https://github.com/khuisman/mcp-gee-sweet/issues/720))
|
|
388
|
+
- [ ] `style_doc_range` has no `font_family` parameter — can't apply monospace to an existing range — claimed by community PR #1026, merges after the v0.9.2 cut ([#720](https://github.com/khuisman/mcp-gee-sweet/issues/720))
|
|
388
389
|
- [ ] Document `font_family` on `insert_softbreak_paragraph` and widen the `style_doc_range` font test. Follow-up to #720 from duplicate PR #1028; blocked on #1026, which waits until after the v0.9.2 cut ([#1037](https://github.com/khuisman/mcp-gee-sweet/issues/1037))
|
|
390
|
+
- [ ] Harden `font_family` in Docs text-style requests: one shared `weightedFontFamily` builder for `style_doc_range`, `apply_theme` and `emitter.py`; reject empty values; decide on weight reset; document the Arial fallback. `wrong/narrow` + `loud/narrow`, not observed. From #1026's review; after #1026 ([#1038](https://github.com/khuisman/mcp-gee-sweet/issues/1038))
|
|
389
391
|
- [ ] **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))
|
|
390
392
|
- [ ] `qa`: `search_files` has no unit test coverage for the error-dict path ([#573](https://github.com/khuisman/mcp-gee-sweet/issues/573))
|
|
391
393
|
- [ ] Interaction-log middleware for tool calls — structured, append-only JSONL log per call (inputs, duration, cache hit, error), opt-in ID redaction, swappable backend ([#646](https://github.com/khuisman/mcp-gee-sweet/issues/646))
|