feat: allow clients to override client_name (#469)

Many MCP Servers use client_name for a variety of things including:
* Whitelisting
* Logos
* Copy shown directly on the page
* etc

As a result, it's important for MCP Clients to be able to override the client name.
This commit is contained in:
Gabriel Peal 2025-10-03 18:03:31 -07:00 • committed by GitHub
commit 6011f34ddf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,11 @@ async fn main() -> Result<()> {
.await
.context("Failed to initialize oauth state machine")?;
oauth_state
.start_authorization(&["mcp", "profile", "email"], MCP_REDIRECT_URI)
.start_authorization(
&["mcp", "profile", "email"],
MCP_REDIRECT_URI,
Some("Test MCP Client"),
)
.await
.context("Failed to start authorization")?;