File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ async def ingest_repository(
80
80
81
81
except Exception as e :
82
82
logger .error (f"Error during ingestion: { e } " , exc_info = True )
83
- return f "Error ingesting repository: { e !s } "
83
+ return "Error ingesting repository: An internal error occurred "
84
84
85
85
86
86
async def start_mcp_server_tcp (host : str = "0.0.0.0" , port : int = 8001 ):
@@ -181,13 +181,14 @@ async def handle_message(message: dict):
181
181
},
182
182
)
183
183
except Exception as e :
184
+ logger .error (f"Tool execution failed: { e } " , exc_info = True )
184
185
return JSONResponse (
185
186
{
186
187
"jsonrpc" : "2.0" ,
187
188
"id" : message .get ("id" ),
188
189
"error" : {
189
190
"code" : - 32603 ,
190
- "message" : f "Tool execution failed: { e !s } " ,
191
+ "message" : "Tool execution failed" ,
191
192
},
192
193
},
193
194
)
@@ -224,7 +225,7 @@ async def handle_message(message: dict):
224
225
"id" : message .get ("id" ) if "message" in locals () else None ,
225
226
"error" : {
226
227
"code" : - 32603 ,
227
- "message" : f "Internal error: { e !s } " ,
228
+ "message" : "Internal server error " ,
228
229
},
229
230
},
230
231
)
You can’t perform that action at this time.
0 commit comments