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.
npx agentmods add rules/juyitingmcp/juyitingmcp/cursor-integrationgit clone --depth 1 https://github.com/juyitingmcp/juyitingmcpWrote 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.
[](https://agentmods.dev/rules/juyitingmcp/juyitingmcp/cursor-integration)<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>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.
| Model | Per session | Once 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 |
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 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次
};
}
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.
- 3d ago First seen · 355 lines · 0 tokens per session scan C 5f9d5d6e9754
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.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.