[FEATURE] MCP OAuth: Allow configuring redirect_uri hostname (127.0.0.1 vs localhost)
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Snowflake's MCP server implementation requires 127.0.0.1 and does not accept localhost.
Snowflake Documentation
It would be great if we could override the callback URL to support this feature from Snowflake.
Proposed Solution
Rather than just supplying the callback port. Add a new parameter (--callbackUrl) that will override the default callback of 'LocalHost'. So, the config in .claude.json would look something like this:
"snowflake-mcp": {
"type": "http",
"url": "https://<ACCOUNT>.snowflakecomputing.com/api/v2/databases/<YOURDBNAME>/schemas/<YOURSCHEMANAME>/mcp-servers/<YOURMCPSERVERNAME>",
"oauth": {
"clientId": "LOCAL_APPLICATION",
"callbackPort": 8080,
"callbackUrl": "http://127.0.0.1"
}
}
Alternative Solutions
Based on the limitation from Snowflake and Claude, there are no workarounds that I am aware of.
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
- I want to use Snowflake's self hosted/managed MCP server
- I want to connect to that MCP server with Claude.
Additional Context
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