How to pass Slack auth token to MCP Server to download slack private JPG image url retrieved from slack

Hi team, i am having issues trying to download a slack private url image in a MCP server via n8n worklfow. I am using the community node MCP client with SSE url http://mcp-vision-health-service:8000/sse.

The trigger happens successfully, but i get a redirect 302 error when trying to download the image. I have tried the following option already. but it was not successful. Overall, I am using an AI tool agent which has MCP list tools / execute tool connected with tool parameters automatically passed via AI.
in the sse connection, i have tried to pass slack_token= so that i can extract the token, create a header from the Bearer token received and download the file.

slack_token = None
if hasattr(ctx, ‘headers’) and ‘slack_token’ in ctx.headers:
slack_token = ctx.headers[‘slack_token’]
elif hasattr(ctx, ‘mcp_headers’) and ‘slack_token’ in ctx.mcp_headers:
slack_token = ctx.mcp_headers[‘slack_token’]
headers = {‘Authorization’: f’Bearer {slack_token}'}
logger.info(f"Using headers for image download: {headers}")
try:
response = await client.get(image_url, headers=headers)
response.raise_for_status() # Raise exception for non-200 status codes
image = Image.open(BytesIO(response.content))
logger.info(“Successfully downloaded and opened image”)

WHat can be done ? Any guidance for the token based download within MCP Server ?