mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
* fix(mcp): write failure spend log for guardrail-blocked /mcp-rest/tools/call call_tool_rest_api only translated exceptions to HTTP responses, so a pre_mcp_call guardrail block never reached failure_handler / async_failure_handler / post_call_failure_hook and no LiteLLM_SpendLogs failure row was written. Extract the failure logging from call_mcp_tool into _fire_mcp_tool_call_failure_logging and run it in the REST route for anything raised between common_processing_pre_call_logic and execute_mcp_tool Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(mcp): keep the original REST tool error when failure logging raises Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(mcp): log virtual mcp_tool_call failures and keep REST success latency scoped to tool execution Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: yucheng <yucheng@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| mcp_server | ||