fix(dxt): add missing xoxb_token workaround for DXT bug

When xoxb support was added in v1.1.27 (bb9469d), the DXT bug workaround
in index.js was not updated to include SLACK_MCP_XOXB_TOKEN. This causes
authentication failures when users configure xoxc/xoxd auth with an empty
xoxb_token field, as DXT passes the literal template string instead of
an empty string.

Fixes #177
This commit is contained in:
dalley
2026-02-02 07:58:03 -06:00
parent 14b4cdc679
commit e03caf2dda
+3
View File
@@ -25,6 +25,9 @@ function resolveBinaryPath() {
if (process.env.SLACK_MCP_XOXP_TOKEN === '${user_config.xoxp_token}') {
process.env.SLACK_MCP_XOXP_TOKEN = '';
}
if (process.env.SLACK_MCP_XOXB_TOKEN === '${user_config.xoxb_token}') {
process.env.SLACK_MCP_XOXB_TOKEN = '';
}
if (process.env.SLACK_MCP_ADD_MESSAGE_TOOL === '${user_config.add_message_tool}') {
process.env.SLACK_MCP_ADD_MESSAGE_TOOL = '';
}