Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Progressive Skill Disclosure, Semantic Tool Search & Context Optimizer for AI Agents
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"skillprism": {
"command": "npx",
"args": [
"-y",
"@ritualdev-lab/skillprism"
]
}
}
}在终端中运行这条命令
claude mcp add skillprism -- npx -y @ritualdev-lab/skillprism粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"skillprism": {
"command": "npx",
"args": [
"-y",
"@ritualdev-lab/skillprism"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"skillprism": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ritualdev-lab/skillprism"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 RitualDev-Lab 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.2.4)于昨天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Progressive Skill Disclosure & Context Compaction Engine for Autonomous AI Coding Agents
*Preloading hundreds of enterprise tool schemas dilutes model attention and inflates token costs. SkillPrism indexes skills out-of-context and injects only what the model needs, right when it needs it.*
When autonomous coding agents (Claude Code, Cursor, Windsurf, Antigravity) connect to enterprise MCP servers or large API catalogs:
SkillPrism moves the entire tool catalog outside the LLM context:
search_skills and load_skill.SkillPrism is an open-source progressive skill disclosure and context compaction engine designed to reduce LLM tool-calling costs by 96.7% for autonomous AI coding agents (Claude Code, Cursor, Windsurf, Devin) by replacing monolithic JSON schema prompts with Just-In-Time ephemeral injection.
Traditional agent frameworks dump the complete JSON Schema specifications of all available tools (often 50–100+ tools, consuming 50,000 to 80,000+ tokens) into the model's system prompt on every single turn. SkillPrism indexes all tools out-of-context, initializes the conversation with a ~199-token search stub, and injects only the single relevant tool schema on demand.
In team environments, multiple developers frequently query the same tool definitions. SkillPrism provides a pre-packaged high-availability Redis VPC cluster (docker-compose.redis-vpc.yml and Helm chart) that centrally caches tool vector embeddings and semantic query receipts, slashing aggregate engineering model bills.
# Run CLI directly via npx
npx @ritualdev-lab/skillprism search "postgres database query"
pnpm add @ritualdev-lab/skillprism
import { SkillIndex } from "@ritualdev-lab/skillprism";
const index = new SkillIndex();
// Register tool schemas into out-of-context index index.register({ id: "postgres_query", name: "PostgreSQL Query Exec", summary: "Executes parameterized read queries against production PostgreSQL clusters", description: "Performs read-only SQL queries with built-in connection pooling and PII redaction.", category: "database", tags: ["sql", "postgres", "db", "query"], permissions: ["db:read"], parameters: [ { name: "sql", type: "string", description: "The SQL statement", required: true }, { name: "params", type: "array", description: "Query bind variables" } ] });
// Import tools directly from standard MCP servers (tools/list) index.importFromMcp(mcpToolsList);
// Search for matching skills with zero prompt bloat const matches = index.search("fetch user records from postgres", 3); console.log(matches[0].disclosureSnippet);
Connect SkillPrism as a transparent MCP server to eliminate tool prompt bloat in your favorite AI coding agent:
Add SkillPrism to your Claude Code workspace:
claude mcp add skillprism -- npx -y @ritualdev-lab/skillprism proxy --stdio
Or configure directly in claude.json:
{
"mcpServers": { "skillprism": { "command": "npx", "args": ["-y", "@ritualdev-lab/skillprism", "proxy", "--stdio"] } } }
~/.cursor/mcp.json)Add to your Cursor global or workspace MCP configuration:
{
"mcpServers": { "skillprism": { "command": "npx", "args": ["-y", "@ritualdev-lab/skillprism", "proxy", "--stdio"] } } }
~/.codeium/windsurf/mcp_config.json){
"mcpServers": { "skillprism": { "command": "npx", "args": ["-y", "@ritualdev-lab/skillprism", "proxy", "--stdio"] } } }
# 1-Click non-destructive integration (.cursorrules and CLAUDE.md managed sections)
npx @ritualdev-lab/skillprism init --cursor npx @ritualdev-lab/skillprism init --claude npx @ritualdev-lab/skillprism init --all
npx @ritualdev-lab/skillprism search "upload file to s3"
npx @ritualdev-lab/skillprism import ./api-spec.json
npx @ritualdev-lab/skillprism add http://localhost:3000/mcp
npx @ritualdev-lab/skillprism benchmark
npx @ritualdev-lab/skillprism benchmark --trajectory
npx @ritualdev-lab/skillprism sync
npx @ritualdev-lab/skillprism proxy --stdio --turn-ttl 5
npx @ritualdev-lab/skillprism proxy --port 8080 \ --auth-token "super-secret-mcp-key" \ --allowed-origins "https://app.internal,http://localhost:3000" \ --max-body-size 2097152 \ --isolate-sessions
npx @ritualdev-lab/skillprism proxy --port 8080 --dry-run-simulation
SkillPrism functions as a transparent, high-performance gateway between AI agent runtimes (Claude Code, Cursor, Windsurf, Antigravity) and your underlying MCP servers:
tools/call directly to the connected upstream server via Stdio child processes or HTTP endpoints.-32603). Simulation mode is strictly opt-in via --dry-run-simulation.capabilities.tools.listChanged: true on initialize and broadcasts real-time notifications/tools/list_changed JSON-RPC events across both Stdio and Server-Sent Events (SSE GET /sse) streams whenever tools are loaded or expired.--turn-ttl, default: 3 turns) and sliding idle expiration (--idle-ttl, default: 600s). Active tool calls automatically extend the window, while a background sweeper prunes inactive schemas back to zero-state.--isolate-sessions or the mcp-session-id / x-session-id HTTP header, each agent session is sandboxed in its own harness. Tool schemas activated in Session A never leak into Session B.--auth-token (HTTP 401 on unauthorized calls) and validates CORS origins against --allowed-origins (HTTP 403 on untrusted origins).--max-body-size (HTTP 413 Payload Too Large) to prevent buffer-exhaustion attacks.$defs, $ref, oneOf, anyOf, allOf, additionalProperties: false, property enum: [...], and defaults without stripping constraints.skillprism init safely injects managed blocks ( ) into .cursorrules and CLAUDE.md, creates timestamped backups (.bak. ), preserves sibling servers, and strictly aborts on invalid JSON configs unless --force is passed.SkillPrism measures both upfront zero-state prompt reductions and complete multi-turn task trajectory costs using verifiable BPE tokenization (gpt-tokenizer cl100k_base / o200k_base):
skillprism benchmark)⚡ SkillPrism Zero-State Token Savings
📦 Benchmark Catalog: 100 Enterprise Tools (Synthetic across 7 categories) 🔴 Unoptimized Preload: ~11,989 tokens (All raw JSON schemas loaded upfront) 🟢 SkillPrism JIT: ~326 tokens (3 lightweight zero-state meta-tools) 🚀 Upfront Token Savings: 97.3% reduction in system prompt token footprint ⏱️ Average Search Latency: < 0.3 ms (Hybrid BM25 + dense vector similarity) 💾 Payload Compaction: 91.0% savings on heavy responses (> 512 bytes)
skillprism benchmark --trajectory)Measures complete lifecycle token expenditure (tool discovery + schema activation + tool execution + response payload compaction + receipt drill-down + TTL expiration) across realistic multi-turn reasoning workflows:
📈 Complete Multi-Turn Task Trajectory Economics Benchmark
📦 Catalog Size: 50 Enterprise Tools 🔄 Task Trajectory Lifetime: 5 Turns 🎯 Task Success Rate: 100% (Discovered, Loaded, Executed, Inspected) 🔴 Monolithic Cumulative Tokens: ~10,500 tokens (Preloaded schemas repeated every turn + raw payloads) 🟢 SkillPrism Cumulative Tokens: ~2,150 tokens (Zero-state + search + ephemeral schema + receipt) 🚀 Net Trajectory Token Savings: 79.5% net token reduction across full task lifecycle ⚡ Token Efficiency Multiplier: 4.88x more tokens preserved for agent reasoning
inspect_receipt).只显示了开头部分;其余内容请在仓库中阅读