rive-docs-mcp: Instructions file for Claude Code

CLAUDE.md

rive-docs-mcp CLAUDE.md is an instructions file for Claude Code from StormXX/rive-docs-mcp. It costs 1,847 tokens per session, scanned A, original, MIT.

A document-access server that lets coding assistants search and read Rive documentation. Rive is a platform for creating interactive animations, with tools for web, mobile, and game applications.

In plain words
What is it for?
Use it to find Rive guides, tutorials, API references, editor features, and platform compatibility information.
Why use it?
It avoids switching between an AI assistant and Rive’s documentation when checking how a feature or platform integration works.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is StormXX/rive-docs-mcp's own configuration. It tells Claude Code how to work on rive-docs-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rive-docs-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to StormXX/rive-docs-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/StormXX/rive-docs-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/StormXX/rive-docs-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rive-docs-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/stormxx/rive-docs-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/stormxx/rive-docs-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/stormxx/rive-docs-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/stormxx/rive-docs-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rive-docs-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/stormxx/rive-docs-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/stormxx/rive-docs-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,847 This file is loaded in full into every session.
When invoked 1,847 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01847 $0.01847
Opus 5.5 $0.00739 $0.00739
Sonnet 5.5 $0.00369 $0.00369
Haiku 4.5 $0.00185 $0.00185

Measured 2mo ago against content hash 708b2105ff32, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rive-docs-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rive Docs MCP - Claude AI 项目指南

项目概述

Rive Docs MCP 是一个基于 Model Context Protocol (MCP) 的服务器,专门为 Rive 动画平台提供文档访问功能。它允许 Claude、Cursor 等 AI 助手直接访问和搜索 Rive 的完整文档,包括运行时集成指南、编辑器功能、教程和 API 参考。

主要目的

  • 为 AI 助手提供 Rive 文档的智能访问
  • 支持跨平台运行时(Web、React、Flutter、iOS、Android、Unity、Unreal 等)
  • 简化 Rive 开发工作流程
  • 提供实时的文档搜索和内容提取

核心功能

🔍 智能搜索工具

  • search_rive_docs: 跨所有 Rive 文档进行智能搜索
  • get_rive_doc_content: 获取特定文档页面的详细内容
  • check_feature_support: 检查功能在不同运行时的兼容性

🏃 运行时支持工具

  • list_runtimes: 列出所有可用的运行时平台
  • get_runtime_guide: 获取特定运行时的实现指南
  • get_api_reference: 访问运行时特定的 API 文档

🎨 编辑器功能工具

  • list_editor_features: 浏览 Rive 编辑器的功能和能力
  • get_tutorials: 按主题、难度或运行时查找教程

支持的平台

  • Web 运行时: JavaScript、React、React Native
  • 移动运行时: Flutter、iOS、Android
  • 游戏运行时: Unity、Unreal Engine、Defold
  • 社区运行时: C#、Qt

技术架构

主要组件

  1. 内容提取器 (content-extractor.ts)

    • 处理 JavaScript 渲染的 Rive 文档
    • 使用 JSDOM 解析动态内容
    • 提取标题、内容、代码块、链接和图片
  2. 搜索引擎 (search.ts)

    • 智能搜索与相关性评分
    • 支持分类和运行时过滤
    • 缓存搜索结果以提高性能
  3. 导航爬虫 (navigation-crawler.ts)

    • 发现和索引所有文档页面
    • 构建运行时列表和教程目录
    • 生成内容标签
  4. HTTP 客户端 (http-client.ts)

    • 带有重试逻辑的健壮请求处理
    • 速率限制和并发控制
    • 性能监控和统计
  5. 缓存系统 (cache.ts)

    • TTL(生存时间)缓存
    • 不同内容类型的智能缓存策略
    • 自动清理过期项目
  6. 错误处理 (error-handler.ts)

    • 全面的错误分类和处理
    • 用户友好的错误消息和建议
    • 工具特定的故障排除提示

数据流

用户查询 → MCP 工具调用 → 内容提取/搜索 → 缓存检查 → HTTP 请求 → 内容解析 → 格式化响应

使用示例

搜索 React 集成信息

search_rive_docs({
  query: "React component setup",
  category: "runtimes",
  runtime: "react"
})

获取 Flutter 入门指南

get_runtime_guide({
  runtime: "flutter",
  section: "getting-started"
})

查找状态机教程

get_tutorials({
  topic: "state machine",
  difficulty: "beginner"
})

检查 Unity 功能支持

check_feature_support({
  feature: "timeline events",
  runtime: "unity"
})

开发指南

项目结构

src/
├── index.ts              # 主 MCP 服务器
├── tools/                # 工具实现
│   ├── definitions.ts    # 工具定义
│   ├── handlers.ts       # 工具处理器
│   ├── search.ts         # 搜索功能
│   └── doc-fetcher.ts    # 文档获取
├── utils/                # 工具类
│   ├── constants.ts      # 配置常量
│   ├── http-client.ts    # HTTP 客户端
│   ├── cache.ts          # 缓存系统
│   ├── logger.ts         # 日志工具
│   ├── error-handler.ts  # 错误处理
│   ├── content-extractor.ts  # 内容提取
│   └── navigation-crawler.ts # 导航发现
└── types/                # TypeScript 类型
    └── index.ts          # 类型定义

Read the full file on GitHub · 218 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 218 lines · 1,847 tokens per session scan A 708b2105ff32

Subscribe to this mod's changes

rive-docs-mcp CLAUDE.md is an instructions file published in the GitHub repository StormXX/rive-docs-mcp (6 stars, last pushed 1y ago), licensed MIT. It adds 1,847 tokens to every session, about $0.0074 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,719 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,516 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,313 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 3,037 tokens