Skip to content

Commit 65bf397

Browse files
adityathebemoshloop
authored andcommitted
feat: Add slack bot as an option to configure MCP
1 parent e4d0c49 commit 65bf397

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/components/Tokens/Add/TokenDisplayModal.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ function McpSetupTabs({ token, onTabChange }: McpSetupTabsProps) {
260260
}
261261
}
262262
}`
263+
},
264+
"slack-bot": {
265+
label: "Slack Bot",
266+
config: `MCP_URL=${baseUrl}
267+
MCP_BEARER_TOKEN=${token}`
263268
},
264269
direct: {
265270
label: "Direct HTTP",
@@ -334,8 +339,11 @@ function McpSetupTabs({ token, onTabChange }: McpSetupTabsProps) {
334339
{Object.entries(mcpConfigs).map(([key, { label, config }]) => (
335340
<Tab key={key} label={label} value={key} className="p-4">
336341
<div className="max-h-64 overflow-y-auto">
337-
{key === "direct" ? (
338-
<CodeBlock code={config} language="bash" />
342+
{key === "direct" || key === "slack-bot" ? (
343+
<CodeBlock
344+
code={config}
345+
language={key === "slack-bot" ? "bash" : "bash"}
346+
/>
339347
) : (
340348
<JSONViewer
341349
code={config}

0 commit comments

Comments
 (0)