mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-25 01:02:15 +00:00
fix(mcp): return 404 when edit_mcp_toolset target does not exist
This commit is contained in:
parent
435ace9870
commit
284b26dc6d
1 changed files with 5 additions and 0 deletions
|
|
@ -2166,6 +2166,11 @@ if MCP_AVAILABLE:
|
|||
litellm_changed_by or user_api_key_dict.user_id or LITELLM_PROXY_ADMIN_NAME
|
||||
)
|
||||
result = await update_mcp_toolset(prisma_client, payload, touched_by)
|
||||
if result is None:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail={"error": f"Toolset '{payload.toolset_id}' not found."},
|
||||
)
|
||||
from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
|
||||
global_mcp_server_manager,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue