YueGuobin 0d22d275fb
fix: correct MCP template tool parameter handling for nested kwargs
Fixed an issue where MCP template tools (update_template, create_template)
were not correctly handling nested kwargs parameter structure from MCP clients.

The problem occurred when MCP clients passed parameters in the format:
  {'template_id': 'xxx', 'kwargs': {'adapters': 3}}

The original code was passing the entire kwargs dictionary as a parameter,
instead of extracting the actual update parameters from within it.

Changes:
- Modified update_template_handler to extract params from nested kwargs
- Modified create_template_handler to handle the same issue

This fix ensures that template updates through MCP tools now work correctly,
allowing proper modification of template properties like adapters count.
2026-06-06 23:26:21 +08:00
..
2026-05-13 00:34:05 +08:00
2026-03-28 09:54:22 +08:00
2026-04-04 19:55:13 +08:00
2026-05-13 00:34:05 +08:00
2024-04-22 18:51:29 +07:00
2026-05-13 00:34:05 +08:00
2022-01-19 22:28:36 +10:30
2026-06-02 00:04:50 +02:00