cursor-integration

cursor-integration is a cursor rule for Cursor from juyitingmcp/juyitingmcp. It costs 0 tokens per session (2,432 once invoked), scanned C, original, MIT.

A setup guide for connecting the Juyiting MCP system to Cursor, an AI-powered code editor. It describes basic, development, and advanced configuration options, including authentication, caching, retries, and telemetry.

In plain words
What is it for?
Use it to add the Juyiting server to Cursor, point it at local files, set environment options, configure caching and retries, and control optional usage-data collection.
Why use it?
It removes the uncertainty around where to place the MCP configuration and how to adjust it for local development or regular use.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/juyitingmcp/juyitingmcp/cursor-integration
Clone the repo
git clone --depth 1 https://github.com/juyitingmcp/juyitingmcp

Made for: Cursor.

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 cursor-integration

README.md
[![agentmods](https://agentmods.dev/badge/rules/juyitingmcp/juyitingmcp/cursor-integration.svg)](https://agentmods.dev/rules/juyitingmcp/juyitingmcp/cursor-integration)
Your own site
<a href="https://agentmods.dev/rules/juyitingmcp/juyitingmcp/cursor-integration"><img src="https://agentmods.dev/badge/rules/juyitingmcp/juyitingmcp/cursor-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,432 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00000 $0.02432
Opus 5 $0.00000 $0.01216
Sonnet 5 $0.00000 $0.00486
Haiku 4.5 $0.00000 $0.00243

Measured 3d ago against content hash 5f9d5d6e9754, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

cursor-integration scanned grade C with 2 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 3d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.juyiting/cache/*

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -I https://api.juyiting.com/health
.cursor/rules/cursor-integration.mdc · 355 lines

How it starts

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

聚义厅MCP与Cursor集成指南

Cursor MCP配置

基础配置

在Cursor的设置中添加以下MCP服务器配置:

{
  "mcpServers": {
    "juyiting": {
      "command": "npx",
      "args": ["-y", "@juyiting/mcp-client"],
      "env": {
        "JUYITING_CONFIG_PATH": "~/.juyiting/config.json"
      }
    }
  }
}

开发环境配置

用于本地开发和调试:

{
  "mcpServers": {
    "juyiting-dev": {
      "command": "node",
      "args": [
        "/path/to/juyitingmcp/dist/server.js",
        "--personas", "/path/to/local-personas.json"
      ],
      "env": {
        "NODE_ENV": "development",
        "DEBUG": "true",
        "TELEMETRY_ENABLED": "false"
      }
    }
  }
}

高级配置选项

{
  "mcpServers": {
    "juyiting": {
      "command": "node",
      "args": [
        "/usr/local/bin/juyiting-mcp",
        "--config", "~/.juyiting/config.json",
        "--cache-duration", "300000",
        "--max-retries", "3"
      ],
      "env": {
        "JUYITING_API_URL": "https://api.juyiting.com",
        "JUYITING_CACHE_DIR": "~/.juyiting/cache",
        "TELEMETRY_ENABLED": "true"
      }
    }
  }
}

用户配置设置

初始配置

首次使用需要设置用户认证密钥:

# 创建配置目录
mkdir -p ~/.juyiting

# 设置用户密钥
echo '{
  "userKey": "your-api-key-from-juyiting-web",
  "apiBaseUrl": "https://api.juyiting.com",
  "cache": {
    "duration": 300000,
    "maxSize": 1000
  },
  "sync": {
    "autoSync": true,
    "syncInterval": 3600000,
    "retryAttempts": 3
  }
}' > ~/.juyiting/config.json

配置文件详解

interface LocalConfig {
  userKey: string;                    // 聚义厅Web平台获取的API密钥
  apiBaseUrl: string;                 // API服务地址,默认官方服务
  currentConfig?: PersonaConfig;       // 当前激活的人格配置
  lastSyncTime?: string;              // 最后同步时间
  
  cache: {
    duration: number;                 // 缓存时长(毫秒),默认5分钟
    maxSize: number;                  // 最大缓存条目,默认1000
  };
  
  sync: {
    autoSync: boolean;                // 是否自动同步配置,默认true
    syncInterval: number;             // 同步间隔(毫秒),默认1小时
    retryAttempts: number;            // 重试次数,默认3次
  };
}

Read the full file on GitHub · 355 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. 3d ago First seen · 355 lines · 0 tokens per session scan C 5f9d5d6e9754

Subscribe to this mod's changes

cursor-integration is a cursor rule published in the GitHub repository juyitingmcp/juyitingmcp (4 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,432 tokens. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.