Skip to content

Commit 17c5451

Browse files
authored
Use @cloudflare/workers-oauth-provider in relevant demos (#16)
* Use @cloudflare/workers-oauth-provider * Add @cloudflare/workers-oauth-provider as dependency * Fix merge conflict
1 parent 074df21 commit 17c5451

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

demos/remote-mcp-server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"wrangler": "^4.2.0"
1818
},
1919
"dependencies": {
20+
"@cloudflare/workers-oauth-provider": "^0.0.2",
2021
"@modelcontextprotocol/sdk": "^1.7.0",
2122
"hono": "^4.7.4",
2223
"zod": "^3.24.2"

demos/remote-mcp-server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import app from "./routes";
22
import { DurableMCP } from "workers-mcp";
33
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
44
import { z } from "zod";
5-
import OAuthProvider from "workers-mcp/vendor/workers-oauth-provider/oauth-provider.js";
5+
import OAuthProvider from "@cloudflare/workers-oauth-provider";
66

77
export class MyMCP extends DurableMCP {
88
server = new McpServer({

demos/remote-mcp-server/src/routes/_app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Hono } from "hono";
2-
import type { OAuthHelpers } from "workers-mcp/vendor/workers-oauth-provider/oauth-provider.js";
2+
import type { OAuthHelpers } from "@cloudflare/workers-oauth-provider";
33

44
export type Bindings = Env & {
55
OAUTH_PROVIDER: OAuthHelpers;

demos/remote-mcp-server/src/routes/approve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Route: Approve (POST)
22
import { html } from "hono/html";
3+
import { AuthRequest } from "@cloudflare/workers-oauth-provider";
34
import { layout } from "../utils";
45
import app from "./_app";
5-
import type { AuthRequest } from "workers-mcp/vendor/workers-oauth-provider/oauth-provider.js";
66

77
app.post("/approve", async (c) => {
88
const body = await c.req.parseBody();

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@
4747
"workers-ai-provider": "^0.2.0",
4848
"zod": "^3.24.2"
4949
},
50-
"workspaces": ["libs/*", "demos/*", "packages/*"]
50+
"workspaces": [
51+
"libs/*",
52+
"demos/*",
53+
"packages/*"
54+
]
5155
}

0 commit comments

Comments
 (0)