Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
AI prompt optimization for 58+ platforms across 7 categories with custom platforms
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
LLM_API_URL, LLM_API_KEY, LLM_MODEL标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"clarifyprompt": {
"command": "npx",
"args": [
"-y",
"clarifyprompt-mcp"
],
"env": {
"LLM_API_URL": "your-value",
"LLM_API_KEY": "your-value",
"LLM_MODEL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add clarifyprompt --env LLM_API_URL=your-value --env LLM_API_KEY=your-value --env LLM_MODEL=your-value -- npx -y clarifyprompt-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"clarifyprompt": {
"command": "npx",
"args": [
"-y",
"clarifyprompt-mcp"
],
"env": {
"LLM_API_URL": "your-value",
"LLM_API_KEY": "your-value",
"LLM_MODEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"clarifyprompt": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"clarifyprompt-mcp"
],
"env": {
"LLM_API_URL": "your-value",
"LLM_API_KEY": "your-value",
"LLM_MODEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 LumabyteCo 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:LLM_API_URL, LLM_API_KEY, LLM_MODEL
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.1.3)于8个月前进入注册中心。
支持 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、图片和脚本已被移除。链接会离开本站。
A context-aware MCP prompt compiler that transforms vague prompts into platform-optimized prompts for 60+ AI platforms across 7 categories — grounded in your workspace signals (CLAUDE.md, AGENTS.md, .cursorrules, package.json), resolved intent, and the capabilities of the target model.
Send a raw prompt. ClarifyPrompt gathers the right context, resolves what you're actually trying to do, and returns a version specifically optimized for Midjourney, GPT Image 2, Veo, Runway, Kling, Seedance, Higgsfield, ElevenLabs, Suno, Claude, ChatGPT, Cursor, or any of the 61 supported platforms — with the right syntax, parameters, structure, and grounding.
New in 1.16.0: the platform-currency release. Every built-in pack fact-verified against current vendor docs (2026-10-05) — Midjourney V8.x, Runway Gen-4.5, Veo 3.1, Kling 3.0/Omni, Pika 2.2, Suno v6, ElevenLabs v3, gpt-4o-mini-tts, GPT Image 2 — each entry now carries a
verifiedAtdate. Sora retired everywhere (OpenAI shut the Videos API 2026-09-24, no replacement); new platforms: Seedance, ElevenLabs Music v2.5, Lyria 3.5. Plus the dialect-currency benchmark: 12 of the newest Ollama Cloud models asked to write platform prompts unprompted — 12/13 emit stale Midjourney flags, 12/12 write fluent prompts for dead Sora, zero hedge. Grounded mode re-runs the same asks with the pack facts injected and the scores flip. See the benchmark and CHANGELOG.md.
New in 1.15.0: Nano Banana (Google Gemini 2.5 Flash Image) is now a built-in image platform —
optimize_prompt(platform: "nano-banana")compiles image prompts in its native style (natural-language scene direction, photographic terms, edit-preserving-identity phrasing, in-image text). Plus latest-model compatibility across every provider:claude-sonnet-5,gpt-5/o-series, and Gemini rejecttemperatureand/ormax_tokens; the client now sends the right parameters (proactively for known reasoning ids, and learns the rest from a400). Verified live against Anthropic, OpenAI, Gemini, and Ollama Cloud. See CHANGELOG.md.
New in 1.14.1: Portable-by-default text output — a
chat/document/codeprompt with no explicit platform now stays platform-neutral instead of quietly defaulting to Claude's idioms (XML tags); name a platform to opt into vendor-specific tuning. Plus the MCP Apps compose panel now shows aforbadge and a clean Your prompt → Optimized before/after (with ashow changestoggle) instead of an always-on diff. See CHANGELOG.md.
New in 1.14.0: An interactive compose panel via MCP Apps. In hosts that speak the
io.modelcontextprotocol/uiextension (Claude Desktop, ChatGPT, Cursor, VS Code, …),compose_promptrenders a live panel: original-vs-optimized view, all six critique scores, the pipeline stages, and Accept / Revise actions — Accept records the outcome into ClarifyPrompt's memory loop, Revise sends your feedback back into the chat. One self-containedui://resource; hosts without the extension see zero change. See CHANGELOG.md.
New in 1.13.0: Plain-language rewrites. Optimized prompts now stick to common, everyday words instead of drifting into formal vocabulary ("use", never "utilize") — specificity comes from concrete details, not fancier synonyms.
critique_promptgained a 6th default dimension, `plain_language`, soauto_reviseloops correct register drift automatically. Also fixed: an explicitmode(e.g.simple) is no longer silently dropped for small local models under compact system-prompt shaping. See CHANGELOG.md.
Why does this project exist? Because "just ask the model" quietly went stale, and we measured it. Models are frozen at training time; platforms ship new versions monthly (and kill old ones). The result is that asking a modern model for a platform prompt is asking a 2024 encyclopedia for 2026 prices.
On 2026-10-05 we ran a public benchmark: asked 12 of the newest Ollama Cloud models to write prompts for real current platforms, in two conditions, same asks, same models:
optimize_prompt call. (This is what "grounding" means: the model reads the reference card instead of trusting its frozen memory.)132 graded answers per condition, verified against vendor docs the same day. Full audit of every raw reply: [`evals/dialect-benchmark/out/final.json`](./evals/dialect-benchmark/out/final.json).
The results, one line:
| RAW (model alone) | GROUNDED (pack facts injected) | |
|---|---|---|
| current dialect | 36 | 117 |
| stale | 35 | 0 |
| mixed / generic | 7 / 54 | 1 / 14 |
Same models. Same asks. 35 stale answers → 0.
What that looks like in practice:
--v 6.1. The current default has been V8.2 since June. Two major versions stale, uniformly.--v 8.2; the worst raw performer went 3 current / 5 stale → 8 / 0.Total cost of both conditions: $0.71. Harness + facts file + grading script: evals/dialect-benchmark/ — reproduce with node evals/dialect-benchmark/run.mjs.
The honest read: models don't *know* current dialects — but with a maintained knowledge layer they execute perfectly. The knowledge is the gap; the pack layer is the product. And that's what optimize_prompt is: grounding, on every call, with packs we refresh against live docs and date with verifiedAt.
ClarifyPrompt does two things a plain prompt template can't. Every output below is a real, unedited capture from optimize_prompt run against this repo (see Provenance at the end of this section).
1 — It knows each platform. Same raw prompt, different target, completely different output:
You write: "a dragon flying over a castle at sunset"
→ Midjourney A colossal, majestic dragon with shimmering scales soaring over a towering medieval stone castle, dramatic sunset sky with vibrant orange and deep purple hues, cinematic fantasy concept art, volumetric lighting, highly detailed --ar 16:9 --v 6.1 --s 250 --q 2
→ DALL-E A majestic dragon with glowing crimson scales soars over a towering medieval stone castle, silhouetted against a vibrant orange and purple sunset sky. Rendered in a high-fantasy digital art style with dramatic, warm lighting and highly detailed textures, wide aspect ratio.
→ Nano Banana A majestic dragon with deep crimson scales and a leathery, bat-like wingspan glides through the warm, golden-hour sky just above a towering medieval castle made of weathered grey stone. ... Frame this as a wide cinematic landscape shot using a 24mm lens at f/8 for deep depth of field, camera positioned at a slightly elevated three-quarter angle... Aspect ratio 16:9.
Midjourney gets --ar/--v/--s/--q flags; DALL-E and Nano Banana get flag-free natural language — and Nano Banana layers in photographic direction (lens, f-stop, camera angle) and explicit mood, its documented style. Same idea, each platform's native dialect.
Notice `--v 6.1` in the Midjourney capture above. That capture is real (2026-06-22) — and the model reached for a version flag that was *already two major versions stale*; Midjourney's current default is V8.2. Model weights are frozen at training time; platform dialects mutate monthly. That gap is exactly what ClarifyPrompt's verified platform packs (
verifiedAt-dated, refreshed against current docs) exist to close — see the staleness story.
2 — It knows what you're working on. This is the part a template can't fake. Drop a vague one-liner while editing src/transport.ts *in this very repo*, and the engine grounds it in your real workspace — package.json, git state, the active file — and resolves intent before it shapes the output:
You write: "add a configurable request timeout to the http transport"
· active file: src/transport.ts · resolved intent: production-code · grounded in: active-file · workspace-meta · git-state · environment · target-model · platform-hints
→ Cursor Implement a configurable request timeout for the HTTP transport in src/transport.ts. Requirements:
CLARIFYPROMPT_HTTP_TIMEOUT … (default 30000 ms)startTransport(). (excerpted — the full rewrite has 7 numbered requirement groups)
Nothing in that one-line prompt mentioned the CLARIFYPROMPT_HTTP_* naming convention, the startTransport() entry point, or the stdio/a2a transports it must preserve — the engine read those from the active file and package.json and folded them in. That's the difference between *rephrasing a prompt* and *compiling it against context*.
3 — It can run the whole pipeline. clarify → ground/optimize → critique → revise, in one compose_prompt call — see Previously in 1.4.0 — the composable pipeline below.
Provenance. Image outputs captured via
glm-5.2:cloud, the grounded code output viaqwen3-coder:480b-cloud— both Ollama cloud models served over Ollama's OpenAI-compatible endpoint (LLM_API_URL=http://localhost:11434/v1), run throughoptimize_promptagainst this repo on 2026-06-22 (the Nano Banana capture added 2026-07-03, sameglm-5.2:cloudmodel). ClarifyPrompt is model-agnostic (any OpenAI-compatible API, local or hosted); outputs are model-dependent — yours will differ in wording, not in structure.
The platform-currency release. The packs had rotted — Midjourney was still --v 6.1 while the current default is V8.2, the video pack still described "Runway Gen-3" and "Google Veo 2", and the Higgsfield entry still routed to a dead model. Every bu
只显示了开头部分;其余内容请在仓库中阅读