Home / Servers / Slack API / oauth_v2_access

Exchanges a temporary OAuth verifier code for an access token.

An MCP tool from the Slack API server, hosted on mcp.hjlabs.in.

Exchanges a temporary OAuth verifier code for an access token. [GET /oauth.v2.access]

Name on the gateway: slack_api__oauth_v2_access · read-only.

Parameters

NameTypeDescription
client_idstringIssued when you created your application.
client_secretstringIssued when you created your application.
code requiredstringThe code param returned via the OAuth callback.
redirect_uristringThis must match the originally submitted URI (if one was sent).

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "slack_api__oauth_v2_access",
  "arguments": {
    "code": "…"
  }
}

Or connect the Slack API server directly, which lists 174 tools including this one:

Run in your terminal
claude mcp add --transport http hj-slack-api https://mcp.hjlabs.in/mcp/slack-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the exchanges a temporary oauth verifier code for an access token. tool with client_id set to ….

More from Slack API