Skip to content

feat: govslack compatibility#164

Closed
aron-muon wants to merge 5 commits intokorotovsky:masterfrom
aron-muon:master
Closed

feat: govslack compatibility#164
aron-muon wants to merge 5 commits intokorotovsky:masterfrom
aron-muon:master

Conversation

@aron-muon
Copy link
Contributor

@aron-muon aron-muon commented Jan 28, 2026

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

aron-muon commented Jan 28, 2026

I've verified that the functionality works properly in GovSlack. I was able to query for channels, read messages, send messages, etc. Integration tests are failing because they ran on my own fork, and for security sake, I've not added the required secrets for integration tests to pass.

@aron-muon aron-muon marked this pull request as ready for review January 28, 2026 04:37
@aron-muon aron-muon closed this Jan 28, 2026
@aron-muon
Copy link
Contributor Author

Closed to change fork base to a branch on my fork rather than master

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

1 participant