File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @decocms/mesh" ,
3- "version" : " 1.0.0-alpha.44 " ,
3+ "version" : " 1.0.0-alpha.45 " ,
44 "description" : " MCP Mesh - Self-hostable MCP Gateway for managing AI connections and tools" ,
55 "license" : " MIT" ,
66 "author" : " Deco team" ,
Original file line number Diff line number Diff line change @@ -130,6 +130,19 @@ export function createApp(options: CreateAppOptions = {}) {
130130 // Request logging
131131 app . use ( "*" , logger ( ) ) ;
132132
133+ // Log response body for 5xx errors
134+ app . use ( "*" , async ( c , next ) => {
135+ await next ( ) ;
136+ if ( c . res . status >= 500 ) {
137+ const clonedRes = c . res . clone ( ) ;
138+ const body = await clonedRes . text ( ) ;
139+ console . error (
140+ `[5xx Response] ${ c . req . method } ${ c . req . path } - ${ c . res . status } :` ,
141+ body ,
142+ ) ;
143+ }
144+ } ) ;
145+
133146 // ============================================================================
134147 // Health Check & Metrics
135148 // ============================================================================
Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ export async function fetchToolsFromMCP(
6969 name : tool . name ,
7070 description : tool . description ?? undefined ,
7171 inputSchema : tool . inputSchema ?? { } ,
72- outputSchema : tool . outputSchema ?? undefined ,
72+ outputSchema : tool . outputSchema
73+ ? // We strive to have lenient output schemas, so allow additional properties
74+ { ...tool . outputSchema , additionalProperties : true }
75+ : undefined ,
7376 } ) ) ;
7477 } catch ( error ) {
7578 console . error (
You can’t perform that action at this time.
0 commit comments