Skip to content

Farol 0.2.0

Choose a tag to compare

@yuriafp yuriafp released this 30 Nov 22:07
· 23 commits to main since this release

Phase 2 of spec 002: refactorings, project conversion, analyzers, loads without Visual
Studio, a persistent index and structured output.

Added

  • Five tools, 23 in all. Each previews a unified diff; apply=true writes it (refused under --read-only, and refused
    with conflict when a file changed since the preview) and returns a fresh dotnet_check:
    • dotnet_rename: a type, member, parameter or local in every C# and VB file and in WebForms and XAML markup,
      with the file named after a type (and its markup and project items); refuses a name that clashes or rebinds.
    • dotnet_change_signature: reorders, removes and adds parameters, updating every call in C# and VB.
    • dotnet_move_type: a type to its own file, another namespace or both, with the using/Imports its users need.
    • dotnet_extract_method: whole statements into a new method, through Roslyn's extract method.
    • dotnet_convert_project: a classic project to SDK-style with the same .NET Framework target (sdk_style), or
      packages.config to PackageReference (package_reference); restores, reloads and compares the project before and
      after.
  • dotnet_check runs the projects' analyzers (CA and IDE rules, NuGet analyzers) on the edited files (the file or the
    project with scope=file|project) with analyzers=true or Farol:CheckAnalyzers, as the build would report them, under a time limit, and says how long they took; the plugin's
    hook reports them when the option is on.
  • Loads without Visual Studio: where no MSBuild can evaluate .NET Framework projects (Linux, or the .NET SDK alone),
    a heuristic loader reads the project files, packages and markup, with reference assemblies from
    Microsoft.NETFramework.ReferenceAssemblies; answers say the load is heuristic, dotnet_check works, build and test
    need MSBuild. A .binlog named as the workspace (or Farol:Binlog) loads from the compiler calls it recorded.
  • A persistent index of each workspace (SQLite, under Farol/index in the local application data folder), written
    after the load and kept up to date in the background. At the next start, navigation and dotnet_overview answer from
    it while the load runs, saying when it was written and which files changed since. Farol:Index=false turns it off;
    Farol:IndexDirectory moves it; an index unused for 30 days is deleted.
  • Every tool declares an outputSchema and returns structuredContent built from the same results as its text.
  • The MCP Registry lists Farol as io.github.yuriafp/farol, published by a workflow when a GitHub release is published.

Changed

  • The benchmarks also time dotnet_check with analyzers and a server's start to its first answer from the index; CI
    runs the suite on Linux too, with the legacy fixtures loaded heuristically, and smoke-tests the package there.

Install: dotnet dnx Farol.Mcp@0.2.0 --yes, or the Claude Code plugin. Full notes: CHANGELOG.