# CSharp.Refactor (nuget · csharp-refactor)

Offline analyzers that find and fix intent-hiding, slow or noisy C#, including agent-written code.

- Trust score: 75/100 (medium)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-05

## Components

- nuget · `csharp-refactor`: 75/100 (this document), [markdown](https://verifymcp.io/servers/thorium-csharp-refactor/csharp-refactor.md), [page](https://verifymcp.io/servers/thorium-csharp-refactor/csharp-refactor)

## Channel facts

- Registry: `nuget`
- Package: `csharp-refactor`
- Version: `0.1.20`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-05.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - No production dependencies, so there is no dependency health to assess.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Build provenance not yet verified.
  - Clear OSI-approved license (Unlicense).
  - Actively maintained (last published 0 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 64/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 176 tokens (~88/item across 2 items; 2 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 70/100
  - Stability observed for 21 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 2 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 2 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 20/100
  - Spec-recency check failed: implements MCP spec 2024-11-05; the latest is 2026-07-28.

## Install

### How do I install the CSharp.Refactor MCP server?

CSharp.Refactor runs locally as a NuGet package, launched with dnx csharp-refactor@0.1.20 --yes. Ready-made configuration for Claude, Cursor, VS Code, Codex and 3 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add thorium-csharp-refactor -- dnx csharp-refactor@0.1.20 --yes
```

### Cursor

```json
{
  "mcpServers": {
    "thorium-csharp-refactor": {
      "command": "dnx",
      "args": [
        "csharp-refactor@0.1.20",
        "--yes"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "thorium-csharp-refactor": {
      "command": "dnx",
      "args": [
        "csharp-refactor@0.1.20",
        "--yes"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add thorium-csharp-refactor -- dnx csharp-refactor@0.1.20 --yes
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "thorium-csharp-refactor": {
      "type": "local",
      "command": [
        "dnx",
        "csharp-refactor@0.1.20",
        "--yes"
      ],
      "enabled": true
    }
  }
}
```

### Hermes

```yaml
mcp_servers:
  thorium-csharp-refactor:
    command: "dnx"
    args: ["csharp-refactor@0.1.20", "--yes"]
```

### Netclaw

```json
{
  "McpServers": {
    "thorium-csharp-refactor": {
      "Transport": "stdio",
      "Command": "dnx",
      "Arguments": [
        "csharp-refactor@0.1.20",
        "--yes"
      ]
    }
  }
}
```

### Other

```json
{
  "mcpServers": {
    "thorium-csharp-refactor": {
      "command": "dnx",
      "args": [
        "csharp-refactor@0.1.20",
        "--yes"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-04 (score 75, +1)

No change was recorded against any check on this day. Stability & Change Management went from 63 to 67. That category is still filling its 30-day observation window: 19 days of observed history at the previous scan, 20 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-02 (score 74, +1)

No change was recorded against any check on this day. Stability & Change Management went from 57 to 60. That category is still filling its 30-day observation window: 17 days of observed history at the previous scan, 18 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-31 (score 73, +1)

No change was recorded against any check on this day. Stability & Change Management went from 50 to 53. That category is still filling its 30-day observation window: 15 days of observed history at the previous scan, 16 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-29 (score 72, +1)

No change was recorded against any check on this day. Stability & Change Management went from 43 to 47. That category is still filling its 30-day observation window: 13 days of observed history at the previous scan, 14 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-26 (score 71, +1)

No change was recorded against any check on this day. Stability & Change Management went from 33 to 37. That category is still filling its 30-day observation window: 10 days of observed history at the previous scan, 11 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-24 (score 70, +1)

No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-10-22 (score 69, +4)

- [functional improvement] Stability: unverified → 0.23

### 2026-10-15 (score 65, +26)

- [security improvement] Injection markers: unverified → pass
- [security] First check of Judged manipulation: pass
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional regression] MCP protocol: unverified → fail
- [functional improvement] Tool coverage: unverified → 100
- [functional] First check of Schema quality: fail
- [functional] First check of Destructive annotations: pass
- [functional] First check of Schema quality: pass
- [functional] First check of Schema quality: good
- [functional] First check of Tool coverage: 100

## MCP tools (2)

### `analyze` (~156 tokens)

Analyze a C# project, solution or directory with csharp-refactor. Dry-run by default: reports findings without editing. Set apply=true to write the fixes (build-verified). Returns findings as JSON with stable fingerprints and source snippets.

Input parameters:

- `apply` (boolean): write the fixes (default: dry-run)
- `categories` (string): comma-separated: correctness,performance,idiom,cosmetic
- `codes` (string): comma-separated rule codes to restrict to
- `defines` (string): preprocessor symbols to define, ;-separated, like --define
- `parseOnly` (boolean): no references, syntactic rules only
- `target` (string, required): csproj, sln, directory or glob to analyze

### `list_rules` (~20 tokens)

The rule catalog: code, category, enabled-by-default.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/thorium-csharp-refactor/csharp-refactor#diagnostics

## Score history

- 2026-11-05: 75
- 2026-11-04: 75
- 2026-11-03: 74
- 2026-11-02: 74
- 2026-11-01: 73
- 2026-10-31: 73
- 2026-10-30: 72
- 2026-10-29: 72
- 2026-10-28: 71
- 2026-10-27: 71
- 2026-10-26: 71
- 2026-10-25: 70
- 2026-10-24: 70
- 2026-10-23: 69
- 2026-10-22: 69
- 2026-10-21: 65
- 2026-10-20: 65
- 2026-10-19: 65
- 2026-10-18: 65
- 2026-10-17: 65
- 2026-10-16: 65
- 2026-10-15: 65
- 2026-10-14: 39

## Common questions

### What is the CSharp.Refactor MCP server?

CSharp.Refactor is an MCP server listed in the public MCP registry as io.github.Thorium/csharp-refactor. Offline analyzers that find and fix intent-hiding, slow or noisy C#, including agent-written code. This page covers its NuGet package (csharp-refactor).

### Is the CSharp.Refactor MCP server safe to use?

CSharp.Refactor scores 75 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the CSharp.Refactor MCP server expose?

CSharp.Refactor exposes 2 tools: analyze, list_rules. Their descriptions and schemas cost roughly 176 tokens of context every time the server is loaded.

### Is the CSharp.Refactor MCP server still maintained?

CSharp.Refactor is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the CSharp.Refactor MCP server under?

CSharp.Refactor declares the Unlicense licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- NuGet package: https://www.nuget.org/packages/csharp-refactor
- Socket report: https://socket.dev/nuget/package/csharp-refactor
- Repository: https://github.com/Thorium/csharp-refactor
- Changelog RSS feed: https://verifymcp.io/servers/thorium-csharp-refactor/csharp-refactor.xml
- Changelog JSON feed: https://verifymcp.io/servers/thorium-csharp-refactor/csharp-refactor.json
- HTML version of this page: https://verifymcp.io/servers/thorium-csharp-refactor/csharp-refactor
