1.0 KiB
1.0 KiB
Intent: container/agent-runner/src/index.ts modifications
What changed
Added Gmail MCP server to the agent's available tools so it can read and send emails.
Key sections
mcpServers (inside runQuery → query() call)
- Added:
gmailMCP server alongside the existingnanoclawserver:gmail: { command: 'npx', args: ['-y', '@gongrzhe/server-gmail-autoauth-mcp'], },
allowedTools (inside runQuery → query() call)
- Added:
'mcp__gmail__*'to allow all Gmail MCP tools
Invariants
- The
nanoclawMCP server configuration is unchanged - All existing allowed tools are preserved
- The query loop, IPC handling, MessageStream, and all other logic is untouched
- Hooks (PreCompact, sanitize Bash) are unchanged
- Output protocol (markers) is unchanged
Must-keep
- The
nanoclawMCP server with its environment variables - All existing allowedTools entries
- The hook system (PreCompact, PreToolUse sanitize)
- The IPC input/close sentinel handling
- The MessageStream class and query loop