MaMengzhen opened a new issue, #6267:
URL: https://github.com/apache/shenyu/issues/6267

   ### Is there an existing issue for this?
   
   - [x] I have searched the existing issues
   
   ### Current Behavior
   
   In the addCustoms Header method, when obtaining the value of the header, 
only the basic type is checked. If a string type check is added, when testing 
the MCP tool, except for string type, numerical and Boolean basic types cannot 
be replaced with the value of the header.
   
   <img width="3456" height="1986" alt="Image" 
src="https://github.com/user-attachments/assets/9ac72454-754b-4a20-9cf0-f896441e257b";
 />
   
   <img width="2792" height="2074" alt="Image" 
src="https://github.com/user-attachments/assets/8a0cc0cf-f2b4-4a46-a8c0-440f42dddcfb";
 />
   
   ### Expected Behavior
   
   In the addCustoms Header method, when obtaining the value of the header, 
only the basic type is checked. If a string type check is added, when testing 
the MCP tool, except for string type, numerical and Boolean basic types cannot 
be replaced with the value of the header.
   
   ### Steps To Reproduce
   
   1. Convert an existing interface with a header into an MCP tool.
   2. Test the MCP tool.
   3. Enter the input parameters as numbers.
   4. Enter the addCustoms Header method and view the code for replacing header 
values.
   
   ### Environment
   
   ```markdown
   ShenYu version(s):2.7.1-SNAPSHOT
   ```
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to