CR

chase-roohms/legendkeeper-mcp

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

3 stars 0 forks 质量 83 趋势 25MIT

LegendKeeper 的非官方 MCP 服务器。让 Claude、Copilot、Cursor 和其他 AI 助手阅读并构建你的桌上角色扮演游戏世界:以 Markdown 形式制作的维基页面、信息框、地图钉、时间线、标签和图片。

概览

一个MCP服务器,允许AI助手(Claude、Copilot、Cursor等)阅读并构建你的LegendKeeper世界:维基页面、信息框事实、地图钉、时间线、标签、模板和图片,通过LegendKeeper官方的v3 REST API。 该项目未由 LegendKeeper 制作、认可或支持。它运行在您的机器上,使用您自己的 API 密钥。 - 为大型语言模型设计。资源接受名称和ID,错误解释如何修复它们。api_request逃逸口可到达每一个v3端点。- ,双向。[[Wiki Links]]成为LegendKeeper提及的真实内容。支持调用、仅GM秘密、可折叠部分、任务列表、表格和图片。Markdown无法表达的块(信息框、嵌入、集合等)在重写时被逐字保留。参见页面如何编辑。- :添加、前置、替换或扩展某一标题的部分,但不触及页面其他部分。每次写入都经过版本检查(If-Match),因此应用内的并发编辑不会被无声覆盖。

概述(AI 翻译)

一个MCP服务器,允许AI助手(Claude、副驾驶、光标等)读取和 构建你的传奇守护者世界:维基页面、信息框事实、地图钉、时间线, 标签、模板和图片,均通过LegendKeeper官方渠道提供 v3 REST API。

非官方。 本项目未由LegendKeeper制作、认可或支持。它运行在您的机器上本地运行 用你自己的API密钥。

目录

  • 特色
  • 要求
  • 快速入门
  • 客户端设置
  • 配置
  • 工具
  • 页面编辑方式(Markdown)
  • 安全
  • 故障排除
  • 发展
  • 释放

特色

  • 31个为大型语言模型设计的策划工具。资源接受名称和ID,错误解释了如何修复 他们。每隔一个v3端点就有一个api_request逃生舱口。
  • 页面作为Markdown,双向。[[Wiki Links]]成为真正的传奇守护者提及。呼喊,仅限GM 支持秘密、可折叠部分、任务列表、表格和图像。Markdown 无法表达的块 (信息框、嵌入、集合…)在重写时被原封不动地保留。参见 页面的编辑方式。
  • 章节级编辑:添加、前置、替换或扩展某一标题的部分,但不涉及其他部分 页面。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

legendkeeper-mcp

An MCP server that lets AI assistants (Claude, Copilot, Cursor, …) read and build your LegendKeeper worlds: wiki pages, infobox facts, map pins, timelines, tags, templates and images, through LegendKeeper’s official v3 REST API.

Unofficial. This project is not made, endorsed or supported by LegendKeeper. It runs locally on your machine with your own API key.

You: Create a tavern called The Drunken Dragon in Waterdeep, give it an infobox with its owner and
     a pin on the city map, and mention it on Volo's page.
Claude: (search → create_resource → set_facts → create_map_feature → write_page) Done! ...

Contents

Features

  • 31 curated tools designed for LLMs. Resources accept names as well as ids, and errors explain how to fix them. An api_request escape hatch reaches every other v3 endpoint.
  • Pages as Markdown, both ways. [[Wiki Links]] become real LegendKeeper mentions. Callouts, GM-only secrets, collapsible sections, task lists, tables and images are supported. Blocks Markdown can’t express (infoboxes, embeds, collections…) are preserved verbatim on rewrite. See How pages are edited.
  • Section-level editing: append, prepend, replace or extend one heading’s section without touching the rest of the page. Every write is version-checked (If-Match), so concurrent edits in the app are never silently overwritten.
在 GitHub 查看完整 README

安装

uvx legendkeeper-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "legendkeeper": { "command": "uvx", "args": ["legendkeeper-mcp"], "env": { "LEGENDKEEPER_API_KEY": "lk_your_key_here" } } } }