mcp-server-return-to-dark-tower 1.0.0 → 1.0.1

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +55 -39
  2. package/README.md +761 -729
  3. package/dist/game-content/adversaries.md +72 -0
  4. package/dist/game-content/buildings.md +78 -0
  5. package/dist/game-content/glossary.md +193 -0
  6. package/dist/game-content/heroes.md +81 -0
  7. package/dist/game-content/items.md +80 -0
  8. package/dist/game-content/lore.md +96 -0
  9. package/dist/game-content/quests.md +96 -0
  10. package/dist/game-content/rules.md +275 -0
  11. package/dist/index.js +41 -36
  12. package/dist/index.js.map +1 -1
  13. package/dist/prompts/index.d.ts +1 -1
  14. package/dist/prompts/index.js +104 -104
  15. package/dist/resources/index.d.ts +2 -2
  16. package/dist/resources/index.d.ts.map +1 -1
  17. package/dist/resources/index.js +104 -106
  18. package/dist/resources/index.js.map +1 -1
  19. package/dist/tools/audio.d.ts +2 -2
  20. package/dist/tools/audio.js +20 -20
  21. package/dist/tools/connection.d.ts +2 -2
  22. package/dist/tools/connection.js +45 -45
  23. package/dist/tools/drums.d.ts +2 -2
  24. package/dist/tools/drums.js +26 -26
  25. package/dist/tools/lights.d.ts +2 -2
  26. package/dist/tools/lights.js +35 -35
  27. package/dist/tools/seals.d.ts +2 -2
  28. package/dist/tools/seals.js +24 -24
  29. package/dist/tools/state.d.ts +2 -2
  30. package/dist/tools/state.js +30 -30
  31. package/dist/tower-controller.d.ts +3 -3
  32. package/dist/tower-controller.js +12 -12
  33. package/dist/utils/logger.d.ts +2 -2
  34. package/dist/utils/logger.d.ts.map +1 -1
  35. package/dist/utils/logger.js +6 -6
  36. package/dist/utils/logger.js.map +1 -1
  37. package/dist/utils/lookups.js +1 -1
  38. package/dist/utils/schemas.d.ts +1 -1
  39. package/dist/utils/schemas.js +13 -13
  40. package/package.json +76 -69
