guankai opened a new pull request, #13567:
URL: https://github.com/apache/apisix/pull/13567

   ### What changed
   
   This fixes how `mcp-bridge` sends stderr notifications from the child 
process.
   
   Before this, stderr content was put into a JSON string directly. If the 
stderr line had quotes, backslashes, or newlines, the plugin could send invalid 
JSON to the MCP client.
   
   This patch builds the notification with `core.json.encode` instead.
   
   I also added docs for `mcp-bridge`, since the plugin is already in the 
default plugin list but did not have plugin docs yet.
   
   ### Tests
   
   Ran locally:
   
   - `bash ./utils/check-plugins-code.sh`
   - `python3 utils/check-category.py`
   - `PYTHONPATH=/private/tmp/apisix-zhon-check python3 
utils/fix-zh-doc-segment.py`
   - `git diff --check`
   
   I could not run the full `t/plugin/mcp-bridge.t` locally because this 
checkout is missing the `test-nginx` Perl dependency.


-- 
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