Repository navigation
09 Integrations and Plugins
Farol runs in any MCP client. This page covers Claude Code and Visual Studio 2026 (validated for the MVP), Google Antigravity, GitHub Copilot and VS Code.
The Claude Code plugin provides the richest integration with Farol by pairing the MCP server with an automated post-edit verification hook and three skills.
plugins/farol/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest & marketplace metadata
├── .mcp.json # MCP server declaration pinning Farol.Mcp
├── hooks/
│ └── hooks.json # PostToolUse verification hook for C# and VB.NET
└── skills/
├── modernize/SKILL.md # .NET Framework to modern .NET
├── maintain-legacy/SKILL.md # changing code that stays on .NET Framework
└── refactor/SKILL.md # refactorings through Farol's write path
Add the repository marketplace and install the plugin directly from within Claude Code:
/plugin marketplace add yuriafp/Farol
/plugin install farol@farolWhenever Claude Code edits a C# or VB.NET file using Edit, Write, or MultiEdit, the hook automatically intercepts the action and triggers Farol's dotnet_check:
{
"type": "mcp_tool",
"if": "Edit(**/*.cs)",
"server": "plugin:farol:farol",
"tool": "dotnet_check",
"input": {
"format": "hook",
"edited": "${tool_input.file_path}"
},
"timeout": 60,
"statusMessage": "Farol: checking the edit for new compiler errors"
}A second entry does the same for Edit(**/*.vb).
-
Immediate Interception: The
editedparameter forces Farol to read the edited file directly from disk, eliminating file watcher races. -
Decision Blocking: If the edit introduced new compiler errors, Farol returns
{"decision": "block", "reason": "..."}, immediately alerting the agent to fix the issue before proceeding. -
Warning Injection: If new compiler warnings are introduced, Farol injects them into the agent's context as
additionalContext. -
Edits Farol does not check: the hook fires for every edit, so Farol first passes over files that are not C# or VB and paths outside the trusted directories, answering
{}. -
Its Own Solution (AC-44): the hook passes no
workspace. In a root that holds no single solution (for example a folder of repositories), Farol uses the workspace in use whose folder holds the edited file, else the solution nearest above it, so each edit is checked against its own solution. -
When No Solution Can Be Picked: Claude Code never shows an agent a hook's error, so Farol's first answer in a server process says, as added context, that it cannot tell which solution the file belongs to and how to name one (
dotnet_workspacewithaction='load'andworkspaceset to the solution). Later answers are{}. -
During a Load (AC-48, AC-49): the hook waits for the load only until it has run for
Farol:HookLoadWaitSeconds(default 20 s) since its start, so later edits during the same load are not held. If the load is still running then, the answer is added context saying the edit is checked once the load is done, in the answer to the next edit. The edit is kept out of the load's baseline, so the first check after the load lists all of the file's errors and warnings as new.
Until 0.2.0 the plugin had one skill, farol. Since 0.3.0 it has three, by job:
-
modernize: inventory, portability, configuration, the migration plan and conversions. -
maintain-legacy: changes to code that stays on .NET Framework. -
refactor: renames, signatures, moves and extractions through Farol, checked after each step.
The server serves the same files to every client, as resources farol://skills/<name> and as the prompts skill_modernize, skill_maintain_legacy and skill_refactor. Visual Studio, VS Code and Antigravity get them without the plugin (Tools layer, section 5).
Visual Studio 2026 (version 18.0+) supports MCP servers natively.
Add Farol to .mcp.json next to your solution (or globally in %USERPROFILE%\.mcp.json):
{
"servers": {
"farol": {
"type": "stdio",
"command": "dotnet",
"args": ["dnx", "Farol.Mcp@0.3.0", "--yes"]
}
}
}Once configured, GitHub Copilot Chat in Agent Mode gets Farol's 23 tools.
Google Antigravity reads MCP configuration from %USERPROFILE%\.gemini\config\mcp_config.json.
Because Antigravity may launch MCP servers from its own installation directory rather than the active repository directory, configure Farol with a trusted path covering your source folder:
{
"mcpServers": {
"farol": {
"command": "dotnet",
"args": ["dnx", "Farol.Mcp@0.3.0", "--yes", "--", "--Farol:TrustedPaths:0", "C:/Users/<you>/source/repos"]
}
}
}Trust the folder that holds your repositories rather than making it the root: a solution in the folder Farol starts in still loads on its own, and any solution under the trusted folder loads once a call names it. Farol's own options go after --, so dnx doesn't read them as its own. Tip: with Farol installed as a global .NET tool (dotnet tool install --global Farol.Mcp), the command is farol and the args are just the options.
Not yet validated for the MVP (Claude Code and Visual Studio 2026 are); the configuration is the same as for Visual Studio.
Configure Farol in .vscode/mcp.json within your workspace:
{
"servers": {
"farol": {
"type": "stdio",
"command": "dotnet",
"args": ["dnx", "Farol.Mcp@0.3.0", "--yes"]
}
}
}Farol is packaged as a framework-dependent .NET tool and published to nuget.org:
-
Package ID:
Farol.Mcp -
Package Types:
DotnetToolandMcpServer -
Registry Metadata: Ships with
.mcp/server.jsonconforming to the Model Context Protocol Registry schema. -
Embedded BuildHosts: Ships with the required Roslyn MSBuild
BuildHostbinaries embedded in the package, enabling classic .NET Framework analysis even when run out of NuGet caches.
Requires .NET 10 SDK:
dotnet dnx Farol.Mcp@0.3.0 --yesPass Farol-specific arguments after --:
dotnet dnx Farol.Mcp@0.3.0 --yes -- --read-only --offline# Install
dotnet tool install --global Farol.Mcp
# Update
dotnet tool update --global Farol.Mcp
# Run
farol --read-onlyFarol is listed in the MCP Registry as io.github.yuriafp/farol, from 0.2.0 on. The server.json points at the Farol.Mcp NuGet package, whose README carries the mcp-name line the Registry verifies. The registry.yml workflow publishes it with GitHub OIDC when a GitHub release is published, retrying while nuget.org indexes the package; run by hand, it only validates.
Welcome to the official technical documentation for Farol, an open-source Model Context Protocol (MCP) server that equips AI coding agents (Claude Code, GitHub Copilot, Google Antigravity, Cursor, Codex) with compiler-accurate understanding of C# and VB.NET solutions.
- Home — Project overview, value proposition, quickstart, and problem statement
- 01. Architecture & Design Philosophy — Layered architecture, snapshot isolation, BuildHost model, design rationale
- 02. Layer: Farol.Core — Zero-Roslyn foundation: path sandbox, process execution, diffing, atomic writes, privacy
- 03. Layer: Farol.Engine — Workspaces & Loading — MSBuildWorkspaceLoader, analyzer copies, Visual Studio toolchain probing, background warmup, file watcher
- 04. Layer: Farol.Engine — Navigation & Markup — Compiler-accurate navigation, symbol search, IOperation classification, WebForms & XAML indexers, decompilation
- 05. Layer: Farol.Engine — Verification & Testing — Diagnostic checks in about a second, baseline fingerprinting, edits during a load, edit impact analysis, Code Actions, build & test runners
- 06. Layer: Farol.Engine — Legacy Modernization & Packages — Legacy inventory, config inspector, target surface portability, migration planner, NuGet API inspector
- 07. Layer: Farol.Tools & MCP Contract — Comprehensive reference for all 23 MCP tools, 7 prompts, the skill resources and MCP tasks
- 08. Layer: Farol.Host & CLI — Stdio transport, stream isolation, configuration precedence, privacy-first usage telemetry
- 09. Integrations & Plugins — Claude Code plugin (hook & skill), Visual Studio 2026, Copilot, Antigravity, VS Code, NuGet distribution
- 10. Benchmarks & Evals — Performance benchmarks (Umbraco & DNN Platform), evaluation suite and Phase 2 round, compiler oracle
- 11. Phase 2: Refactorings, Analyzers, Loaders & Index — Refactoring write path, analyzers in checks, heuristic and binlog loaders, persistent index, structured output, MCP Registry
- 12. Phase 3: MCP Tasks & Skills — Build, test, load and convert as MCP tasks; the playbook as three skills served by the server; exit results