package/CHANGELOG.md CHANGED
@@ -1,39 +1,55 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [1.0.0] - 2026-02-24
11
-
12
- ### Added
13
-
14
- - Dual-transport MCP server: stdio and HTTP (Streamable HTTP) with session management
15
- - HTTP endpoints: `POST /mcp`, `GET /mcp` (SSE), `DELETE /mcp`, `GET /health`
16
- - CLI flags: `--stdio-only`, `--http-only`, `--port <n>`
17
- - 32 MCP tools across 6 categories:
18
- - Connection (9): `tower_connect`, `tower_disconnect`, `tower_calibrate`, `tower_status`, `tower_device_info`, `tower_is_responsive`, `tower_reconnect`, `tower_set_connection_monitoring`, `tower_set_battery_monitoring`
19
- - Audio (3): `tower_play_sound`, `tower_play_sound_by_name`, `tower_list_sounds`
20
- - Lights (6): `tower_set_lights`, `tower_set_led`, `tower_light_sequence`, `tower_light_sequence_by_name`, `tower_lights_on`, `tower_lights_off`
21
- - Drums (4): `tower_rotate`, `tower_rotate_drum`, `tower_random_rotate`, `tower_get_drum_positions`
22
- - Seals (5): `tower_break_seal`, `tower_is_seal_broken`, `tower_get_broken_seals`, `tower_reset_seals`, `tower_random_seal`
23
- - State & Glyphs (5): `tower_get_state`, `tower_send_state`, `tower_get_glyphs`, `tower_get_glyph`, `tower_glyphs_facing`, `tower_skull_count`, `tower_reset_skull_count`
24
- - 17 MCP resources:
25
- - Tower state snapshots: `tower://connection`, `tower://device-info`, `tower://battery`, `tower://drums`, `tower://glyphs`, `tower://seals`, `tower://state`, `tower://audio-library`, `tower://light-effects`
26
- - Game content: `tower://game/rules`, `tower://game/adversaries`, `tower://game/quests`, `tower://game/items`, `tower://game/heroes`, `tower://game/buildings`, `tower://game/lore`, `tower://game/glossary`
27
- - 8 MCP prompt templates: `dramatic_entrance`, `victory_sequence`, `defeat_sequence`, `monthly_transition`, `dungeon_run`, `battle_start`, `game_master_setup`, `sound_browser`
28
- - `TowerController` singleton wrapping `ultimatedarktower` with full connection lifecycle, calibration, state management, and error wrapping via `wrapToolHandler()`
29
- - `TowerSnapshot` interface for resource generation
30
- - Zod validation schemas for all tool inputs (navigation, lights, audio, seals, glyphs)
31
- - Lookup maps for case-insensitive name resolution (sounds, light sequences, light effects)
32
- - MCP-compatible logging bridge (`McpLogOutput`)
33
- - GitHub Flow release process and commit conventions in `CONTRIBUTING.md`
34
- - `ci`, `type-check`, `format`, `format:check`, `prepack`, `prepublishOnly`, `publish:check` npm scripts
35
- - `files` allowlist and `publishConfig` for clean npm publishing
36
-
37
- ### Removed
38
-
39
- - SVG glyph assets (glyphs managed via game state resources)
1
+ # Changelog
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b25a905: Ship the game-content resources, and report the real version.
8
+
9
+ All 8 game-knowledge resources (`tower://game/rules`, `/heroes`, `/lore`, …)
10
+ served the literal string `[File not found: game-content/rules.md]` in v1.0.0.
11
+ `loadAsset()` resolves against `dist/`, but the build was a bare `tsc`, which
12
+ doesn't emit `.md` — so the published tarball contained no game content at all.
13
+ The build now copies the assets, and a missing one throws instead of silently
14
+ degrading to placeholder text.
15
+
16
+ The server also reported version `0.1.0` over MCP from a hardcoded constant
17
+ while shipping as `1.0.0`; it now reads from `package.json`.
18
+
19
+ All notable changes to this project will be documented in this file.
20
+
21
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
22
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
23
+
24
+ ## [Unreleased]
25
+
26
+ ## [1.0.0] - 2026-02-24
27
+
28
+ ### Added
29
+
30
+ - Dual-transport MCP server: stdio and HTTP (Streamable HTTP) with session management
31
+ - HTTP endpoints: `POST /mcp`, `GET /mcp` (SSE), `DELETE /mcp`, `GET /health`
32
+ - CLI flags: `--stdio-only`, `--http-only`, `--port <n>`
33
+ - 34 MCP tools across 6 categories:
34
+ - Connection (9): `tower_connect`, `tower_disconnect`, `tower_calibrate`, `tower_status`, `tower_device_info`, `tower_is_responsive`, `tower_reconnect`, `tower_set_connection_monitoring`, `tower_set_battery_monitoring`
35
+ - Audio (3): `tower_play_sound`, `tower_play_sound_by_name`, `tower_list_sounds`
36
+ - Lights (6): `tower_set_lights`, `tower_set_led`, `tower_light_sequence`, `tower_light_sequence_by_name`, `tower_lights_on`, `tower_lights_off`
37
+ - Drums (4): `tower_rotate`, `tower_rotate_drum`, `tower_random_rotate`, `tower_get_drum_positions`
38
+ - Seals (5): `tower_break_seal`, `tower_is_seal_broken`, `tower_get_broken_seals`, `tower_reset_seals`, `tower_random_seal`
39
+ - State & Glyphs (7): `tower_get_state`, `tower_send_state`, `tower_get_glyphs`, `tower_get_glyph`, `tower_glyphs_facing`, `tower_skull_count`, `tower_reset_skull_count`
40
+ - 17 MCP resources:
41
+ - Tower state snapshots: `tower://connection`, `tower://device-info`, `tower://battery`, `tower://drums`, `tower://glyphs`, `tower://seals`, `tower://state`, `tower://audio-library`, `tower://light-effects`
42
+ - Game content: `tower://game/rules`, `tower://game/adversaries`, `tower://game/quests`, `tower://game/items`, `tower://game/heroes`, `tower://game/buildings`, `tower://game/lore`, `tower://game/glossary`
43
+ - 8 MCP prompt templates: `dramatic_entrance`, `victory_sequence`, `defeat_sequence`, `monthly_transition`, `dungeon_run`, `battle_start`, `game_master_setup`, `sound_browser`
44
+ - `TowerController` singleton wrapping `ultimatedarktower` with full connection lifecycle, calibration, state management, and error wrapping via `wrapToolHandler()`
45
+ - `TowerSnapshot` interface for resource generation
46
+ - Zod validation schemas for all tool inputs (navigation, lights, audio, seals, glyphs)
47
+ - Lookup maps for case-insensitive name resolution (sounds, light sequences, light effects)
48
+ - MCP-compatible logging bridge (`McpLogOutput`)
49
+ - GitHub Flow release process and commit conventions in `CONTRIBUTING.md`
50
+ - `ci`, `type-check`, `format`, `format:check`, `prepack`, `prepublishOnly`, `publish:check` npm scripts
51
+ - `files` allowlist and `publishConfig` for clean npm publishing
52
+
53
+ ### Removed
54
+
55
+ - SVG glyph assets (glyphs managed via game state resources)