diff --git a/README.md b/README.md index 2ac5b55..85aba12 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ const handler = createMcpHandler( verboseLogs: true, } ); -export { handler as GET, handler as POST }; +export { handler as GET, handler as POST, handler as DELETE }; ``` ### Advanced Routing @@ -304,7 +304,7 @@ const authHandler = withMcpAuth(handler, verifyToken, { resourceMetadataPath: "/.well-known/oauth-protected-resource", // Optional: Custom metadata path }); -export { authHandler as GET, authHandler as POST }; +export { authHandler as GET, authHandler as POST, authHandler as DELETE }; ``` ### OAuth Protected Resource Metadata diff --git a/examples/auth/route.ts b/examples/auth/route.ts index b81a12a..25c958c 100644 --- a/examples/auth/route.ts +++ b/examples/auth/route.ts @@ -85,5 +85,5 @@ const authHandler = withMcpAuth(handler, verifyToken, { resourceMetadataPath: "/.well-known/oauth-protected-resource", }); -// Export the handler for both GET and POST methods -export { authHandler as GET, authHandler as POST }; +// Export the handler for GET, POST, and DELETE HTTP methods +export { authHandler as GET, authHandler as POST, authHandler as DELETE }; diff --git a/examples/route.ts b/examples/route.ts index cdd4f7a..1f56f6c 100644 --- a/examples/route.ts +++ b/examples/route.ts @@ -27,4 +27,4 @@ const handler = createMcpRouteHandler( } ); -export { handler as GET, handler as POST }; +export { handler as GET, handler as POST, handler as DELETE }; diff --git a/src/cli/index.ts b/src/cli/index.ts index e3d27ca..df1afba 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -39,7 +39,7 @@ const handler = createMcpHandler( } ); -export { handler as GET, handler as POST }; +export { handler as GET, handler as POST, handler as DELETE }; `; async function detectPackageManager(): Promise<