Use your AI agent
Use the Median MCP with your AI agent to replace your app's custom JavaScript. See Median MCP server to set it up.
The MCP can’t read your current JavaScript, so give your agent the complete script you want.Injecting JavaScript without <script> tags
JavaScript should be written exactly as it would appear in a standalone .js file. Do not include HTML tags like <script>. The code will automatically be executed when your site loads in the app.