Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
AI-powered toolkit for Microsoft Agent Framework (MAF) migrations — agents, skills, MCP server, and self-updating guide
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Manage databases & data.
MCP server for interacting with MySQL databases with write operations support
Same catalog task: Manage databases & data.
MCP server for DBX — query databases from Claude Code, Cursor, and other AI agents
Same catalog task: Manage databases & data.
Enhanced PostgreSQL MCP server with read and write capabilities. Based on @modelcontextprotocol/server-postgres by Anthropic.
Fetched from the repository for this visit.
Diagnose, explain, prescribe, verify — for MAF agents and workflows.
MAF Doctor is a .NET global tool (installed from NuGet) that does three things in one install:
Plus a separate maf-doctor.Analyzers NuGet package with 3 Roslyn analyzers (MAF001 / MAF002 / MAF003) for IDE write-time enforcement, and a curated, version-keyed obsolete-API registry that maps every known CS0618 warning to its exact replacement.
📦 Latest release on NuGet → — and the toolkit keeps its own MAF knowledge current automatically. See It updates itself.
Install, then run maf-doctor doctor on any MAF codebase — an A–F health letter + the top fixes, in seconds.
A cross-framework migration assistant for porting an existing Semantic Kernel (C#) app to Microsoft Agent Framework — distinct from the MAF version upgrade path:
maf-doctor migrate-scan (CLI) / MafDetectSourceFramework (MCP tool) — inventories your SK usage (csproj package refs + a Roslyn construct scan) and tags every construct by migration strategy: 🌉 bridgeable (reuse via the KernelFunction.AsAIFunction() / IChatCompletionService.AsChatClient() interop shims), 🔁 rewrite (mechanical SK→MAF API swap), or 🏗 re-architect (group chat / planners / prompt templates / vector stores) — plus an EASY / MEDIUM / HARD verdict. --json for automation.maf-migrate-from prompt + @maf-cross-migration agent — the conductor: detect → plan → scaffold a NEW MAF project beside the original (non-destructive, side-by-side) → port construct-by-construct with dotnet build gates → validate with MafDoctor.maf://migrate-from?source=semantic-kernel resource + maf-from-semantic-kernel skill — the construct-by-construct mapping (+ interop bridges), reachable with or without the MCP server. Try it on the bundled samples/sk-sample/ fixture. (full notes →)Findings you can act on, with the false positives flagged before you touch code:
autofix-all is human-readable by default — a per-rule breakdown + the changed files + the next step (add --json for the machine-readable shape). The 0 files changed case explains why and what to do next.confidence — certain / high / heuristic. The heuristic ones (name/text-based) are flagged "⚠ verify it's real first" — your false-positive triage signal, surfaced in doctor, --plan, and --json.maf-remediate — the fix-it-all conductor (MCP prompt): grade → plan → autofix-all → work each semantic finding, confirming heuristic ones before editing → build → re-grade. Backed by the new maf-remediation-playbook skill. Just ask "fix all the issues maf-doctor finds."doctor --plan --json — a structured, phased remediation manifest (per-finding confidence + verify_first) an automated loop can iterate.Hosting.A2A packages, MediatR IMessageHandler<T>, app.RunAsync() host calls, AgentResponse<T>.Result, #if DEBUG guards, … no longer mis-flagged). (full notes →)migrate-scan inventories your SK constructs, tags each 🌉 bridge / 🔁 rewrite / 🏗 re-architect, scores the effort, and the maf-migrate-from flow ports it into a new MAF project beside the original — non-destructively.Migration tooling is only useful if it knows about the MAF version you're on. MAF Doctor's repository keeps its own knowledge base current; new knowledge reaches you when you update the tool:
How — a GitHub Actions watcher checks NuGet for new Microsoft.Agents.AI releases, drains the backlog oldest stable release first, diffs every train-aligned Microsoft.Agents.AI* package (35 surfaces), and updates the per-version migration guide, compatibility matrix, and obsolete-API registry:
release-watcher/maf-X.Y.Z PR — the watcher never pushes an unreviewed scaffold to main. Additive releases should arrive green; breaking releases deliberately stay red while registry TODOs remain.maf-registry-fill) fills each scaffold PR as soon as it opens, runs the release verification checklist, and pushes only to the registry, guides and compatibility matrix. The mechanical registry gate and semantic review then validate the result before the scaffold PR is merged; when evidence is missing, the agent leaves an honest TODO for a human instead of guessing..maf-version, the next run processes the next pending stable release, preserving every row and guide in the migration chain.When — every Thursday 06:00 UTC (~08:00 Europe/Zurich), aligned with MAF's .NET Thursday-morning ship cadence. Off-cadence releases are covered by a manual dispatch trigger.
The practical upshot: you don't pin to a MAF version in these docs. The registry and guides embedded in the tool cover MAF up to the version they were built with, so keep the tool current with dotnet tool update -g maf-doctor. If your project references a newer MAF than your installed registry covers, doctor shows a coverage horizon banner and MafApiSafety answers UNKNOWN instead of SAFE, so a stale install never claims a newer API is safe.
MAF Doctor is a Model Context Protocol (MCP) server packaged as a .NET global tool. With no subcommand it runs in MCP mode and exposes:
With a subcommand, the same binary runs as a CLI tool — see Quick Start below.
🎬 New here? The 3-minute quickstart walks install → init → analyze → auto-fix → upgrade-to-latest-MAF end-to-end (the demo-video script).
# 1. Install the MCP server as a .NET global tool
dotnet tool install --global maf-doctor
# 2. In your MAF project — wires MCP + steering for VS Code, Copilot & Claude Code
cd your-maf-project
maf-doctor init
init is non-destructive — it attaches and updates only, never overwriting your files. It adds its own MCP server entry to both VS Code (.vscode/mcp.json) and Claude Code (.mcp.json), and drops auto-loaded steering as self-contained sidecars in each tool's convention dir — .github/instructions/ for Copilot, .claude/ plus a one-line CLAUDE.md import for Claude Code, and an AGENTS.md managed block. These sidecars are refreshed on every re-run and never merged into your hand-authored files, so re-running init after an upgrade is always safe. Your assistant picks the server up automatically and gains live tool calls, resource reads, and structured prompts.
When the MCP server starts, it checks NuGet for a newer maf-doctor package using a short, cached, non-blocking advisory check. It also detects the separate case where the installed tool is current but this workspace's MCP config or steering sidecars were initialized by an older maf-doctor. You can ask for the same report any time with the MafDoctorStatus MCP tool.
dotnet tool update --global maf-doctor # upgrade to the latest release
maf-doctor --version # confirm
cd your-maf-project && maf-doctor init # re-run init to refresh the steering sidecars
⚠️ "The file is locked by another process" on update? Your editor keeps the MCP server (
maf-doctor) running, which locks the tool binary — sodotnet tool updatecan't replace it. Stop every running instance first, then update:# Windows: kill all running instances, then update Get-Process maf-doctor -ErrorAction SilentlyContinue | Stop-Process -Force dotnet tool update --global maf-doctor# macOS / Linux pkill -f maf-doctor; dotnet tool update --global maf-doctorIf you have both VS Code and Claude Code open, each holds its own lock — the commands above kill every instance (more reliable than closing editors one by one). Alternatively, close all editors running the server (or disable it in each) → update → reopen.
After updating: re-run
maf-doctor initto refresh the steering, and reload the editor / MCP server so it loads the new binary — VS Code:Developer: Reload Window; Claude Code: reload the project. (A bare restart isn't enough — the MCP host caches tool/resource descriptors, so without a full reload you'll keep talking to the old version.)
📖 Going deeper: what
initinstalls (and why) · using MAF Doctor — prompts, tools, agents & natural-language steering · hands-on workshop.
First three commands to try:
maf-doctor doctor . # instant A/B/C/F health grade + top fixes
maf-doctor autofix-all . --apply # apply every deterministic Roslyn rewriter
maf-doctor new agent ChatBot # scaffold an anti-pattern-clean MAF agent + smoke test
Then, in Copilot Chat:
@maf-auditor # full pre-migration audit + plan
@maf-best-practice-reviewer # steady-state best-practice review
docker pull ghcr.io/joslat/maf-doctor:latest
{
"servers": {
"maf-doctor": {
"type": "stdio",
"command": "docker",
"args": ["run", "--rm", "-i", "ghcr.io/joslat/maf-doctor:latest"]
}
}
}
Same tools, skills, and resources — isolated in a container. Multi-arch (amd64 + arm64).
Copy this repo's .github folder into your .NET repository root for the agents and skills via VS Code's instruction/agent system — no live tool calls, but no install either.
git clone https://github.com/joslat/maf-doctor tmp-maf
Copy-Item tmp-maf/.github -Destination .github -Recurse
Remove-Item tmp-maf -Recurse
Then use the @maf-migration or @maf-auditor agents in Copilot Chat.
MAF Doctor is laser-focused on diagnose + fix for Microsoft Agent Framework. For documentation lookup, pair it with the Microsoft Learn MCP — live, version-aware MAF docs and code samples, no auth required. Docs lookup stays in Learn's lane; audit + fix + migration stays in ours.
The .NET upgrade-assistant handles package version bumps. MAF Doctor handles everything else:
ReflectingExecutor → partial class : Executor + [MessageHandler])AgentThread → AgentSession)The MCP tools are called automatically by Copilot during these steps — you don't invoke them directly.
Distribution: NuGet (maf-doctor + maf-doctor.Analyzers), Docker GHCR (multi-arch amd64 + arm64, semver tags), and the self-updating knowledge base described above. Security model: docs/security.md.
This toolkit relies on dotnet-inspect by Rich Lander — a CLI for querying .NET API surfaces across NuGet packages and assemblies. The release watcher installs and verifies exact version 0.9.1, resolves the checked-in set of ten release-critical MAF surfaces independently, and validates every captured report before classification or registry extraction. The compiler-based cs0618-hunter path stays complementary for transitive and project-local obsoletions.
When a migration surfaces a new surprise (unexpected breaking change, silent runtime failure, wrong pattern in the docs), update:
.github/skills/maf-obsolete-api-registry/registry.yaml — add the CS0618 entry.See CONTRIBUTING.md for contribution shapes + PR conventions.
Loading reviews...
GitHub checked 880h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.