[dev-v5] feat: Implement Migration Service and Resources for Fluent UI Blazor v4 to v5#4546
Conversation
…v4 to v5 - Added MigrationService to handle migration documentation and component migration guides. - Introduced MigrationResources to provide general migration overview and component-specific migration details. - Updated MigrationPrompts to utilize MigrationService for generating migration guidance. - Created MigrationTools for AI agents to access migration information programmatically. - Added unit tests for MigrationService, MigrationResources, and MigrationTools to ensure functionality and correctness. - Enhanced migration documentation with detailed guidance for components and general migration steps.
There was a problem hiding this comment.
Pull request overview
Adds a dedicated migration documentation surface to the MCP server so AI agents can retrieve a v4→v5 overview plus per-component migration guides via tools/resources/prompts.
Changes:
- Introduces
MigrationServiceto load migration markdown content from embedded resources and expose overview + component guides. - Adds MCP
MigrationToolsandMigrationResourcesfor programmatic access to migration guidance. - Updates
MigrationPromptsto generate v4→v5 guidance usingMigrationService, and adds unit tests covering the new behavior.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Tools/McpServer.Tests/Tools/MigrationToolsTests.cs | Adds test coverage for the new migration MCP tools output and error cases. |
| tests/Tools/McpServer.Tests/Services/MigrationServiceTests.cs | Adds unit tests for migration doc loading, lookup behavior, and name extraction. |
| tests/Tools/McpServer.Tests/Resources/MigrationResourcesTests.cs | Adds tests for migration MCP resources (overview, list, component lookup). |
| tests/Tools/McpServer.Tests/Prompts/MigrationPromptsTests.cs | Updates prompt tests to use MigrationService and validates new prompt sections/behavior. |
| src/Tools/McpServer/Tools/MigrationTools.cs | New MCP tool surface for migration overview, listing, and component guide retrieval. |
| src/Tools/McpServer/Services/MigrationService.cs | New service that discovers/parses embedded migration markdown and exposes query APIs. |
| src/Tools/McpServer/Resources/MigrationResources.cs | New MCP resources providing migration overview, component list, and component guide content. |
| src/Tools/McpServer/Prompts/MigrationPrompts.cs | Switches prompts from DocumentationService to MigrationService and enriches output. |
| src/Tools/McpServer/Extensions/ServiceCollectionExtensions.cs | Registers MigrationService in DI for prompts/tools/resources. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Both review comments have been addressed:
All 457 tests pass after these changes. |
AClerbois
left a comment
There was a problem hiding this comment.
Both review comments have been addressed and fixes committed. All 457 tests pass.
…Name and refine resource loading for migration documentation
…-to-help-agent-to-migrate-v4-to-v5
…-to-help-agent-to-migrate-v4-to-v5
Pull Request
📖 Description
✅ Checklist
General
Component-specific