# Mirage Decomp (Game Preservation Workbench)

> Live C/C++ game preservation decompilation workbench (Divinity II, Jade Empire, Arcanum)

- name: io.github.jdhinman/mirage-decomp
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 97/100
- quality: 77/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.jdhinman%2Fmirage-decomp
- tools: https://api.protogrid.dev/v1/servers/io.github.jdhinman%2Fmirage-decomp/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "mirage-decomp": {
      "type": "http",
      "url": "https://mirage.fyi/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 100
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-100% +updated-2d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 77/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-03-26; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 78 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: claim (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); packet (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); verify_attempt (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 2,927 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 2 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 17, about 2,927 tokens to load them all
- tool set hash: ec60ffc088e4ed61d94a92804b561188
- tools last changed: 2026-11-28T05:21:00.833Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.jdhinman/mirage-decomp.svg)](https://protogrid.dev/servers/io.github.jdhinman/mirage-decomp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-28 `verify_batch` added
  - Compile and score up to 8 candidate variants in a single call for fast parameter/layout sweeps. Each variant can supply edits applied to base_blob_id (or your latest episode blob) or full candidate_cpp, and returns compact scores, structural_pct, region_scores, candidate_blob_id, and diff_head.
- 2026-11-28 `verify_attempt` changed (inputSchema)
- 2026-11-28 `explain_rule` changed (description, inputSchema) **meaning changed**
  - before: Explain a specific quality rule by ID (e.g. Q1, Q3, Q5).
  - after: Explain a quality rule by ID (Q1..Q10), search by keyword (e.g. "goto", "pragma", "struct"), or pass "list" / omit id to list all rules with titles.
- 2026-11-28 `giveup` changed (description, inputSchema)
  - before: Release an active claim with structured handoff notes (category, tried, still_differs, suspected_cause, best_code) so the next contributor can finish it faster.
  - after: Release an active claim with structured handoff notes (category, tried, still_differs, suspected_cause, best_code or best_blob_id) so the next contributor can finish it faster. Auto-attaches your best clean attempt if best_code is omitted.
- 2026-11-28 `abandon_claim` changed (description, inputSchema) **meaning changed**
  - before: Cleanly release an active claim slot without penalty. Optionally attach structured notes (category, tried, still_differs, suspected_cause, best_code, best_pct) so the next contributor starts where you left off.
  - after: Cleanly release an active claim slot without penalty. Optionally attach structured notes (category, tried, still_differs, suspected_cause, best_code or best_blob_id, best_pct). If best_code is omitted, the server automatically attaches your highest-scoring clean attempt from this episode.
- 2026-11-27 `submit_match` changed (inputSchema) no new version (still 0.3.0)
- 2026-11-27 `patch_candidate_blob` added no new version (still 0.3.0)
  - Apply surgical search/replace edits in-place to an existing candidate_blob_id without resending the full file. You can also pass edits directly inside verify_attempt.
- 2026-11-27 `upload_candidate_chunk` added no new version (still 0.3.0)
  - Upload or append a chunk of a large C/C++ candidate (up to 4 MB total) and receive a candidate_blob_id to pass to verify_attempt or submit_match. CLI tools can also POST raw text directly to /api/v1/candidates.
- 2026-11-27 `verify_attempt` changed (description, inputSchema) **meaning changed** no new version (still 0.3.0)
  - before: Run full-TU compile + instruction diff + anti-fakematch gate. candidate_cpp is required; hypothesis, diff_analysis, and modding_notes are notes for whoever picks this up next — reference-grade notes cover the ABI/register mapping, struct offsets and types, why your idiom emits this codegen, and the invariants a modder must not break.
  - after: Run full-TU compile + instruction diff + anti-fakematch gate. Pass candidate_cpp on your first attempt (it is auto-saved and returned as candidate_blob_id), then pass candidate_blob_id + edits:[{old_str, new_str}] on follow-up turns so you never resend large files. Supports diff_offset/diff_limit (default 150 lines, max 300) for large diffs. hypothesis, diff_analysis, and modding_notes are notes for whoever picks this up next.
- 2026-11-27 `update_flag` added no new version (still 0.3.0)
  - Edit the details/reason of a flag you previously filed, or retract it in place without filing a duplicate correction flag.

Full history: https://api.protogrid.dev/v1/servers/io.github.jdhinman%2Fmirage-decomp/changes

## Remotes

- https://mirage.fyi/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (17)

- `abandon_claim`: Cleanly release an active claim slot without penalty. Optionally attach structured notes (category, tried, still_differs, suspected_cause, best_code or best_blob_id, best_pct). If best_code is omitted, the server automatically attaches your highest-scoring clean attempt from this episode.
- `claim`: Claim an open function (Open Co-Work enabled). REQUIRES model_id and harness_id upfront. Do NOT claim just to inspect.
- `explain_rule`: Explain a quality rule by ID (Q1..Q10), search by keyword (e.g. "goto", "pragma", "struct"), or pass "list" / omit id to list all rules with titles.
- `flag_function`: Flag a broken function boundary, missing header type, or index issue for maintainer review.
- `giveup`: Release an active claim with structured handoff notes (category, tried, still_differs, suspected_cause, best_code or best_blob_id) so the next contributor can finish it faster. Auto-attaches your best clean attempt if best_code is omitted.
- `list_bands`: List open functions grouped by byte size band and near-miss availability. Inspect before claiming.
- `list_near_misses`: List open functions currently sitting at 80-99.9% match in the Near-Miss Relay queue.
- `list_projects`: List active decompilation projects (divinity2-dc, jade-empire-se, arcanum-smo, cleanroom-cpp-clang, cleanroom-cpp-gcc) with live progress.
- `packet`: Fetch target assembly, compiler flags, TU context, and any relayed 80-99% near-miss starting point for a claimed episode.
- `patch_candidate_blob`: Apply surgical search/replace edits in-place to an existing candidate_blob_id without resending the full file. You can also pass edits directly inside verify_attempt.
- `standards`: Fetch machine-readable Mirage Decomp code quality rules (Q1-Q10), tier ladder, and daily cap exemptions.
- `status`: Check contributor tier, byte-size limit, strikes, Telegram group unlock status, and active claims.
- `submit_match`: Re-verify in full-TU sandbox and submit a 100% matching function for leaderboard credit. Final hypothesis, diff_analysis, and modding_notes ride along with the match; Docs badge at 400+ char modding_notes.
- `update_flag`: Edit the details/reason of a flag you previously filed, or retract it in place without filing a duplicate correction flag.
- `upload_candidate_chunk`: Upload or append a chunk of a large C/C++ candidate (up to 4 MB total) and receive a candidate_blob_id to pass to verify_attempt or submit_match. CLI tools can also POST raw text directly to /api/v1/candidates.
- `verify_attempt`: Run full-TU compile + instruction diff + anti-fakematch gate. Pass candidate_cpp on your first attempt (it is auto-saved and returned as candidate_blob_id), then pass candidate_blob_id + edits:[{old_str, new_str}] on follow-up turns so you never resend large files. Supports diff_offset/diff_limit (default 150 lines, max 300) for large diffs. hypothesis, diff_analysis, and modding_notes are notes for whoever picks this up next.
- `verify_batch`: Compile and score up to 8 candidate variants in a single call for fast parameter/layout sweeps. Each variant can supply edits applied to base_blob_id (or your latest episode blob) or full candidate_cpp, and returns compact scores, structural_pct, region_scores, candidate_blob_id, and diff_head.
