mcp-gee-sweet 0.9.2.dev370__tar.gz → 0.9.2.dev375__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.dev375}/CLAUDE.md +6 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/PKG-INFO +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/configuration.md +35 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/local-file-access-policy.md +16 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/known-limitations.md +41 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/infra.md +168 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/roadmap.md +4 -2
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/tools.md +9 -9
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/gen_tool_docs.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/qa_cancel_insert_local_images.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/qa_revision_temp_doc_parent.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/.env.template +9 -0
- mcp_gee_sweet-0.9.2.dev375/src/mcp_gee_sweet/local_files.py +330 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/server.py +59 -19
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/content.py +40 -9
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/images.py +20 -2
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/markdown_export.py +4 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/drive/files.py +14 -4
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/drive/transfer.py +305 -197
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/gmail.py +10 -3
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/response_limits.py +8 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/sheets/data.py +13 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/drive/test_activity.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/drive/test_files.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/drive/test_sharing.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/drive/test_transfer.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/fakes.py +11 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/sheets/test_data.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/sheets/test_structure.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_calendar.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_comments.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_content.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_editing.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_images.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_layout.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_markdown_export.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_named_ranges.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_revision_export.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_style.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_tables.py +1 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_gmail.py +1 -1
- mcp_gee_sweet-0.9.2.dev375/tests/test_local_file_sites.py +589 -0
- mcp_gee_sweet-0.9.2.dev375/tests/test_local_files.py +506 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_server.py +290 -1
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/cleanup-worktrees.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/merge-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/notify-kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/notify-partner.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/orchestrator.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/prep-for-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/qa-kickoff.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/release.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/retro.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/roadmap-status.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/security-advisory.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/start-worktree.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/team-member.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/commands/verify-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/settings.json +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/team-roles/amy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/team-roles/aziz.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/team-roles/bob.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/team-roles/dev.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/team-roles/joy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/team-roles/kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.claude/team-roles/qa.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.dockerignore +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.github/dependabot.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.github/workflows/ci.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.github/workflows/docs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.github/workflows/publish-dev.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.github/workflows/release.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.gitignore +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.pre-commit-config.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/.python-version +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/CHANGELOG.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/CODE_OF_CONDUCT.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/CONTRIBUTING.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/Dockerfile +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/LICENSE +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/Makefile +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/SECURITY.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docker-compose.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/assets/logo.png +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/auth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/client-setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-async-tool-execution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-cache-invalidation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-chart-theming.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-comments-first-class.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-composite-tools.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-converted-doc-change-detection.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-dev-team.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-docs-formatting.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-fork.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-gmail-domain.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-grid-data-size-cap.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-impact-reach-triage.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-local-fs-test-harness.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-pillow-image-dependency.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-prompt-qa-role.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-publishing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-release-docs-roles.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-repositioning.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-review-finding-ticket-bar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-supports-all-drives-lint-check.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-sync-folder-recursion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-testing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/decision-tool-error-visibility.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/decisions/role-file-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/blockquote-representation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/borderless-table-columns.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/doc-replace-backup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/doc-revision-export.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/doc-to-markdown.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/docs-ast-pipeline.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/effectiveformat-spike.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/heading-anchor-resolution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/image-share-lifecycle.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/markdown-support.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/module-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/oauth-reauthorize-from-tool-call.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/phase3-theme-system.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design/sse-consent-off-event-loop.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/design.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/notes-read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/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.dev375}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/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.dev375}/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.dev375}/docs/qa/fixtures.template.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/gmail-test-plan.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/operations.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/playwright_oauth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/.gitkeep +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-06-02.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-06-14.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-06-17.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-06-18.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/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.dev375}/docs/qa/results/2026-06-28.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-07-04-docs.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-07-04-infra.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-07-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/results/2026-09-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/retro-v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/retro-v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/run.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/runs/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/runs/v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/runs/v0.8.1.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/runs/v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/runs/v0.9.1.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/calendar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/docs_content.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/docs_layout.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/docs_style.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/docs_tables.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/drive_activity.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/drive_files.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/drive_sharing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/drive_transfer.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/gmail.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/sheets_charts.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/sheets_mgmt.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/qa/tests/sheets_write.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/docs/style-guide.md +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/mkdocs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/pyproject.toml +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/pyrightconfig.json +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/oauth_setup.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/setup_team.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/write_team_mcp_configs.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/server.json +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/http_transport.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/calendar.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/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.dev375}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/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.dev375}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/http_errors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/mime_types.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/pagination.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/integration/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/integration/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/integration/test_local_fs_harness.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/sheets/test_helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_core.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_docs_indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_http_errors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_http_transport.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_mime_types.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_response_limits.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_server_json.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/tests/test_team_mcp_configs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/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,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.dev375
|
|
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
|
|
@@ -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.dev375}/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.
|
|
@@ -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
|
|
|
@@ -315,6 +315,7 @@ Same shape as v0.8.1 — stabilize on defects that surfaced since v0.9.0 shipped
|
|
|
315
315
|
- [ ] 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))
|
|
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))
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
| Tool | Description | Key parameters |
|
|
60
60
|
|---|---|---|
|
|
61
61
|
| `create_spreadsheet` | Create a new Google Spreadsheet. | `title`, `folder_id?` |
|
|
62
|
-
| `import_csv_to_sheet` | Create a new Google Spreadsheet populated from a local CSV file. | `local_path`, `title`, `folder_id?`, `sheet_name?` |
|
|
62
|
+
| `import_csv_to_sheet` | Create a new Google Spreadsheet populated from a local CSV file. Not available when the server runs with LOCAL_FILE_ACCESS=off. | `local_path`, `title`, `folder_id?`, `sheet_name?` |
|
|
63
63
|
| `list_spreadsheets` | List all spreadsheets in the specified Google Drive folder. If no folder is specified, uses the configured default folder; if that's also unset, searches across 'My Drive' AND every shared drive the authenticated account can access (includeItemsFromAllDrives=True) — not just 'My Drive'. | `folder_id?`, `max_results?` |
|
|
64
64
|
| `search_spreadsheets` | Search for spreadsheets in Google Drive by name or content. | `query`, `max_results?` |
|
|
65
65
|
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
| `list_revisions` | List available revisions for a Google Drive file (Sheets, Docs, or any file). | `file_id` |
|
|
97
97
|
| `export_revision` | Export a historical revision of a Google Sheets file (cell data) or a Google Doc (Markdown). Use list_revisions to find the revision_id. | `file_id`, `revision_id`, `range?`, `sheet?`, `local_path?` |
|
|
98
98
|
| `upload_file` | Upload a text file to Google Drive, optionally converting it to a Google Doc. | `name`, `content`, `source_format?`, `folder_id?`, `convert_to_doc?` |
|
|
99
|
-
| `upload_local_file` | Upload a file from the local filesystem to a Google Drive folder. Handles binary and text files (images, PDFs, DOCX, XLSX, scripts, etc.). | `local_path`, `parent_folder_id`, `name?`, `skip_if_exists?`, `convert?` |
|
|
100
|
-
| `upload_local_folder` | Upload all files in a local directory (non-recursive) to a Google Drive folder. | `local_path`, `parent_folder_id`, `skip_if_exists?`, `skip_system_files?`, `convert?` |
|
|
101
|
-
| `download_file` | Download a file from Google Drive to the local filesystem. | `file_id`, `local_path`, `export_format?` |
|
|
102
|
-
| `download_folder` | Download all files in a Google Drive folder (non-recursive) to a local directory. | `folder_id`, `local_path`, `export_format?`, `mime_type_filter?`, `skip_if_exists?`, `progress_unit?` |
|
|
103
|
-
| `sync_folder` | Sync files between a Google Drive folder and a local directory. | `folder_id`, `local_path`, `direction?`, `export_format?`, `convert_markdown?`, `use_checksum?`, `skip_system_files?`, `dry_run?`, `recursive?`, `result_local_path?`, `resolve?` |
|
|
99
|
+
| `upload_local_file` | Upload a file from the local filesystem to a Google Drive folder. Handles binary and text files (images, PDFs, DOCX, XLSX, scripts, etc.). Not available when the server runs with LOCAL_FILE_ACCESS=off. | `local_path`, `parent_folder_id`, `name?`, `skip_if_exists?`, `convert?` |
|
|
100
|
+
| `upload_local_folder` | Upload all files in a local directory (non-recursive) to a Google Drive folder. Not available when the server runs with LOCAL_FILE_ACCESS=off. | `local_path`, `parent_folder_id`, `skip_if_exists?`, `skip_system_files?`, `convert?` |
|
|
101
|
+
| `download_file` | Download a file from Google Drive to the local filesystem. Not available when the server runs with LOCAL_FILE_ACCESS=off. | `file_id`, `local_path`, `export_format?` |
|
|
102
|
+
| `download_folder` | Download all files in a Google Drive folder (non-recursive) to a local directory. Not available when the server runs with LOCAL_FILE_ACCESS=off. | `folder_id`, `local_path`, `export_format?`, `mime_type_filter?`, `skip_if_exists?`, `progress_unit?` |
|
|
103
|
+
| `sync_folder` | Sync files between a Google Drive folder and a local directory. Not available when the server runs with LOCAL_FILE_ACCESS=off. | `folder_id`, `local_path`, `direction?`, `export_format?`, `convert_markdown?`, `use_checksum?`, `skip_system_files?`, `dry_run?`, `recursive?`, `result_local_path?`, `resolve?` |
|
|
104
104
|
|
|
105
105
|
## Drive — sharing
|
|
106
106
|
|
|
@@ -130,10 +130,10 @@ Requires the `drive.activity.readonly` scope; uses the Drive Activity API v2.
|
|
|
130
130
|
| Tool | Description | Key parameters |
|
|
131
131
|
|---|---|---|
|
|
132
132
|
| `create_doc` | Create a new Google Doc, optionally with initial content. | `title`, `content?`, `folder_id?`, `content_format?`, `autolink_urls?`, `revoke_sharing?`, `auto_downscale?` |
|
|
133
|
-
| `create_doc_from_file` | Create a Google Doc from a local .md or .html file. | `local_path`, `title?`, `folder_id?`, `autolink_urls?`, `revoke_sharing?`, `auto_downscale?` |
|
|
133
|
+
| `create_doc_from_file` | Create a Google Doc from a local .md or .html file. Not available when the server runs with LOCAL_FILE_ACCESS=off. | `local_path`, `title?`, `folder_id?`, `autolink_urls?`, `revoke_sharing?`, `auto_downscale?` |
|
|
134
134
|
| `get_doc_content` | Get the plain text content of a Google Doc. | `file_id`, `local_path?` |
|
|
135
135
|
| `write_doc_content` | Replace the full content of an existing Google Doc. | `doc_id`, `content`, `content_format?`, `autolink_urls?`, `revoke_sharing?`, `auto_downscale?` |
|
|
136
|
-
| `update_doc_from_file` | Replace an existing Google Doc's content in place from a local .md or .html file. | `doc_id`, `local_path`, `content_format?`, `autolink_urls?`, `revoke_sharing?`, `auto_downscale?` |
|
|
136
|
+
| `update_doc_from_file` | Replace an existing Google Doc's content in place from a local .md or .html file. Not available when the server runs with LOCAL_FILE_ACCESS=off. | `doc_id`, `local_path`, `content_format?`, `autolink_urls?`, `revoke_sharing?`, `auto_downscale?` |
|
|
137
137
|
| `get_doc_structure` | Return the full structural map of a Google Doc body with element indices. | `doc_id` |
|
|
138
138
|
| `find_in_doc` | Search a Google Doc's text and return match locations as document character offsets. | `doc_id`, `query`, `regex?`, `case_sensitive?`, `max_results?`, `local_path?` |
|
|
139
139
|
| `insert_doc_text` | Insert text at one or more positions in a Google Doc. | `doc_id`, `insertions` |
|
|
@@ -141,7 +141,7 @@ Requires the `drive.activity.readonly` scope; uses the Drive Activity API v2.
|
|
|
141
141
|
| `insert_page_break` | Insert an explicit page break at a specific index in a Google Doc. | `doc_id`, `index` |
|
|
142
142
|
| `insert_softbreak_paragraph` | Insert a single paragraph built from multiple lines joined by soft line breaks (Shift+Enter in the Docs UI), with the paragraph's style set explicitly rather than inherited from whatever is at `index`. | `doc_id`, `index`, `lines`, `named_style_type?` |
|
|
143
143
|
| `insert_inline_image` | Insert an inline image at a specific index in a Google Doc. | `doc_id`, `index`, `uri?`, `drive_file_id?`, `width?`, `height?`, `auto_downscale?` |
|
|
144
|
-
| `insert_local_images` | Upload local image files to Drive and swap each into a Google Doc at a plain-text marker, in one call. | `doc_id`, `images`, `folder_id?`, `revoke_sharing?`, `auto_downscale?` |
|
|
144
|
+
| `insert_local_images` | Upload local image files to Drive and swap each into a Google Doc at a plain-text marker, in one call. Not available when the server runs with LOCAL_FILE_ACCESS=off. | `doc_id`, `images`, `folder_id?`, `revoke_sharing?`, `auto_downscale?` |
|
|
145
145
|
| `insert_doc_table` | Insert an empty table at a specific position in a Google Doc. | `doc_id`, `index`, `rows`, `columns` |
|
|
146
146
|
| `insert_table_row` | Insert a row into an existing table in a Google Doc. | `doc_id`, `table_start_index`, `row_index`, `insert_below?` |
|
|
147
147
|
| `delete_table_row` | Delete a row from an existing table in a Google Doc. | `doc_id`, `table_start_index`, `row_index` |
|
{mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/qa_cancel_insert_local_images.py
RENAMED
|
@@ -64,7 +64,7 @@ _TOOLS = ["insert_local_images", "write_doc_content"]
|
|
|
64
64
|
def _register_tools() -> dict:
|
|
65
65
|
captured = {}
|
|
66
66
|
|
|
67
|
-
def tool(annotations=None):
|
|
67
|
+
def tool(annotations=None, local_only=False):
|
|
68
68
|
def decorator(func):
|
|
69
69
|
captured[func.__name__] = func
|
|
70
70
|
return func
|
{mcp_gee_sweet-0.9.2.dev370 → mcp_gee_sweet-0.9.2.dev375}/scripts/qa_revision_temp_doc_parent.py
RENAMED
|
@@ -37,7 +37,7 @@ from mcp_gee_sweet.tools.drive.transfer import _GOOGLE_DOC_MIME
|
|
|
37
37
|
def _register_tools() -> dict:
|
|
38
38
|
tools: dict = {}
|
|
39
39
|
|
|
40
|
-
def tool(annotations=None):
|
|
40
|
+
def tool(annotations=None, local_only=False):
|
|
41
41
|
def decorator(func):
|
|
42
42
|
tools[func.__name__] = func
|
|
43
43
|
return func
|
|
@@ -26,6 +26,15 @@ ACCESS_LOG_FILE=/tmp/mcp-gee-sweet-access.log
|
|
|
26
26
|
# Default: all tools enabled.
|
|
27
27
|
# ENABLED_TOOLS=
|
|
28
28
|
|
|
29
|
+
# Which local files tools may read and write: full | roots | off
|
|
30
|
+
# Default: full under stdio, off under SSE and streamable HTTP. The server's own
|
|
31
|
+
# credential, config, cache and log files are refused in every mode. In off mode,
|
|
32
|
+
# tools that only work on local files (sync_folder, upload_local_file, ...) aren't
|
|
33
|
+
# registered. See docs/configuration.md "Local file access".
|
|
34
|
+
# LOCAL_FILE_ACCESS=
|
|
35
|
+
# With LOCAL_FILE_ACCESS=roots: the allowed directories, separated by ":" (";" on Windows).
|
|
36
|
+
# LOCAL_FILE_ROOTS=
|
|
37
|
+
|
|
29
38
|
# Server network (SSE/HTTP transport only)
|
|
30
39
|
# HOST=0.0.0.0
|
|
31
40
|
# PORT=8000
|