Have a look at code mode mcp. https://github.com/universal-tool-calling-protocol/code-mode