Skip to content

feat(runner): enable Gmail tools in Google Workspace MCP#1060

Merged
Gkrumbach07 merged 1 commit intomainfrom
feat/add-gmail-mcp-tools
Mar 26, 2026
Merged

feat(runner): enable Gmail tools in Google Workspace MCP#1060
Gkrumbach07 merged 1 commit intomainfrom
feat/add-gmail-mcp-tools

Conversation

@Gkrumbach07
Copy link
Copy Markdown
Contributor

Summary

  • Adds gmail to the --tools flag for the workspace-mcp server in .mcp.json
  • Enables Gmail tools (search, read, send, draft) alongside the existing Drive tools

Test plan

  • Verify runner starts with both drive and gmail tools registered
  • Test Gmail send functionality with valid Google OAuth credentials

🤖 Generated with Claude Code

Add Gmail tool group to the workspace-mcp --tools flag, enabling
search, read, send, and draft capabilities for sessions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 26, 2026

Walkthrough

Updated the google-workspace MCP server configuration to invoke workspace-mcp@1.6.1 with an expanded tools argument list, adding the gmail tool alongside the existing drive tool.

Changes

Cohort / File(s) Summary
MCP Server Configuration
components/runners/ambient-runner/.mcp.json
Added gmail tool to the --tools argument list for the google-workspace MCP server, expanding supported workspace tools.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: enabling Gmail tools in the Google Workspace MCP server configuration.
Description check ✅ Passed The description is directly related to the changeset, explaining what tools are being added and providing a test plan for verification.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/add-gmail-mcp-tools

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@components/runners/ambient-runner/.mcp.json`:
- Around line 31-32: The Google OAuth provider in
components/backend/handlers/oauth.go is missing Gmail scopes needed by the new
"gmail" tool; update the provider's scopes slice (the Google OAuth provider
configuration used in the function or variable that assembles provider scopes,
e.g., the Google provider declaration or GetGoogleProvider/InitGoogleProvider)
to include these three scopes: https://www.googleapis.com/auth/gmail.readonly,
https://www.googleapis.com/auth/gmail.modify, and
https://www.googleapis.com/auth/gmail.send so Gmail API calls (read/search,
modify/draft, and send) will be authorized at runtime.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: e47819bf-d46c-4eea-80a8-70c6c014af3e

📥 Commits

Reviewing files that changed from the base of the PR and between ee88acc and 62b1698.

📒 Files selected for processing (1)
  • components/runners/ambient-runner/.mcp.json

@Gkrumbach07 Gkrumbach07 merged commit 7158005 into main Mar 26, 2026
27 checks passed
@Gkrumbach07 Gkrumbach07 deleted the feat/add-gmail-mcp-tools branch March 26, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant