npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

prts-mcp-ts

v0.3.1

Published

MCP Server for Arknights PRTS Wiki & game data (TypeScript / Streamable HTTP)

Downloads

516

Readme

PRTS MCP Server — TypeScript 实现

明日方舟同人创作辅助 MCP Server,TypeScript 版本。通过 Streamable HTTP 传输(单端点 /mcp)对外提供服务,适合部署在个人服务器或云环境,供他人通过 HTTP 接入。

提供工具集:search_prts / read_prts_page / get_operator_archives / get_operator_voicelines / get_operator_basic_info / list_story_events / list_stories / read_story / read_activity


快速开始(Docker)

# 从仓库根目录构建(需先预置数据,详见下方)
docker build -f ts/Dockerfile -t prts-mcp-ts .

# 运行(named volume 持久化游戏数据,推荐)
docker run -d -p 3000:3000 -v prts-mcp-ts-data:/data/gamedata prts-mcp-ts

服务启动后 MCP 端点为 http://<host>:3000/mcp,健康检查端点为 http://<host>:3000/health

接入 MCP 客户端

在客户端配置中选择 Streamable HTTP 传输类型,端点填写:

http://localhost:3000/mcp

快速试用(npx)

无需克隆仓库,直接运行:

npx prts-mcp-ts

服务启动后 MCP 端点为 http://localhost:3000/mcp

本地开发

cd ts
npm install
npm run dev       # tsx 直接运行,支持热重载
npm run build     # 编译到 dist/
npm start         # 运行编译后的版本

数据机制

服务器启动时自动同步两类数据:

镜像内置 bundled 数据作为网络不可用时的离线保底。


环境变量

| 变量 | 默认值 | 说明 | |------|--------|------| | PORT | 3000 | 监听端口 | | HOST | 0.0.0.0 | 监听地址 | | GAMEDATA_PATH | 未设置 | 设置后指向自定义干员数据目录,auto-sync 被禁用 | | STORYJSON_PATH | 未设置 | 设置后指向本地 zh_CN.zip剧情 auto-sync 被禁用 | | GITHUB_TOKEN | 空 | 用于提高 GitHub API 限额,降低限流风险 |


预置 bundled 数据(本地构建推荐)

pip install -e python/
python python/scripts/fetch_gamedata.py
docker build -f ts/Dockerfile -t prts-mcp-ts .