Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article shows you how to configure GitHub Copilot app modernization on IntelliJ to optimize the experience. Because app modernization relies on Model Context Protocol (MCP) tools, these adjustments are useful to ensure smoother execution.
Enable auto-approve in MCP sampling
Enabling auto-approve helps prevent repeated approval prompts during the upgrade process. Use the following steps:
In IntelliJ, go to GitHub Copilot > Model Context Protocol (MCP). Then, under Auto Approve for Sampling, select Configure.
Locate java-upgrade and then select Auto Approve.
Enable Claude Sonnet 4 model access in MCP sampling
For optimal upgrade results, we recommend enabling access to the Claude Sonnet 4 model (or newer). Use the following steps to configure model access:
In the chat window, select Configure tools.
Find java-upgrade and then select Configure Model Access.
Ensure that Claude Sonnet 4 (or a newer model) is selected.
Increase maximum requests to 100
Because app modernization tasks can be long-running, it's best to increase the maximum requests per turn in Agent Mode from the default of 25 to 100. You can adjust this setting directly in the GitHub Copilot settings.