File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ export async function prepareMcpConfig(
66 repo : string ,
77 branch : string ,
88) : Promise < string > {
9+ console . log ( "Preparing MCP config " , { githubToken : ! ! githubToken , slackBotToken : ! ! process . env . SLACK_BOT_TOKEN } ) ;
10+
911 try {
1012 const mcpConfig = {
1113 mcpServers : {
@@ -36,7 +38,21 @@ export async function prepareMcpConfig(
3638 BRANCH_NAME : branch ,
3739 } ,
3840 } ,
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+ : { } ) ,
3954 } ,
55+
4056 } ;
4157
4258 return JSON . stringify ( mcpConfig , null , 2 ) ;
You can’t perform that action at this time.
0 commit comments