<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/porting-wpf-to-avalonia-with-ai-i9kxsiprb" -->

---
title: Porting WPF to Avalonia with AI | daily.dev
description: The Avalonia Build MCP server now exposes the WPF-to-Avalonia migration workflow as MCP tools instead of a single prompt, making it discoverable across more...
canonical: https://daily.dev/posts/porting-wpf-to-avalonia-with-ai-i9kxsiprb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Porting WPF to Avalonia with AI | daily.dev
og:description: The Avalonia Build MCP server now exposes the WPF-to-Avalonia migration workflow as MCP tools instead of a single prompt, making it discoverable across more...
og:url: https://daily.dev/posts/porting-wpf-to-avalonia-with-ai-i9kxsiprb
og:image: https://api.daily.dev/og/posts/I9KXsIPrb.png
og:image:alt: Porting WPF to Avalonia with AI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Porting WPF to Avalonia with AI

**[Avalonia UI Blog](https://daily.dev/sources/avalonia-blog)** · 9 min read · 0 upvotes · 0 comments

## Summary

The Avalonia Build MCP server now exposes the WPF-to-Avalonia migration workflow as MCP tools instead of a single prompt, making it discoverable across more MCP-compatible editors like VS Code, Cursor, Visual Studio, and Rider. New tools include analyze_wpf_project for assessing a codebase, migrate_to_xpf for a drop-in path via Avalonia XPF, migrate_to_avalonia for a phased native rewrite, and lookup_wpf_to_avalonia_mapping for on-demand conversion guidance. The post frames the key decision as choosing between a native Avalonia rewrite versus Avalonia XPF for complex, control-heavy codebases, and stresses that AI handles mechanical conversion work while developers retain architectural judgement.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://avaloniaui.net/blog/porting-wpf-to-avalonia-with-ai>

## Questions this post answers

### What new tools does the Avalonia Build MCP server provide for migrating a WPF app to Avalonia?

The Avalonia Build MCP server exposes analyze_wpf_project, migrate_to_xpf, migrate_to_avalonia, and lookup_wpf_to_avalonia_mapping as MCP tools, replacing a single MCP prompt that wasn't reliably discoverable in editors besides Claude Code and Cursor. analyze_wpf_project scans target frameworks, third-party controls, MVVM frameworks, and P/Invoke calls to recommend a migration route before any code changes.

_Teams planning a WPF migration can track tooling changes like this one on daily.dev._

### Should I migrate a WPF application to native Avalonia or to Avalonia XPF?

Native Avalonia suits straightforward WPF apps without heavy third-party control dependencies, giving access to FluentTheme, compiled bindings, and deployment across Windows, macOS, Linux, mobile, browser, and embedded targets. Avalonia XPF is the safer route for large codebases relying on DependencyProperty, VisualStateManager, DataTrigger, custom controls, or deep code-behind, since existing XAML and code-behind can keep working with fewer changes.

_Developers weighing framework migration paths can follow comparisons like this on daily.dev._

### Which MCP-compatible tools can use the Avalonia Build MCP server for WPF migration?

The free, hosted Avalonia Build MCP server works with Claude Code, Cursor, GitHub Copilot, Rider AI Assistant, Windsurf, Visual Studio, VS Code, Gemini CLI, and Claude Desktop, requiring no local installation. It runs as a remote endpoint, so developers just connect their MCP-compatible assistant and point it at a WPF solution.

_Developers adopting new MCP servers for their coding agents can stay current via daily.dev._

## Similar posts on daily.dev

- [Migrating WPF applications. Avalonia UI or Avalonia XPF?](https://daily.dev/posts/migrating-wpf-applications-avalonia-ui-or-avalonia-xpf--t2zysau72) · Avalonia UI Blog · 0 upvotes · 0 comments
- [WPF on Mac](https://daily.dev/posts/wpf-on-mac-koy5gvhcw) · Avalonia UI Blog · 0 upvotes · 0 comments
- [From WPF to Avalonia: A Guide for .NET Developers Exploring Cross-Platform UI Frameworks](https://daily.dev/posts/from-wpf-to-avalonia-a-guide-for-net-developers-exploring-cross-platform-ui-frameworks-mn8g44vfb) · Avalonia UI Blog · 0 upvotes · 0 comments
- [XAML.io adds “Migrate from WPF”: run an existing WPF application on the web](https://daily.dev/posts/xaml-io-adds-migrate-from-wpf-run-an-existing-wpf-application-on-the-web-zevserycy) · SD Times · 3 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#.net](https://daily.dev/tags/.net), [#mcp](https://daily.dev/tags/mcp), [#wpf](https://daily.dev/tags/wpf), [#avalonia](https://daily.dev/tags/avalonia)

[View this post on daily.dev](https://daily.dev/posts/porting-wpf-to-avalonia-with-ai-i9kxsiprb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Porting WPF to Avalonia with AI","url":"https://daily.dev/posts/porting-wpf-to-avalonia-with-ai-i9kxsiprb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/porting-wpf-to-avalonia-with-ai-i9kxsiprb"},"datePublished":"2026-10-04T13:25:34.536Z","dateModified":"2026-10-04T13:26:12.105Z","description":"The Avalonia Build MCP server now exposes the WPF-to-Avalonia migration workflow as MCP tools instead of a single prompt, making it discoverable across more...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d8a99e685b8894d64397444166375ab5?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d8a99e685b8894d64397444166375ab5?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Avalonia UI Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Avalonia UI Blog","logo":"https://media.daily.dev/image/upload/s--dntcJgqc--/f_auto,q_auto/v1773656510/logos/avalonia-blog?_a=BAMAMiiu0","url":"https://daily.dev/sources/avalonia-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/porting-wpf-to-avalonia-with-ai-i9kxsiprb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,.net,mcp,wpf,avalonia","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Avalonia UI Blog","item":"https://daily.dev/sources/avalonia-blog"},{"@type":"ListItem","position":3,"name":"Porting WPF to Avalonia with AI"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/porting-wpf-to-avalonia-with-ai-i9kxsiprb#faq","mainEntity":[{"@type":"Question","name":"What new tools does the Avalonia Build MCP server provide for migrating a WPF app to Avalonia?","acceptedAnswer":{"@type":"Answer","text":"The Avalonia Build MCP server exposes analyze_wpf_project, migrate_to_xpf, migrate_to_avalonia, and lookup_wpf_to_avalonia_mapping as MCP tools, replacing a single MCP prompt that wasn't reliably discoverable in editors besides Claude Code and Cursor. analyze_wpf_project scans target frameworks, third-party controls, MVVM frameworks, and P/Invoke calls to recommend a migration route before any code changes. Teams planning a WPF migration can track tooling changes like this one on daily.dev."}},{"@type":"Question","name":"Should I migrate a WPF application to native Avalonia or to Avalonia XPF?","acceptedAnswer":{"@type":"Answer","text":"Native Avalonia suits straightforward WPF apps without heavy third-party control dependencies, giving access to FluentTheme, compiled bindings, and deployment across Windows, macOS, Linux, mobile, browser, and embedded targets. Avalonia XPF is the safer route for large codebases relying on DependencyProperty, VisualStateManager, DataTrigger, custom controls, or deep code-behind, since existing XAML and code-behind can keep working with fewer changes. Developers weighing framework migration paths can follow comparisons like this on daily.dev."}},{"@type":"Question","name":"Which MCP-compatible tools can use the Avalonia Build MCP server for WPF migration?","acceptedAnswer":{"@type":"Answer","text":"The free, hosted Avalonia Build MCP server works with Claude Code, Cursor, GitHub Copilot, Rider AI Assistant, Windsurf, Visual Studio, VS Code, Gemini CLI, and Claude Desktop, requiring no local installation. It runs as a remote endpoint, so developers just connect their MCP-compatible assistant and point it at a WPF solution. Developers adopting new MCP servers for their coding agents can stay current via daily.dev."}}]}
```

