Skip to content

Commit 2ed9c64

Browse files
committed
Replace with cloudflare/workers-oauth-provider
1 parent 1fd5a9b commit 2ed9c64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/content/docs/agents/model-context-protocol/authorization.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ When building a [Model Context Protocol (MCP)](https://modelcontextprotocol.io)
1616

1717
The Model Context Protocol uses [a subset of OAuth 2.1 for authorization](https://spec.modelcontextprotocol.io/specification/draft/basic/authorization/). OAuth allows your users to grant limited access to resources, without them having to share API keys or other credentials.
1818

19-
Cloudflare provides an [OAuth Provider Library](https://github.com/cloudflare/workers-mcp/tree/next/vendor/workers-oauth-provider) that implements the provider side of the OAuth 2.1 protocol, allowing you to easily add authorization to your MCP server.
19+
Cloudflare provides an [OAuth Provider Library](https://github.com/cloudflare/workers-oauth-provider) that implements the provider side of the OAuth 2.1 protocol, allowing you to easily add authorization to your MCP server.
2020

2121
You can use the OAuth Provider Library in three ways:
2222

@@ -30,9 +30,9 @@ The following sections describe each of these options and link to runnable code
3030

3131
### (1) Your MCP Server handles authorization and authentication itself
3232

33-
Your MCP Server, using the [OAuth Provider Library](https://github.com/cloudflare/workers-mcp/tree/next/vendor/workers-oauth-provider), can handle the complete OAuth authorization flow, without any third-party involvement.
33+
Your MCP Server, using the [OAuth Provider Library](https://github.com/cloudflare/workers-oauth-provider), can handle the complete OAuth authorization flow, without any third-party involvement.
3434

35-
The [Workers OAuth Provider Library](https://github.com/cloudflare/workers-mcp/tree/next/vendor/workers-oauth-provider) is a Cloudflare Worker that implements a [`fetch()` handler](/workers/runtime-apis/handlers/fetch/), and handles incoming requests to your MCP server.
35+
The [Workers OAuth Provider Library](https://github.com/cloudflare/workers-oauth-provider) is a Cloudflare Worker that implements a [`fetch()` handler](/workers/runtime-apis/handlers/fetch/), and handles incoming requests to your MCP server.
3636

3737
You provide your own handlers for your MCP Server's API, and autentication and authorization logic, and URI paths for the OAuth endpoints, as shown below:
3838

@@ -77,7 +77,7 @@ Remember — [authentication is different from authorization](https://www.cloud
7777

7878
### (2) Third-party OAuth Provider
7979

80-
The [OAuth Provider Library](https://github.com/cloudflare/workers-mcp/tree/next/vendor/workers-oauth-provider) can be configured to use a third-party OAuth provider, such as GitHub or Google. You can see a complete example of this in the [GitHub example](/agents/guides/remote-mcp-server-github).
80+
The [OAuth Provider Library](https://github.com/cloudflare/workers-oauth-provider) can be configured to use a third-party OAuth provider, such as GitHub or Google. You can see a complete example of this in the [GitHub example](/agents/guides/remote-mcp-server-github).
8181

8282
When you use a third-party OAuth provider, you must provide a handler to the `OAuthProvider` that implements the OAuth flow for the third-party provider.
8383

@@ -120,13 +120,13 @@ sequenceDiagram
120120
M->>C: MCP access token
121121
```
122122

123-
Read the docs for the [Workers oAuth Provider Library](https://github.com/cloudflare/workers-mcp/tree/next/vendor/workers-oauth-provider) for more details.
123+
Read the docs for the [Workers oAuth Provider Library](https://github.com/cloudflare/workers-oauth-provider) for more details.
124124

125125
### (3) Bring your own OAuth Provider
126126

127127
If your application already implements an Oauth Provider itself, or you use Stytch, Auth0, or authorization-as-a-service provider, you can use this in the same way that you would use a third-party OAuth provider, described above in (2).
128128

129129
## Next steps
130130

131-
- [Learn how to use the Workers OAuth Provider Library](https://github.com/cloudflare/workers-mcp/tree/next/vendor/workers-oauth-provider)
131+
- [Learn how to use the Workers OAuth Provider Library](https://github.com/cloudflare/workers-oauth-provider)
132132
- Learn how to use a third-party OAuth provider, using the [GitHub](/agents/guides/remote-mcp-server-github/) and [Slack](/agents/guides/remote-mcp-server-slack/) examples.

0 commit comments

Comments
 (0)