Feature: Support pre-authenticated tokens (xoxp/xoxb) as alternative to OAuth
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- api, authentication
Research direction
Start by locating the authentication entry point that currently launches the OAuth flow, then trace how configuration from .mcp.json and environment variables reaches requests to https://mcp.slack.com/mcp. Done means a supplied xoxp or xoxb token bypasses OAuth, authenticates requests, and is documented as requiring secure storage.
Written by the indexing model from the issue text.
Description
Feature Request: Support pre-authenticated tokens (xoxp / xoxb) as an alternative to OAuth
Summary
Allow the Slack MCP plugin to authenticate using an existing Slack API token (xoxp user token or xoxb bot token) instead of requiring the interactive OAuth browser flow. This is especially valuable for automated, headless, and CI/CD environments where a browser callback is not practical.
Motivation
The current OAuth-only flow has several friction points for developer and automation use cases:
- Headless / server environments — no browser available to complete the OAuth redirect
- Short-lived tokens — as noted in #2, OAuth access tokens expire after 1 hour with no refresh token, requiring frequent re-authentication. A long-lived
xoxptoken avoids this entirely - Existing Slack apps — many developers already have a Slack app with a bot token (
xoxb) or have previously authorized a user token (xoxp) with the required scopes. Re-doing OAuth through the plugin is redundant - CI/CD pipelines and scripted agents — token-based auth is the standard pattern; interactive OAuth is a blocker
Proposed Solution
Support an alternative authentication mode in .mcp.json (or environment variable) that accepts a pre-issued token directly:
{
"mcpServers": {
"slack": {
"type": "http",
"url": "https://mcp.slack.com/mcp",
"token": "xoxb-your-bot-token-here"
}
}
}
Or alternatively via environment variable:
export SLACK_MCP_TOKEN=xoxb-your-bot-token-here
For cases where only a client ID and secret are available (but not a full OAuth flow), a client-credentials-style exchange could also be considered.
Token types to support
| Token type | Prefix | Use case |
|---|---|---|
| Bot token | xoxb- |
App-level access, ideal for agents and automation |
| User token | xoxp- |
User-level access, same scopes as the OAuth user flow |
Security considerations
This mirrors how every other Slack SDK and integration works (@slack/web-api, Bolt, the Slack CLI, etc.). Token security is the developer's responsibility — the same way it is for any Slack API token today. The plugin can document that tokens should be stored in secrets managers or environment variables, not hardcoded.
Related
- #2 — OAuth tokens expire every hour with no refresh token, which this would resolve for long-running setups
Expected behavior
When a token field or SLACK_MCP_TOKEN env var is present, the plugin skips the OAuth flow and uses the provided token directly to authenticate requests to mcp.slack.com/mcp.
- Dominant language
- Python
- Stars
- 173
- Forks
- 46
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 41
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from slackapi/slack-skills-plugin
-
area:mcp bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
slackapi/slack-skills-plugin#214 ·
Maintainers usually reply within 1 day
-
create-slack-app: setting the AI provider API key ends in a manual .env editPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
slackapi/slack-skills-plugin#187 ·
Maintainers usually reply within 1 day
-
/slack:standup never searches DMs or private channelsPossibly taken @ppetriuk claimed this 65 days ago. Openarea:skills bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
slackapi/slack-skills-plugin#157 ·
Maintainers usually reply within 1 day
-
`slack_read_thread` parameter named `message_ts` instead of `thread_ts`Possibly taken @WilliamBergamin claimed this 127 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
slackapi/slack-skills-plugin#57 · 5 comments ·
Maintainers usually reply within 1 day
-
area:mcp enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
slackapi/slack-skills-plugin#236 · 1 comment · 2 reactions ·
Maintainers usually reply within 1 day
All issues in slackapi/slack-skills-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bad-antics/lateralus-lang#1623 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
fossguild/thelifesnake#82 ·
Maintainers usually reply within 1 day
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorOpengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pietbarber/Manage2Soar#1189 ·
Maintainers usually reply within 1 day
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinatesPossibly taken @dtgaebe claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
sandialabs/WecOptTool#467 ·