Verse语言文档服务

Verse语言文档和UEFN API参考的MCP服务器,提供章节列表、搜索和API模块查询等功能。

  • by BurgersJackson
  • Python
  • 本地部署
  • 4 星标
  • 更新于
在 GitHub 查看 BurgersJackson/verse-mcp

使用说明

诗歌mcp

MCP服务器 诗歌语言 文档和UEFN API参考。专为配合使用而设计 克劳德代码.

提供的工具

工具 说明
list_chapters 列出Verse语言书中的所有章节
get_chapter 阅读特定章节
search_verse_docs 搜索所有章节
get_verse_home 获取书籍介绍页面
cache_all_chapters 预下载所有章节以加快搜索速度
search_verse_api 搜索UEFN Verse API摘要
get_verse_api_module 获取模块/类的完整API引用
list_verse_api_modules 列出API摘要中的所有模块

安装

克劳德代码(推荐)

claude mcp add verse-docs -- uvx --from git+https://github.com/BurgersJackson/verse-mcp verse-mcp

点

pip install git+https://github.com/BurgersJackson/verse-mcp.git
verse-mcp

本地开发

git clone https://github.com/BurgersJackson/verse-mcp.git
cd verse-mcp
pip install -e .
verse-mcp

配置

  • VERSE_DIGEST_PATH -使用自定义文件路径覆盖捆绑的API摘要:

    VERSE_DIGEST_PATH=/path/to/my/verse_digest.md verse-mcp
    
  • VERSE_MCP_CACHE_DIR --覆盖已获取文档的默认缓存目录:

    VERSE_MCP_CACHE_DIR=/tmp/verse-cache verse-mcp
    

设置:告诉克劳德使用这些工具

安装MCP服务器后,Claude可以访问这些工具,但除非你告诉它,否则Claude不会自动使用它们 CLAUDE.md 文件。

全球(推荐) --添加到 ~/.claude/CLAUDE.md 它自动应用于每个项目和会话:

# Linux/macOS
cat >> ~/.claude/CLAUDE.md << 'EOF'

## Verse Language Support

When working with Verse code (.verse files, UEFN projects):

1. Always use the `verse-docs` MCP tools before writing non-trivial Verse code.
   - `search_verse_docs` for language syntax and patterns
   - `get_chapter` for specific language features
   - `search_verse_api` for UEFN API classes, methods, and types
   - `get_verse_api_module` for full module/class definitions
2. On first use in a session, run `cache_all_chapters` to pre-download docs.
3. When using UEFN APIs, always verify class names and method signatures with `search_verse_api`.
EOF

每个项目 --将相同的代码段添加到 CLAUDE.md 如果您只希望它用于特定项目,请将其添加到项目根目录中。