mcp variables error

This commit is contained in:
Pete Matsyburka committed 2026-11-14 15:44:43 +02:00
1 parent 353a0bc39c
commit 82a6910181
1 file changed
+6
@@ -78,6 +78,12 @@ module Mcp
return render_tool_error('Template has no fields') if @template.fields.blank? return render_tool_error('Template has no fields') if @template.fields.blank?
if @template.variables_schema.present?
Rollbar.warning("MCP send variables template: #{@template.id}") if defined?(Rollbar)
return render_tool_error('Templates with variables are not supported')
end
submitters = (mcp_params['submitters'] || []).map do |s| submitters = (mcp_params['submitters'] || []).map do |s|
attrs = s.slice('email', 'name', 'role', 'phone').compact_blank attrs = s.slice('email', 'name', 'role', 'phone').compact_blank