| name | add-gws |
| description | Add Google Workspace CLI (gws) MCP integration with OAuth profile support (Gmail/Calendar/Drive). |
Add GWS Integration
This skill adds Google Workspace CLI MCP support to NanoClaw so agents can use Gmail, Calendar, and Drive through an OAuth profile.
What This Adds
- Installs
@googleworkspace/cli in the agent container image
- Mounts host GWS OAuth config (
~/.config/gws by default) into containers
- Passes GWS-related environment variables into container runtime
- Registers a
gws MCP server in the in-container Codex config
- Documents optional GWS env vars in
.env.example
Files Modified
src/container-runner.ts
container/agent-runner/src/index.ts
container/Dockerfile
.env.example
Apply
npx tsx scripts/apply-skill.ts .agents/skills/add-gws
OAuth Setup
Run on host (outside container):
gws auth login
gws auth list
Then set profile in .env (optional but recommended):
GOOGLE_WORKSPACE_CLI_ACCOUNT=default
Rebuild + Restart
npm run build
./container/build.sh
systemctl --user restart nanoclaw
launchctl kickstart -k gui/$(id -u)/com.nanoclaw
Quick Verification
docker run --rm --entrypoint gws nanoclaw-agent:latest --version
From a chat message, ask NanoClaw to perform a small Gmail/Calendar read operation to confirm MCP wiring.