Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(ai): enable slack mcp server in dev (#4162)

Eric Hayes0a32ac383976
diff --git a/js/app/packages/core/component/AI/constant/mcpServers.ts b/js/app/packages/core/component/AI/constant/mcpServers.ts
index cf01e5614b..92a2972bb5 100644
--- a/js/app/packages/core/component/AI/constant/mcpServers.ts
+++ b/js/app/packages/core/component/AI/constant/mcpServers.ts
@@ -1,10 +1,11 @@
+import { DEV_MODE_ENV } from '@core/constant/featureFlags';
import IconDatadog from '@icon/mcp-datadog.svg';
import IconGithub from '@icon/mcp-github.svg';
import IconGrafana from '@icon/mcp-grafana.svg';
import IconLinear from '@icon/mcp-linear.svg';
import IconNotion from '@icon/mcp-notion.svg';
import IconPostHog from '@icon/mcp-posthog.svg';
-// import IconSlack from "@icon/mcp-slack.svg";
+import IconSlack from '@icon/mcp-slack.svg';
import type { Component, JSX } from 'solid-js';
export type SvgIcon = Component<JSX.SvgSVGAttributes<SVGSVGElement>>;
@@ -20,11 +21,16 @@ export const QUICK_CONNECT_SERVERS = [
url: 'https://mcp.linear.app/mcp',
icon: IconLinear as SvgIcon,
},
- // {
- // server_name: 'Slack',
- // url: 'https://mcp.slack.com/mcp',
- // icon: IconSlack as SvgIcon,
- // },
+ // Slack is dev-only until the integration is ready for production.
+ ...(DEV_MODE_ENV
+ ? ([
+ {
+ server_name: 'Slack',
+ url: 'https://mcp.slack.com/mcp',
+ icon: IconSlack as SvgIcon,
+ },
+ ] as const)
+ : []),
{
server_name: 'Notion',
url: 'https://mcp.notion.com/mcp',
diff --git a/rust/cloud-storage/mcp_client/src/domain/provider_registry/slack/README.md b/rust/cloud-storage/mcp_client/src/domain/provider_registry/slack/README.md
index 1c09e8b90d..c22fa45b0a 100644
--- a/rust/cloud-storage/mcp_client/src/domain/provider_registry/slack/README.md
+++ b/rust/cloud-storage/mcp_client/src/domain/provider_registry/slack/README.md
@@ -23,7 +23,7 @@ It can be used with the [Slack Manifest API](https://api.slack.com/reference/man
or update the app programmatically.
## Docs
-
+- [MCP Docs](https://docs.slack.dev/ai/slack-mcp-server/)
- [Slack MCP overview](https://docs.slack.dev/agents-and-apps/mcp-for-slack)
- [Slack OAuth v2 user tokens](https://docs.slack.dev/authentication/installing-with-oauth)
- [Slack scopes reference](https://docs.slack.dev/reference/scopes)
diff --git a/rust/cloud-storage/mcp_client/src/domain/provider_registry/slack/manifest.json b/rust/cloud-storage/mcp_client/src/domain/provider_registry/slack/manifest.json
index d33de7914f..f7ed7e9b9c 100644
--- a/rust/cloud-storage/mcp_client/src/domain/provider_registry/slack/manifest.json
+++ b/rust/cloud-storage/mcp_client/src/domain/provider_registry/slack/manifest.json
@@ -13,13 +13,19 @@
"scopes": {
"user": [
"canvases:read",
+ "canvases:write",
"channels:history",
"channels:read",
+ "channels:write",
"chat:write",
+ "emoji:read",
"files:read",
"groups:history",
"groups:read",
"groups:write",
+ "mpim:history",
+ "mpim:write",
+ "mpim:read",
"im:history",
"im:write",
"reactions:write",