prts-mcp-ts 0.1.0 → 0.3.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/README.md +9 -3
- package/data/gamedata/.gitkeep +0 -0
- package/data/gamedata/zh_CN/gamedata/excel/character_table.json +493533 -0
- package/data/gamedata/zh_CN/gamedata/excel/charword_table.json +302820 -0
- package/data/gamedata/zh_CN/gamedata/excel/handbook_info_table.json +78532 -0
- package/data/gamedata/zh_CN/gamedata/excel/story_review_table.json +57997 -0
- package/data/storyjson/.gitkeep +0 -0
- package/data/storyjson/zh_CN.zip +0 -0
- package/dist/config.d.ts +18 -2
- package/dist/config.js +36 -3
- package/dist/config.js.map +1 -1
- package/dist/data/operator.d.ts +2 -0
- package/dist/data/operator.js +95 -0
- package/dist/data/operator.js.map +1 -1
- package/dist/data/story.d.ts +80 -0
- package/dist/data/story.js +207 -0
- package/dist/data/story.js.map +1 -0
- package/dist/data/sync.d.ts +32 -0
- package/dist/data/sync.js +207 -19
- package/dist/data/sync.js.map +1 -1
- package/dist/server.js +258 -26
- package/dist/server.js.map +1 -1
- package/package.json +22 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
明日方舟同人创作辅助 MCP Server,TypeScript 版本。通过 **Streamable HTTP 传输**(单端点 `/mcp`)对外提供服务,适合部署在个人服务器或云环境,供他人通过 HTTP 接入。
|
|
4
4
|
|
|
5
|
-
提供工具集:`search_prts` / `read_prts_page` / `get_operator_archives` / `get_operator_voicelines`
|
|
5
|
+
提供工具集:`search_prts` / `read_prts_page` / `get_operator_archives` / `get_operator_voicelines` / `get_operator_basic_info` / `list_story_events` / `list_stories` / `read_story` / `read_activity`
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -52,7 +52,12 @@ npm start # 运行编译后的版本
|
|
|
52
52
|
|
|
53
53
|
## 数据机制
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
服务器启动时自动同步两类数据:
|
|
56
|
+
|
|
57
|
+
- **干员数据**(`/data/gamedata` volume):从 [ArknightsGameData](https://github.com/Kengxxiao/ArknightsGameData) 同步
|
|
58
|
+
- **剧情数据**(`/data/storyjson` volume):从 [ArknightsStoryJson](https://github.com/3aKHP/ArknightsStoryJson) Releases 下载 `zh_CN.zip`
|
|
59
|
+
|
|
60
|
+
镜像内置 bundled 数据作为网络不可用时的离线保底。
|
|
56
61
|
|
|
57
62
|
---
|
|
58
63
|
|
|
@@ -62,7 +67,8 @@ npm start # 运行编译后的版本
|
|
|
62
67
|
|------|--------|------|
|
|
63
68
|
| `PORT` | `3000` | 监听端口 |
|
|
64
69
|
| `HOST` | `0.0.0.0` | 监听地址 |
|
|
65
|
-
| `GAMEDATA_PATH` | 未设置 |
|
|
70
|
+
| `GAMEDATA_PATH` | 未设置 | 设置后指向自定义干员数据目录,**auto-sync 被禁用** |
|
|
71
|
+
| `STORYJSON_PATH` | 未设置 | 设置后指向本地 `zh_CN.zip`,**剧情 auto-sync 被禁用** |
|
|
66
72
|
| `GITHUB_TOKEN` | 空 | 用于提高 GitHub API 限额,降低限流风险 |
|
|
67
73
|
|
|
68
74
|
---
|
|
File without changes
|