We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3bfb2a commit 1bc4fd7Copy full SHA for 1bc4fd7
1 file changed
src/mcp/install-mcp-server.ts
@@ -6,6 +6,8 @@ export async function prepareMcpConfig(
6
repo: string,
7
branch: string,
8
): Promise<string> {
9
+ console.log("Preparing MCP config ",{githubToken: !!githubToken, slackBotToken: !!process.env.SLACK_BOT_TOKEN});
10
+
11
try {
12
const mcpConfig = {
13
mcpServers: {
@@ -36,7 +38,21 @@ export async function prepareMcpConfig(
36
38
BRANCH_NAME: branch,
37
39
},
40
41
+ ...(process.env.SLACK_BOT_TOKEN
42
+ ? {
43
+ slack: {
44
+ command: "npx",
45
+ args: ["-y", "@modelcontextprotocol/server-slack"],
46
+ env: {
47
+ SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN,
48
+ SLACK_CHANNEL_IDS:
49
+ process.env.SLACK_CHANNEL_IDS || "C08S795509L",
50
+ },
51
52
+ }
53
+ : {}),
54
55
56
};
57
58
return JSON.stringify(mcpConfig, null, 2);
0 commit comments