Skip to content

Commit db5c5e6

Browse files
committed
Add required slack team ID.
1 parent 1bc4fd7 commit db5c5e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/mcp/install-mcp-server.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function prepareMcpConfig(
77
branch: string,
88
): Promise<string> {
99
console.log("Preparing MCP config ",{githubToken: !!githubToken, slackBotToken: !!process.env.SLACK_BOT_TOKEN});
10-
10+
1111
try {
1212
const mcpConfig = {
1313
mcpServers: {
@@ -38,15 +38,16 @@ export async function prepareMcpConfig(
3838
BRANCH_NAME: branch,
3939
},
4040
},
41-
...(process.env.SLACK_BOT_TOKEN
41+
...(process.env.SLACK_BOT_TOKEN && process.env.SLACK_TEAM_ID
4242
? {
4343
slack: {
4444
command: "npx",
4545
args: ["-y", "@modelcontextprotocol/server-slack"],
4646
env: {
4747
SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN,
48+
SLACK_TEAM_ID: process.env.SLACK_TEAM_ID,
4849
SLACK_CHANNEL_IDS:
49-
process.env.SLACK_CHANNEL_IDS || "C08S795509L",
50+
process.env.SLACK_CHANNEL_IDS || ''
5051
},
5152
},
5253
}

0 commit comments

Comments
 (0)