Skip to content

feat: govslack compatibility#165

Merged
korotovsky merged 5 commits intokorotovsky:masterfrom
aron-muon:feat/govslack
Jan 28, 2026
Merged

feat: govslack compatibility#165
korotovsky merged 5 commits intokorotovsky:masterfrom
aron-muon:feat/govslack

Conversation

@aron-muon
Copy link
Contributor

Summary

Adds support for GovSlack (Slack's FedRAMP-compliant government offering) by making API domains configurable via environment variable.

Closes #161

Changes

pkg/provider/edge/edge.go

  • Added getSlackBaseDomain() helper function that returns the appropriate base domain
  • Updated NewWithClient() and NewWithInfo() to use dynamic domains for Edge API endpoints

pkg/provider/api.go

  • Modified NewMCPSlackClient() to use GovSlack API URL for initial authentication when enabled

Usage

Set the environment variable to enable GovSlack mode:

export SLACK_MCP_GOVSLACK=true

This configures the server to use GovSlack API endpoints:

Component Commercial Slack GovSlack
Standard API slack.com/api/ slack-gov.com/api/
Edge API edgeapi.slack.com edgeapi.slack-gov.com
Workspace URL {team}.slack.com {team}.slack-gov.com

Test Plan

  • Code compiles successfully
  • Tested with GovSlack workspace using xoxp token
  • Tested with GovSlack workspace using xoxb token
  • Verified Edge API calls work correctly

🤖 Generated with Claude Code

@aron-muon
Copy link
Contributor Author

I've verified that the functionality works properly in GovSlack. I was able to query for channels, read messages, send messages, etc.

@aron-muon aron-muon marked this pull request as ready for review January 28, 2026 05:02
Copy link
Owner

@korotovsky korotovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @aron-muon, this is a super cool PR! Thank you!

@korotovsky korotovsky merged commit 2572a86 into korotovsky:master Jan 28, 2026
2 checks passed
@aron-muon aron-muon deleted the feat/govslack branch January 28, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add GovSlack support

2 participants