@@ -12,13 +12,13 @@ weight: 15
12
12
13
13
The Model Context Protocol provides authorization capabilities at the transport level,
14
14
enabling MCP clients to make requests to restricted MCP servers on behalf of resource
15
- owners. This specification defines the authorization flow for HTTP+SSE transport .
15
+ owners. This specification defines the authorization flow for HTTP-based transports .
16
16
17
17
### 1.2 Protocol Requirements
18
18
19
19
Authorization is ** OPTIONAL** for MCP implementations. When supported:
20
20
21
- - Implementations using an HTTP+SSE transport ** SHOULD** conform to this specification.
21
+ - Implementations using an HTTP-based transport ** SHOULD** conform to this specification.
22
22
- Implementations using an STDIO transport ** SHOULD NOT** follow this specification, and
23
23
instead retrieve credentials from the environment.
24
24
- Implementations using alternative transports ** MUST** follow established security best
@@ -120,19 +120,17 @@ For example: `MCP-Protocol-Version: 2024-11-05`
120
120
121
121
#### 2.3.2 Authorization Base URL
122
122
123
- The authorization base URL ** MUST** be determined from the [ SSE
124
- endpoint] ({{< ref "specification/draft/basic/transports#http-with-sse" >}}) URL by
123
+ The authorization base URL ** MUST** be determined from the MCP server URL by
125
124
discarding any existing ` path ` component. For example:
126
125
127
- If the SSE endpoint is ` https://api.example.com/v1/sse ` , then:
126
+ If the MCP server URL is ` https://api.example.com/v1/mcp ` , then:
128
127
129
128
- The authorization base URL is ` https://api.example.com `
130
129
- The metadata endpoint ** MUST** be at
131
130
` https://api.example.com/.well-known/oauth-authorization-server `
132
131
133
132
This ensures authorization endpoints are consistently located at the root level of the
134
- domain serving the SSE endpoint, regardless of any path components in the SSE endpoint
135
- URL.
133
+ domain hosting the MCP server, regardless of any path components in the MCP server URL.
136
134
137
135
#### 2.3.3 Fallbacks for Servers without Metadata Discovery
138
136
@@ -147,7 +145,7 @@ For servers that do not implement OAuth 2.0 Authorization Server Metadata, clien
147
145
| Token Endpoint | /token | Used for token exchange & refresh |
148
146
| Registration Endpoint | /register | Used for dynamic client registration |
149
147
150
- For example, with an SSE endpoint of ` https://api.example.com/v1/sse ` , the default
148
+ For example, with an MCP server hosted at ` https://api.example.com/v1/mcp ` , the default
151
149
endpoints would be:
152
150
153
151
- ` https://api.example.com/authorize `
0 commit comments