Skip to main content

MCP Server for Arknights PRTS Wiki & game data

Project description

PRTS MCP Server — Python 实现

明日方舟同人创作辅助 MCP Server,Python 版本。通过 stdio 传输接入 MCP 客户端(Claude Desktop、Claude Code、Chatbox 等),支持 Docker 部署。

提供工具集: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 python/Dockerfile -t prts-mcp .

# 运行(named volume 持久化游戏数据,推荐)
docker run -i --rm -v prts-mcp-data:/data/gamedata -v prts-mcp-storyjson:/data/storyjson prts-mcp

接入 MCP 客户端

{
  "mcpServers": {
    "prts_wiki": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-v", "prts-mcp-data:/data/gamedata", "-v", "prts-mcp-storyjson:/data/storyjson", "prts-mcp"]
    }
  }
}

请使用 docker run 而非 docker compose run。后者会向 stdio 流写入进度信息,污染 JSON-RPC 通道。


不使用 Docker(pip install)

pip install -e .

# 需指定游戏数据目录(GAMEDATA_PATH 设置后禁用 auto-sync)
GAMEDATA_PATH=/path/to/ArknightsGameData prts-mcp

数据机制

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

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

PyPI 包本身不内置 bundled 数据;直接 pip install prts-mcp 时会在启动时自动同步,或使用 GAMEDATA_PATH / STORYJSON_PATH 指向你自己的本地数据。正式 Docker 镜像会由 CI 预置兜底数据。


详细文档

docs/deployment.md:完整部署方式、MCP 客户端配置、环境变量参考

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prts_mcp-1.0.0b1.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prts_mcp-1.0.0b1-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file prts_mcp-1.0.0b1.tar.gz.

File metadata

  • Download URL: prts_mcp-1.0.0b1.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for prts_mcp-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 3136bc9235453b7e7ad6e4d59d6b9da59a2def878d35ce8ae8eda3d11e708e04
MD5 79b0e83c6718b94d4fb2cead906c930d
BLAKE2b-256 2467cc651d5b94e58bbce54408dea78591862574f52b5e3a75e2eb2329d4d6e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for prts_mcp-1.0.0b1.tar.gz:

Publisher: cd.yml on 3aKHP/prts-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prts_mcp-1.0.0b1-py3-none-any.whl.

File metadata

  • Download URL: prts_mcp-1.0.0b1-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for prts_mcp-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 b88fd3c1ed267b7ac28394a68656df5834967e3eba0a27a78f5f76527a8cad55
MD5 0cc1d21e0b1c8ff215fae01e19eea907
BLAKE2b-256 3d16cabf9fe4a770e3819a5d87bfee33b8a9fb22d537150fbec1d947ea6d23b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for prts_mcp-1.0.0b1-py3-none-any.whl:

Publisher: cd.yml on 3aKHP/prts-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page