Skip to main content
Glama
README.md
<p align="center">
  <img src="docs/assets/icon.png" alt="Scryer" width="128">
</p>

# Scryer

A locally installed toolkit that makes Claude a grounded assistant for
World of Warcraft: Forever addon development and game data:

- a query system built to read game data correctly: name and ID resolution,
  table schemas with foreign keys and decoded enums, and SQL that returns the
  query rules each statement touches (array columns, unverified fields,
  hotfixed versus shipped rows, joins that need a key)
- game data from your **own** local extraction of your client
- exact API answers from Blizzard's docs, FrameXML and the secret-value rules
- addon development with enforced rules, lint and review
- one command (`scryer sync`) to update your extraction after a patch
- tools return the relevant slice, not whole reference documents

Windows only. One MCP server (`scryer`) with 19 tools in five modules (api,
data, extract, addon, kb), four skills, and the `scryer` command line.

## How it fits together

`scryer sync` extracts your own client into per-build CSVs and a `wow.db`.
The API index ships with Scryer. The MCP server's modules read those local
stores and answer the agent.

```mermaid
flowchart LR
  subgraph SRC["① Sources"]
    direction TB
    apisrc["Blizzard API docs<br/>FrameXML · wiki"]
    client["Your WoW Forever<br/>client files"]
    refs["WoWDBDefs<br/>TACTKeys · listfile"]
  end

  subgraph SYNC["② scryer sync, on your machine"]
    direction TB
    wtl["wow.tools.local"]
    ext["extract tables,<br/>files, game tables,<br/>build diff"]
    build["build_db"]
    wtl --> ext --> build
  end

  subgraph STORE["③ Local stores"]
    direction TB
    apidb[("api.db<br/>API index<br/>(ships with Scryer)")]
    csv[("CSVs per build<br/>shipped + hotfixed")]
    wowdb[("wow.db per build<br/>one SQL file")]
    kbdb[("kb.sqlite<br/>verified facts")]
  end

  subgraph MCP["④ scryer MCP server · 19 tools"]
    direction TB
    api["<b>api</b><br/>lookup, secrets, rules, scan"]
    extract["<b>extract</b><br/>patch and hotfix diffs"]
    data["<b>data</b><br/>resolve, schema, SQL, history"]
    kb["<b>kb</b><br/>search, record"]
    addon["<b>addon</b><br/>new, install, lint"]
  end

  agent(["⑤ Claude Code<br/>Claude Desktop<br/>any MCP client"])

  apisrc -. "build-index" .-> apidb
  client --> wtl
  refs --> wtl
  ext --> csv
  build --> wowdb

  apidb --> api
  csv --> extract
  wowdb --> data
  kbdb <--> kb

  MCP --> agent
```

## Requirements

- Windows 10 or 11
- Python 3.12 or newer with the `mcp` package (`pip install -e .` in the
  clone installs it)
- git
- Claude Code, or Claude Desktop
- for game data and `scryer sync`: the WoW Forever client and the .NET 10 SDK,
  which builds wow.tools.local (WTL)
- optional: luacheck, for addon lint

## Install

Clone the repository, `pip install -e .`, create `scryer.toml`, then add the
Claude Code plugin from the clone or the Claude Desktop extension (`.mcpb`).
Exact steps: [INSTALL.md](INSTALL.md).

## Scryer ships no game data

The only data file in the repository is the API index (`api.db`), built from
Blizzard's generated API docs, FrameXML and public API references. Spell,
item, quest and every other game-data answer comes from a build you extract
from your own client:

1. Clone wow.tools.local into your data folder (`vendor\wow.tools.local`) and
   write its `config.json`.
2. `scryer extract run sync_refs` fetches WoWDBDefs, TACTKeys and the listfile.
3. Start WTL with `scryer\datamine\run-wtl.ps1` (WoW closed, Battle.net idle).
4. `scryer sync --dry-run`, then `scryer sync`: captures the build's
   hashes, extracts the tables, files and game tables, builds `wow.db` and
   checks the result.

Repeat step 4 on each new build (`--hotfixes` after a hotfix downtime).
Until then the data and diff tools say no build is extracted; the API tools
work without it. Details in [INSTALL.md](INSTALL.md#6-extract-your-build-game-data).

## Claude Code vs Claude Desktop

| | Claude Code (CLI, IDE, or Desktop's Code tab) | Claude Desktop Chat tab |
|---|---|---|
| Install | plugin `scryer@wow-scryer`, from the clone | extension `scryer-<version>.mcpb` |
| MCP tools | all 19 | all 19; addon project tools off by default |
| Skills | `scryer:api`, `scryer:data`, `scryer:addon`, `scryer:patches` | uploaded `scryer-*.zip` |
| Per-addon rules, agents, hooks | yes | no |
| `scryer` command, `scryer sync` | yes, from the clone | no; use a clone |

Develop addons in Claude Code; use Chat for questions.

Modules are turned on and off in `scryer.toml` (`[modules]`), or with the
extension's switches in Claude Desktop.

## Other agents

Any MCP client can launch the server: `python <clone>\scryer\__main__.py
serve`, with `SCRYER_DATA_ROOT` naming the data folder. The server's
instructions carry the workflow (look every API up, secret-check, lint), and
tool results name the required next step. Hooks and subagents are Claude Code
only. Other agents get the MCP tools, the root `AGENTS.md` that Scryer writes
into each addon project, the server instructions and the per-addon git
pre-commit hook (luacheck and scan before each commit).

## Documentation

- [docs/modules/](docs/modules/): one page per module
- [docs/datamine/](docs/datamine/): the extraction pipeline and WTL
- [docs/packaging.md](docs/packaging.md): the plugin, the extension and releases

## Planned

- patch-note output redesign
- WoWSim module support
- Level route simulations and map pathfinding support
- WoW Auction House market data support
- Mac and Linux

## License

MIT. See [LICENSE](LICENSE) and [NOTICES.md](NOTICES.md).