mirror of
https://github.com/paymog/slack-cli.git
synced 2026-09-18 23:43:49 +08:00
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:
@@ -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 = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user