Files
Zero/apps/mail/components
Adam aa694e992c mcp-prep (#1740)
# Gmail Search Query Builder and MCP Tool Registration Improvements

## Description

This PR adds a dedicated Gmail search query builder tool and improves the Model Context Protocol (MCP) agent implementation. The changes include:

1. Added a new `BuildGmailSearchQuery` tool that leverages AI to help users construct effective Gmail search queries
2. Migrated MCP agent tools to use the newer `registerTool` method with proper descriptions and input schemas
3. Added initial message handling for AI sidebar component
4. Reduced thread sync max count from 40 to 5 to improve performance during development

## Type of Change

- [x]  New feature (non-breaking change which adds functionality)
- [x]  Performance improvement

## Areas Affected

- [x] Email Integration (Gmail, IMAP, etc.)
- [x] User Interface/Experience
- [x] API Endpoints

## Testing Done

- [x] Manual testing performed

## Checklist

- [x] I have performed a self-review of my code
- [x] My changes generate no new warnings

## Additional Notes

The Gmail search query builder tool helps users construct more effective search queries by translating natural language requests into Gmail's search syntax. This should improve the user experience when trying to find specific emails.

The MCP tool registration improvements provide better documentation and type safety for the available tools.
2025-07-15 20:04:46 -07:00
..
2025-06-30 11:37:18 -07:00
2025-07-10 15:05:01 -07:00
2025-05-23 19:20:17 +05:30
2025-07-10 10:59:40 -07:00
2025-07-10 10:59:40 -07:00
2025-07-10 10:59:40 -07:00
2025-07-10 10:59:40 -07:00
2025-07-15 13:00:31 -07:00
2025-07-10 10:59:40 -07:00
2025-05-26 18:36:15 -07:00
2025-07-10 10:59:40 -07:00
2025-07-15 20:04:46 -07:00
2025-07-15 19:35:43 -07:00
2025-07-10 10:59:40 -07:00
2025-07-15 13:00:31 -07:00
2025-07-10 10:59:40 -07:00
2025-07-15 13:00:31 -07:00