Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(email): wire gmail_ops_queue into mcp_service and DCS sqs clients (#4322)
gbirman5c2d8573345c
diff --git a/rust/cloud-storage/document_cognition_service/src/config.rs b/rust/cloud-storage/document_cognition_service/src/config.rsindex d16d16112f..ad032433e8 100644--- a/rust/cloud-storage/document_cognition_service/src/config.rs+++ b/rust/cloud-storage/document_cognition_service/src/config.rs@@ -11,6 +11,7 @@ env_vars!(pub struct DocumentTextExtractorQueue;pub struct ChatDeleteQueue;pub struct EmailScheduledQueue;+ pub struct GmailOpsQueue;pub struct NotificationQueue;pub struct DocumentStorageServiceAuthKey;pub struct SearchEventQueue;@@ -55,6 +56,8 @@ pub struct Config {pub chat_delete_queue: ChatDeleteQueue,/// The sqs queue to enqueue outbound email sendspub email_scheduled_queue: EmailScheduledQueue,+ /// The sqs queue to enqueue Gmail label/sync operations+ pub gmail_ops_queue: GmailOpsQueue,/// The sqs queue to send notifications topub notification_queue: NotificationQueue,pub search_event_queue: SearchEventQueue,@@ -102,6 +105,7 @@ impl Config {),chat_delete_queue: ChatDeleteQueue::Comptime("CHAT_DELETE_QUEUE"),email_scheduled_queue: EmailScheduledQueue::Comptime("EMAIL_SCHEDULED_QUEUE"),+ gmail_ops_queue: GmailOpsQueue::Comptime("GMAIL_OPS_QUEUE"),notification_queue: NotificationQueue::Comptime("NOTIFICATION_QUEUE"),search_event_queue: SearchEventQueue::Comptime("SEARCH_EVENT_QUEUE"),ai_projection_queue: AiProjectionQueue::Comptime("AI_PROJECTION_QUEUE"),diff --git a/rust/cloud-storage/document_cognition_service/src/main.rs b/rust/cloud-storage/document_cognition_service/src/main.rsindex 51a1d1c5b1..1317b2276e 100644--- a/rust/cloud-storage/document_cognition_service/src/main.rs+++ b/rust/cloud-storage/document_cognition_service/src/main.rs@@ -99,6 +99,7 @@ async fn main() -> anyhow::Result<()> {.document_text_extractor_queue(&config.document_text_extractor_queue).chat_delete_queue(&config.chat_delete_queue).email_scheduled_queue(&config.email_scheduled_queue)+ .gmail_ops_queue(&config.gmail_ops_queue).search_event_queue(&config.search_event_queue).ai_projection_queue(&config.ai_projection_queue);diff --git a/rust/cloud-storage/mcp_service/src/config.rs b/rust/cloud-storage/mcp_service/src/config.rsindex dddbdebf62..8c3c93e9f6 100644--- a/rust/cloud-storage/mcp_service/src/config.rs+++ b/rust/cloud-storage/mcp_service/src/config.rs@@ -14,6 +14,9 @@ pub use macro_middleware::auth::internal_access::InternalApiSecretKey;env_vars! {/// SQS URL for the email scheduled queue, consumed by the AI tools.pub struct EmailScheduledQueue;+ /// SQS URL for the Gmail ops queue, consumed by the AI tools to enqueue+ /// Gmail label/sync operations.+ pub struct GmailOpsQueue;/// Auth key used by the document storage / search / lexical clients.pub struct DocumentStorageServiceAuthKey;/// Secrets Manager secret name for the sync service auth key.@@ -65,6 +68,7 @@ pub struct Config {/// The connection URL for the Postgres database this application uses.pub database_url: DatabaseUrl,pub email_scheduled_queue: EmailScheduledQueue,+ pub gmail_ops_queue: GmailOpsQueue,pub document_storage_service_auth_key: DocumentStorageServiceAuthKey,pub sync_service_auth_key: SyncServiceAuthKey,pub document_storage_bucket: DocumentStorageBucket,diff --git a/rust/cloud-storage/mcp_service/src/context.rs b/rust/cloud-storage/mcp_service/src/context.rsindex f2bf9e3738..1ee968e27f 100644--- a/rust/cloud-storage/mcp_service/src/context.rs+++ b/rust/cloud-storage/mcp_service/src/context.rs@@ -66,7 +66,8 @@ pub async fn build_context(config: &Config) -> anyhow::Result<McpContext> {let aws_config = macro_aws_config::get_macro_aws_config().await;let queue_aws_client = aws_sdk_sqs::Client::new(&aws_config);let sqs_client = sqs_client::SQS::new(queue_aws_client)- .email_scheduled_queue(config.email_scheduled_queue.as_ref());+ .email_scheduled_queue(config.email_scheduled_queue.as_ref())+ .gmail_ops_queue(config.gmail_ops_queue.as_ref());let secretsmanager_client = secretsmanager_client::SecretsManager::new(aws_sdk_secretsmanager::Client::new(&aws_config),