revert scope_param, use standard scope for Slack v2_user endpoint

This commit is contained in:
CREDO23 2026-04-22 09:56:18 +02:00
parent 820326e3ee
commit 970f62278b
2 changed files with 2 additions and 4 deletions

View file

@ -165,7 +165,7 @@ async def connect_mcp_service(
"state": state,
}
if svc.scopes:
auth_params[svc.scope_param] = " ".join(svc.scopes)
auth_params["scope"] = " ".join(svc.scopes)
auth_url = f"{auth_endpoint}?{urlencode(auth_params)}"
@ -478,7 +478,7 @@ async def reauth_mcp_service(
"state": state,
}
if svc.scopes:
auth_params[svc.scope_param] = " ".join(svc.scopes)
auth_params["scope"] = " ".join(svc.scopes)
auth_url = f"{auth_endpoint}?{urlencode(auth_params)}"

View file

@ -21,7 +21,6 @@ class MCPServiceConfig:
client_id_env: str | None = None
client_secret_env: str | None = None
scopes: list[str] = field(default_factory=list)
scope_param: str = "scope"
MCP_SERVICES: dict[str, MCPServiceConfig] = {
@ -47,7 +46,6 @@ MCP_SERVICES: dict[str, MCPServiceConfig] = {
supports_dcr=False,
client_id_env="SLACK_CLIENT_ID",
client_secret_env="SLACK_CLIENT_SECRET",
scope_param="user_scope",
scopes=[
"search:read.public", "search:read.private", "search:read.mpim",
"search:read.im", "search:read.files", "search:read.users",