Files
Cursor Agent cd74b3bf4b fix(mcp): prevent panic on nil interface conversion for tool arguments
Add safe argument extraction helper functions in internal/mcp/args.go
that handle nil values gracefully instead of panicking on direct type
assertions.

This fixes the issue where MCP config tools panic with:
'interface conversion: interface {} is nil, not string'
when called via Claude Desktop with protocol version 2025-11-25.

Affected tools:
- nginx_config_list
- nginx_config_get
- nginx_config_add
- nginx_config_modify
- nginx_config_rename
- nginx_config_mkdir
- nginx_config_history
- nginx_config_enable

Fixes #36ec

Co-authored-by: Jacky <me@jackyu.cn>
2026-04-04 02:09:42 +00:00
..
2026-02-07 21:38:44 +08:00
2025-11-07 18:23:23 +08:00
2026-03-15 16:17:04 +00:00
2024-10-24 18:22:45 +08:00
2025-10-03 14:33:07 +08:00
2025-04-08 15:59:09 +08:00
2025-10-03 14:33:07 +08:00