feat: add automatic application_type inference (#904)

Implement requirements introduced by
[SEP-337](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/837)

Fixes #903

---------

Co-authored-by: Maciej Kisiel <mkisiel@google.com>
This commit is contained in:
Guglielmo Colombo 2026-04-27 13:02:01 +02:00 • committed by GitHub
commit 2643b22a4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,6 +89,11 @@ type ClientRegistrationMetadata struct {
// SoftwareStatement is an OPTIONAL JWT that asserts client metadata values.
// Values in the software statement take precedence over other metadata values.
SoftwareStatement string `json:"software_statement,omitempty"`
// ApplicationType is an OPTIONAL string that indicates the type of application.
// Valid values are "native" and "web".
// If omitted, OIDC-compliant authorization servers default to "web".
ApplicationType string `json:"application_type,omitempty"`
}
// ClientRegistrationResponse represents the fields returned by the Authorization Server