Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Search and save your coding work in a CoralSwarm ocean: sessions, decisions, meetings.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://api.coralswarm.com/mcp在终端中运行这条命令
claude mcp add --transport http coralswarm https://api.coralswarm.com/mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"coralswarm": {
"url": "https://api.coralswarm.com/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"coralswarm": {
"type": "http",
"url": "https://api.coralswarm.com/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://api.coralswarm.com/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过域名 coralswarm.com 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(1.1.2)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Connect the CoralSwarm MCP and turn on automatic, in-session capture of your work into your ocean — at natural checkpoints *during* the session, not only when it ends. Ships for Claude Code, Cursor, and Codex. Enable the plugin in one manager; leaving two copies enabled will fire SessionStart twice (the kernel no-ops the duplicate).
Public directory submission materials and the separate OpenAI ZIP builder are documented in directory publication. The OpenAI directory package supports requested searches and selected saves without capture hooks; the coding plugin below retains its existing capture behavior.
There are two levels. The plugin gives you the MCP tools *plus* the capture hooks and the bundled skill; the raw MCP URL gives you the tools only, and works in any MCP client.
| Client | Install |
|---|
| Claude Code (plugin) | /plugin marketplace add CoralSwarm/coralswarm-connect then /plugin install coralswarm-connect@coralswarm-connect | | Cursor (plugin) | Add this repo as a plugin source, install coralswarm-connect, then complete MCP login | | Codex (plugin) | Same repo, same plugin name; Codex may ask you to trust hooks the first time | | Any MCP client — Cursor, ChatGPT, VS Code, your own — (tools only) | Add an MCP server of type streamable HTTP at https://api.coralswarm.com/mcp |
coralswarm-connect@coralswarm-connect is not a typo: the first half is the plugin, the second is the marketplace this repo publishes (both are named coralswarm-connect — see .claude-plugin/marketplace.json). The same two commands work from a shell as claude plugin marketplace add … / claude plugin install ….
After any of these, authenticate: in Claude Code run /mcp and Authenticate on the coralswarm server; in Cursor use /mcp login or the mcp_auth prompt. Auth is OAuth (Clerk) with dynamic client registration — there is no API key to paste and nothing to put in a config file.
The MCP URL must be that literal string. Cursor rejects a fly.dev resource that does not match the server's protected-resource metadata.
CoralSwarm Connect is not listed in any client's built-in plugin or
connector directory yet. The paths above are the ones that work today. This
repo also ships
server.jsonfor the
official MCP Registry under the
name
com.coralswarm/coralswarm; it is published by a release tag (see
Releasing), so treat a registry listing as present only once a
tag has shipped.
Do not run scripts/install.mjs when the plugin is enabled — that would register the same events a second time in settings.json.
Public plugin repo. This repository is the marketplace source. The
product backend still lives in
CoralSwarm/coralswarm. Refresh with
/plugin marketplace update coralswarm-connect.
One-time trust + OAuth. A plugin-provided MCP server still requires you to
approve the server (trust prompt) and complete OAuth via
/mcpthe first time
— the plugin declares the server, it can't pre-authorize your account.
.mcp.json) — declares the CoralSwarm MCP server (HTTP transport) so its tools (list_oceans, recent_activity, ask_ocean, search_atoms, get_reef, add_context, list_sessions, …) are available once you authenticate.The plugin .mcp.json is the literal URL https://api.coralswarm.com/mcp (hosts do not expand ${VAR:-default}, and Cursor requires a byte-exact match with the server's protected-resource metadata). There is no separate org address; the same URL serves your personal ocean AND every organization you belong to. Staging or a local backend is a user-level MCP override (~/.cursor/mcp.json / claude mcp add), not a plugin edit.
Personal vs. organization is chosen IN-BAND, not by URL: if you belong to ≥1 organization, the connection starts restricted to the workspace tools, list_tenants and select_tenant. Call list_tenants, then select_tenant with the org you want (or without org_id for your personal ocean). That unlocks the rest of the tools, scoped to whichever plane you picked. Calling select_tenant again, any time, switches — no new session required, unlike the old per-URL setup.
Want both at once? Register this SAME URL a second time under its own server name (see *Manual install* below) and call select_tenant independently on each registration — each gets its own OAuth connection and its own remembered selection. You get both tool sets in one session, distinguished by server name.
hooks/hooks.json), all firing *during* a session:SessionStart → primes the agent to load relevant ocean context and to save each milestone as it happens, and emits sanitized session metadata (project key, git branch, credential-stripped remote, repo path, hostname, harness version) for the agent to stamp onto every save. A hybrid inventory line lists registered capture events vs those observed this session — hosts that never fire a given event stay dark (degrade in public) instead of blocking the turn.UserPromptSubmit → a debounced reminder (about every 15 min of active work) to save recent progress, plus a one-line notice when the git branch changes mid-session. This is the recurring, mid-session capture.PreCompact → flushes unsaved work into the ocean right before the conversation is compacted, so nothing is lost.Stop → a final backstop (debounced ~10 min).PostToolUse (matcher add_context) → stamps a local activity ledger every time an add_context save runs (Claude mcp__…add_context, Cursor MCP: …/add_context / CallDynamicTool), powering deterministic recovery of crashed sessions (see below). Every event is dispatched through hooks/run.mjs.Plugin installs always get the `Stop` backstop. The manual installer
(
scripts/install.mjs) exposes a--no-stopflag to omit it, but a plugin's
hooks.jsonis static — it can't take install-time flags — so theStop
hook is always included here. It's debounced (~10 min per session), so it
stays quiet;
PreCompactand the mid-session nudges do most of the work.
The hooks reference ${CLAUDE_PLUGIN_ROOT}, which Claude Code, Cursor, and Codex expand to this plugin's install directory. Every event's command is node "${CLAUDE_PLUGIN_ROOT}/hooks/run.mjs" (Cursor ignores a separate args array). Hook scripts write per-session debounce/branch/primer state under ~/.coralswarm/state/ (shared with the manual-install path). The primer runs once per session_id so a dual Claude+Cursor install does not inject twice.
The SessionStart primer reads the hook stdin payload and collects best-effort session metadata — unavailable fields are omitted and the hook keeps running if git/env is missing. Saving a session checkpoint still requires a session_id; optional provenance can be omitted. The git remote is run through hooks/project-key.mjs, a byte-for-byte parity port of the backend v1 normalizer (backend/src/project_key.rs), which unconditionally strips embedded credentials before the value is ever injected into the prompt — a token-bearing remote like https://x:ghp_secret@github.com/a/b.git is only ever emitted as github.com/a/b. These values are best-effort provenance; the server re-normalizes and re-validates everything.
A bot or background worker saves an agent session by passing both a stable session_id and session_kind="agent" to add_context, with agent_name and its actual client platform. Keep the same session ID across topics and use a new checkpoint ID for each milestone. session_kind alone leaves the save as a note.
In a supported harness, naming the agent is enough: set CORALSWARM_AGENT_NAME (or run under the Claude Agent SDK, which names itself via CLAUDE_AGENT_SDK_CLIENT_APP) before startup, and the primer emits agent_name alongside the harness's session ID — the server infers session_kind=agent from that name's presence. Set CORALSWARM_SESSION_KIND=agent explicitly (plus CORALSWARM_PLATFORM, CORALSWARM_TASK) only for a harness the server can't otherwise identify. Custom bots call MCP directly and keep session/checkpoint IDs in their run state. See the save contract and examples for standalone notes, coding conversations, bot checkpoints, retries, and confirming what was saved. See agent setup for environment variables and linking each subagent's own session to its parent.
The nudges above are model-driven: they only help if the agent acts on them. Three ways work still slips through:
Because a dead session can't write a "you have unsaved work" marker *at* death, the plugin writes a heartbeat continuously during normal operation and reconciles at the start of the next session. It keeps a tiny per-session record — paths and timestamps only, never transcript content — at ~/.coralswarm/state/sessions/{session_id}.json:
SessionStart, UserPromptSubmit, and Stop/PreCompact bump last_activity_at (and record the transcript path, cwd, and project key);PostToolUse hook stamps last_save_at whenever add_context runs. When a *recovery* save passes the original session's session_id in the tool input, the stamp lands on that session's record — which is what lets a save in a later session deterministically clear an earlier session's pending flag.On the next fresh SessionStart, the primer scans the ledger for records whose last_activity_at is after their last_save_at (i.e. work that was never saved), scoped to the same project, within the last 7 days, excluding the current session, capped at the 3 most recent. For each, it injects a bounded instruction to read only the tail of that session's local transcript (these files can be hundreds of MB — never the whole thing), curate a concise summary, and add_context it with the original session_id. That save clears the flag. A session is offered at most twice, then marked abandoned so the list stays clean; records older than 30 days are pruned.
This stays entirely local: no backend changes, no long-lived tokens, no raw-transcript upload. The model still curates exactly what gets saved — the ledger only makes the *reminder* deterministic. Injection hygiene: ledger values are data, so a candidate is only offered when its session_id is uuid-shaped and its transcript path is a real file physically under your home directory; ids and paths are control-char-stripped and JSON-escaped, and no transcript content is ever read into the primer.
Tunable via env (finite-positive-clamped, like the interval vars): CORALSWARM_RECONCILE_WINDOW_DAYS (7), CORALSWARM_RECONCILE_PRUNE_DAYS (30), CORALSWARM_RECONCILE_MAX_OFFERS (2), `CORALSWARM_RECONCILE_MAX_CANDIDA
只显示了开头部分;其余内容请在仓库中阅读