Skip to content

Commit 1d9ed01

Browse files
dsarnoclaude
andcommitted
Fix manage_asset error handling to use ctx.error
Changed ctx.warning to ctx.error for property parse errors in manage_asset tool to properly handle error cases. This ensures parse errors are reported as errors rather than warnings, and fixes compatibility with FastMCP Context API. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 1628474 commit 1d9ed01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/src/services/tools/manage_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async def _normalize_properties(raw: dict[str, Any] | str | None) -> tuple[dict[
8080

8181
properties, parse_error = await _normalize_properties(properties)
8282
if parse_error:
83-
await ctx.warning(parse_error)
83+
await ctx.error(parse_error)
8484
return {"success": False, "message": parse_error}
8585

8686
# Coerce numeric inputs defensively

0 commit comments

Comments
 (0)