How to Check Breaking Changes with Copilot

Check library upgrade changes with Copilot and ToolRouter. Review breaking changes before upgrading in your IDE.

Tool
Library Docs icon
Library Docs

Copilot checks breaking changes and immediately applies the findings to your codebase — fetch the migration guide, identify which patterns in your code are affected, and start updating right in the editor without context-switching.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Library Docs tool:

  1. In Copilot Chat: "Get the migration docs for [package] v[old] to v[new]"
  2. Copilot retrieves the breaking changes
  3. Paste a code snippet: "Does this code need to change for the new version?"
  4. Copilot identifies the specific changes needed and rewrites the affected sections

Example Prompt

Try this with Copilot using the Library Docs tool
Get the migration documentation for Tailwind CSS v3 to v4 and identify which of these CSS classes in my component need to be updated: [paste component code].

Tips

  • Paste your actual code alongside the migration docs query — Copilot applies the changes directly
  • Ask Copilot to write a codemod script if the same pattern needs updating in multiple files
  • Check the docs before merging the upgrade branch to validate you have not missed any changes