@nighthawk42/wow-api-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nighthawk42
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,82 @@
1
+ # wow-api-mcp
2
+
3
+ An [MCP](https://modelcontextprotocol.io) server that gives AI coding assistants first-class access to the **World of Warcraft addon API** — Blizzard's own generated API documentation, the FrameXML/AddOn UI source code, and the Warcraft Wiki — across all four client flavors:
4
+
5
+ | Flavor ID | Game | Source branch |
6
+ | --- | --- | --- |
7
+ | `live` | Retail | [Gethe/wow-ui-source@live](https://github.com/Gethe/wow-ui-source/tree/live) |
8
+ | `classic` | Classic (current expansion) | [classic](https://github.com/Gethe/wow-ui-source/tree/classic) |
9
+ | `classic_era` | Classic Era (vanilla) | [classic_era](https://github.com/Gethe/wow-ui-source/tree/classic_era) |
10
+ | `classic_anniversary` | Classic Anniversary | [classic_anniversary](https://github.com/Gethe/wow-ui-source/tree/classic_anniversary) |
11
+
12
+ The API documentation is parsed from `Blizzard_APIDocumentationGenerated` — the machine-readable docs Blizzard ships with the client — so every `C_*` function signature, event payload, enum, and structure is exact, typed, and per-flavor. No scraping involved.
13
+
14
+ ## Tools
15
+
16
+ | Tool | What it does |
17
+ | --- | --- |
18
+ | `list_flavors` | Flavors with game build, interface version, data commit, API counts |
19
+ | `list_systems` | API systems/namespaces per flavor, filterable |
20
+ | `search_api` | Fuzzy full-text search over functions, events, enums, structures |
21
+ | `get_api` | Full signature detail + cross-flavor availability |
22
+ | `diff_api` | Compare an API's existence/signature across all four flavors |
23
+ | `search_wiki` | Search warcraft.wiki.gg (guides, TOC format, widget API, ...) |
24
+ | `get_wiki_page` | Fetch a wiki page as markdown (cached ~24h, CC BY-SA attributed) |
25
+ | `search_source` | Regex search over Blizzard's actual UI source per flavor |
26
+ | `get_source_file` | Read UI source files with line numbers / list directories |
27
+
28
+ ## Install
29
+
30
+ Requires Node 20+. The server is published as [`@nighthawk42/wow-api-mcp`](https://www.npmjs.com/package/@nighthawk42/wow-api-mcp).
31
+
32
+ **Claude Code**
33
+
34
+ ```bash
35
+ claude mcp add wow-api -- npx -y @nighthawk42/wow-api-mcp
36
+ ```
37
+
38
+ **Claude Desktop / Cursor / any MCP client** (`mcpServers` JSON):
39
+
40
+ ```json
41
+ {
42
+ "mcpServers": {
43
+ "wow-api": {
44
+ "command": "npx",
45
+ "args": ["-y", "@nighthawk42/wow-api-mcp"]
46
+ }
47
+ }
48
+ }
49
+ ```
50
+
51
+ **From source**
52
+
53
+ ```bash
54
+ git clone https://github.com/Nighthawk42/wow_api_mcp
55
+ cd wow_api_mcp
56
+ npm ci && npm run build
57
+ claude mcp add wow-api -- node /path/to/wow_api_mcp/dist/index.js
58
+ ```
59
+
60
+ Notes:
61
+ - The first `search_source`/`get_source_file` call per flavor downloads a ~200 MB source checkout into your OS cache dir (one-time, pinned to the same commit the API data was built from).
62
+ - Wiki pages are fetched on demand and cached for 24 hours.
63
+
64
+ ## Development
65
+
66
+ ```bash
67
+ npm run dev # run the server from source
68
+ npm test # vitest (offline)
69
+ npm run smoke # exercise every tool end-to-end (needs network)
70
+ npm run ingest # regenerate data/*.json from wow-ui-source
71
+ ```
72
+
73
+ Data is refreshed weekly by a scheduled GitHub Action that opens a PR when upstream changes. See [AGENTS.md](AGENTS.md) for architecture details.
74
+
75
+ ## Data sources & attribution
76
+
77
+ - API documentation and UI source are © Blizzard Entertainment, mirrored by [Gethe/wow-ui-source](https://github.com/Gethe/wow-ui-source). The `data/` files in this repo are machine-derived transformations of Blizzard's generated documentation, provided for interoperability.
78
+ - Wiki content is fetched live from [warcraft.wiki.gg](https://warcraft.wiki.gg) and is licensed [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/); responses include attribution.
79
+
80
+ ## License
81
+
82
+ MIT (server code). See [LICENSE](LICENSE).