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(ai): mcp reauth (#3411)
Eric Hayes37c19f026103
diff --git a/.github/workflows/code-check-cloud-storage.yml b/.github/workflows/code-check-cloud-storage.ymlindex 6c82e1a938..1183fff80d 100644--- a/.github/workflows/code-check-cloud-storage.yml+++ b/.github/workflows/code-check-cloud-storage.yml@@ -278,7 +278,7 @@ jobs:if [ -n "$NEXTEST_FILTER" ]; thenargs+=(-E "$NEXTEST_FILTER")fi- cargo nextest run "${args[@]}"+ cargo nextest run --no-tests=pass "${args[@]}"- name: show sccache statsif: always()env:diff --git a/rust/cloud-storage/.dockerignore b/rust/cloud-storage/.dockerignoreindex 4327bb1f44..79e5434070 100644--- a/rust/cloud-storage/.dockerignore+++ b/rust/cloud-storage/.dockerignore@@ -27,7 +27,6 @@ search_processing_service/helpers/*convert_service/helpers/*# Testing-**/load-test/***/test.rs# Documentationdiff --git a/rust/cloud-storage/mcp_service/src/context.rs b/rust/cloud-storage/mcp_service/src/context.rsindex 0336511115..5ebc7b7043 100644--- a/rust/cloud-storage/mcp_service/src/context.rs+++ b/rust/cloud-storage/mcp_service/src/context.rs@@ -69,6 +69,7 @@ pub struct McpContext {pub jwt_args: JwtValidationArgs,pub tool_context: ToolServiceContext,pub auth_proxy: McpAuthProxyServiceImpl<RedisInflightAuth>,+ pub mcp_public_host: String,}pub async fn build_context() -> anyhow::Result<McpContext> {@@ -120,10 +121,17 @@ pub async fn build_context() -> anyhow::Result<McpContext> {let auth_proxy = build_auth_proxy(&env_vars, &secretsmanager_client).await?;+ let mcp_public_host = http::Uri::try_from(env_vars.mcp_public_url.as_ref())+ .context("MCP_PUBLIC_URL is not a valid URI")?+ .host()+ .context("MCP_PUBLIC_URL has no host")?+ .to_owned();+Ok(McpContext {jwt_args,tool_context,auth_proxy,+ mcp_public_host,})}diff --git a/rust/cloud-storage/mcp_service/src/main.rs b/rust/cloud-storage/mcp_service/src/main.rsindex a9a889df99..07ef71b431 100644--- a/rust/cloud-storage/mcp_service/src/main.rs+++ b/rust/cloud-storage/mcp_service/src/main.rs@@ -38,7 +38,11 @@ async fn main() -> anyhow::Result<()> {},Arc::new(LocalSessionManager::default()),{- let mut config = StreamableHttpServerConfig::default();+ let mut config = StreamableHttpServerConfig::default().with_allowed_hosts([+ context.mcp_public_host.clone(),+ "localhost".into(),+ "127.0.0.1".into(),+ ]);config.stateful_mode = false;config.json_response = true;config