File tree 2 files changed +1
-5
lines changed
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @deco/mcp" ,
3
- "version" : " 0.3.3 " ,
3
+ "version" : " 0.3.4 " ,
4
4
"exports" : " ./mod.ts" ,
5
5
"tasks" : {
6
6
"check" : " deno fmt && deno lint && deno check mod.ts"
Original file line number Diff line number Diff line change @@ -282,7 +282,6 @@ function registerTools<TManifest extends AppManifest>(
282
282
} ) ;
283
283
}
284
284
285
- const UNAUTHORIZED_PATHS = [ "/live/release" , "/.decofile" ] ;
286
285
const MESSAGES_ENDPOINT = "/mcp/messages" ;
287
286
export function mcpServer < TManifest extends AppManifest > (
288
287
deco : Deco < TManifest > ,
@@ -347,9 +346,6 @@ export function mcpServer<TManifest extends AppManifest>(
347
346
transport . close ( ) ; // Close the transport after handling the message
348
347
return response ;
349
348
}
350
- if ( UNAUTHORIZED_PATHS . some ( ( p ) => path . startsWith ( p ) ) ) {
351
- return c . json ( { error : "Unauthorized" } , 401 ) ;
352
- }
353
349
await next ( ) ;
354
350
} ;
355
351
}
You can’t perform that action at this time.
0 commit comments