add plugins

This commit is contained in:
jinhui.li
2025-06-18 12:20:07 +08:00
parent 84cb9a2009
commit 57a7da14a3
6 changed files with 77 additions and 22 deletions

View File

@@ -0,0 +1,7 @@
module.exports = async function handle(req, res) {
if (req?.body?.tools?.length) {
req.body.tools = req.body.tools.filter(
(tool) => !["NotebookRead", "NotebookEdit", "mcp__ide__executeCode"].includes(tool.name)
);
}
};