File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments