add plugins
This commit is contained in:
7
plugins/notebook-tools-filter.js
Normal file
7
plugins/notebook-tools-filter.js
Normal 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)
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user