OAuth discovery metadata
OAuth discovery metadata tells an MCP client where to begin sign-in and which authorization features the server supports. It is intended for client software; most users should follow Connect clients instead. Reading metadata does not authorize the client or return an access token.
For the MCP connection, start with the protected-resource metadata at https://mcp.chatway.app/.well-known/oauth-protected-resource/mcp and follow its authorization-server link. The authorization-server metadata is at https://mcp.chatway.app/.well-known/oauth-authorization-server.
GET https://developers.chatway.app/.well-known/{document}Example request
curl -X GET "https://developers.chatway.app/.well-known/oauth-authorization-server"Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
document | path | Yes | string enum: oauth-authorization-server, oauth-protected-resource | Public discovery document served by the documentation host. For an MCP connection, use the canonical MCP metadata URLs in the operation description. Example: oauth-authorization-server |
Responses
200
application/json
issuer (string, required)authorization_endpoint (string, required)token_endpoint (string, required)registration_endpoint (string, required)response_types_supported (array, required)code_challenge_methods_supported (array, required)scopes_supported (array, required)grant_types_supported (array, required)service_documentation (string, required)
Examples
Response 200 example: Docs-host authorization-server metadata
{
"issuer": "https://mcp.chatway.app",
"authorization_endpoint": "https://mcp.chatway.app/oauth/authorize",
"token_endpoint": "https://mcp.chatway.app/oauth/token",
"registration_endpoint": "https://mcp.chatway.app/oauth/register",
"response_types_supported": [
"code"
],
"code_challenge_methods_supported": [
"S256"
],
"scopes_supported": [
"mcp:use"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"service_documentation": "https://developers.chatway.app/auth.md"
}Response 200 example: Docs-host protected-resource metadata
{
"resource": "https://developers.chatway.app",
"resource_name": "Chatway",
"resource_documentation": "https://developers.chatway.app/mcp/guides.mcp_overview",
"authorization_servers": [
"https://mcp.chatway.app"
],
"scopes_supported": [
"mcp:use"
],
"bearer_methods_supported": [
"header"
]
}