
Context
io.github.neuledge由 GitHub 账号 neuledge 发布v1.4.2更新于 Nov 3, 2026
面向AI代理的本地优先文档。离线、即时、私密的文档检索。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
Local-first documentation for AI agents. Offline, instant, private doc retrieval.
概览
Context 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 Context,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Context
Up-to-date docs for AI agents — local, instant, plug and play.
[npm version] [License] [TypeScript] [Maintained by human0]
AI agents are trained on outdated docs. When libraries release new versions, your AI doesn't know — and confidently gives you wrong answers.
The fix isn't better prompting. It's giving your AI the right docs.
How It Works
Context is an MCP server backed by a community-driven package registry with 100+ popular libraries already built and ready to use. When your AI agent needs documentation, it searches the registry, downloads the right package, and queries it locally — all automatically.
Install once. Configure once. Then just ask your AI.
:rocket: Quick Start
1. Install
2. Connect to your AI agent
Context works with any MCP-compatible agent. Pick yours:
Claude Code
Claude Desktop
Add to your config file:
- Linux:
~/.config/claude/claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop to apply changes.
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-specific):
Or use Settings > Developer > Edit Config to add the server through the UI.
OpenAI Codex
Either use the CLI
Or add to ~/.codex/config.toml (global) or .codex/config.toml (project-specific):
Restart OpenAI Codex to apply changes.
VS Code (GitHub Copilot)
Requires VS Code 1.102+ with GitHub Copilot
Add to .vscode/mcp.json in your workspace:
Click the Start button that appears in the file, then use Agent mode in Copilot Chat.
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
- Windows:
%USERPROFILE%\.codeium\windsurf\mcp_config.json
Or access via Windsurf Settings > Cascade > MCP Servers.
Zed
Add to your Zed settings.json (press cmd+, or ctrl+, twice):
Check the Agent Panel settings to verify the server shows a green indicator.
Goose
Run goose configure and select Command-line Extension, or add directly to ~/.config/goose/config.yaml:
OpenCode
Add to ~/.config/opencode/opencode.json:
3. Ask your AI anything
That's it. Just ask:
"How do I create middleware in Next.js?"
Your agent searches the community registry, downloads the docs, and answers with accurate, version-specific information. Everything happens automatically — no manual context install needed for registry packages.
The Community Registry
The registry is what makes Context plug and play. It's a growing collection of 100+ pre-built documentation packages maintained by the community. Think of it like a package manager, but for AI-ready docs.
Popular packages available today:
Anyone can contribute. If a library you use isn't listed, submit a PR to add it — your contribution helps every Context user.
Why Local?
Context runs entirely on your machine. Docs are downloaded once and stored as compact SQLite databases in ~/.context/packages/. After that, everything is local.
- Fast — Local SQLite queries return in under 10ms
- Offline — Works on flights, in coffee shops, anywhere
- Private — Your queries never leave your machine
- Free — No subscriptions, no rate limits, no usage caps
- Reliable — No outages, no API changes, no service shutdowns
Beyond the Registry
The registry covers popular open-source libraries, but Context also works with any documentation source. Use context add to build packages from private repos, internal libraries, websites with llms.txt, or anything not yet in the registry.
Once built, share packages with your team — they're portable .db files that install instantly:
Rebuilds and installs stage a replacement beside the destination, then close and validate it before replacing the installed package. A failed build, download, or replacement leaves the previous package available. Temporary files are excluded from package discovery. If the operating system blocks replacement of an open file (for example, on Windows), close the reader and retry the install.
Builds print a one-line ingestion summary (discovered, selected, and indexed
documents and sections), listing only the problem kinds that actually occurred —
exclusions, duplicates, unreadable files/directories, parse failures, and empty
documents. Use --diagnostics ingestion.json for a per-path JSON report and
--strict to reject read/parse errors and empty documents before installing.
See the ingestion reporting guide for the report
schema, strict-failure behavior, and library use.
:whale: Docker
Run Context as a containerized HTTP server for multi-client or Kubernetes deployments:
The container starts Context with HTTP transport on port 8080, accessible at http://localhost:8080/mcp. The image uses a multi-stage build with node:22-bookworm-slim for native module compatibility.
:books: CLI Reference
context browse <package>
Search for packages available on the registry server.
context install <registry/name> [version]
Download and install a pre-built package from the registry server.
context add <source>
Build and install a documentation package from source. Use this for libraries not in the registry, or for private/internal docs. The source type is auto-detected.
From git repository:
Works with GitHub, GitLab, Bitbucket, Codeberg, or any git URL:
From local directory:
Build a package from documentation in a local folder:
Saving packages for sharing:
From website (llms.txt):
Many websites publish an llms.txt file with AI-ready documentation. Context auto-detects and fetches it. When the site only provides llms.txt (an index of links rather than the inlined llms-full.txt), Context follows each link and fetches the linked document:
From an arbitrary URL (blog posts, articles, raw Markdown):
If no llms.txt is found, Context falls back to fetching the page directly. HTML pages are run through a readability extractor (defuddle) so subscribe CTAs, navigation, and comment widgets don't end up in the package:
For subscriber-only content on platforms you have a paid account for, see context auth below.
From URL:
From local file:
Finding the right documentation repository:
Many popular projects keep their documentation in a separate repository from their main codebase. If you see a warning about few sections found, the docs likely live elsewhere:
Common patterns for documentation repositories:
project-docs(e.g.,prisma/docs)project.devorproject.io(e.g.,reactjs/react.dev)project-website(e.g.,expressjs/expressjs.com)
When the CLI detects few documentation sections, it will show a Google search link to help you find the correct repository.
context list
Show installed packages.
Several versions of the same package can be installed side by side; each name is listed newest first. Commands that take a bare name (context query react, context serve --libs react) use the highest installed version.
context remove <name>
Remove a package. Pass name@version to remove a specific version. A bare name
is only accepted when a single version of that package is installed — otherwise
the command lists the installed versions and asks you to pick one, so nothing is
deleted by guesswork.
context auth
Store per-platform cookies or headers so context add <url> can fetch subscriber-only content you have a legitimate account for (e.g., a paid Substack or Medium subscription). Credentials are stored in ~/.context/auth.json with 0600 permissions, and matched by domain (with one level of parent-domain fallback for subdomains).
context serve
Start the MCP server (used by AI agents).
The HTTP transport uses the MCP Streamable HTTP protocol, enabling multiple clients on the local network to connect to a single server instance. The endpoint is available at http://<host>:<port>/mcp.
Running stdio sessions reload automatically. While a stdio context serve is connected, a separate context add or context remove updates the server's installed-package list and refreshes the get_docs tool, so the connected MCP client picks up the change via a tools/list_changed notification without reconnecting or restarting the server. This live reload is stdio-only: an HTTP server started with --http does not watch the package directory, so restart it to see packages added or removed by the CLI.
context query <library> <topic>
Query documentation directly from the command line. Useful for testing and debugging.
Topics are literal keywords, matched together (AND). Punctuation separates words,
so ExecStart=, systemctl --user, and spring.main.banner-mode can be used
directly. Underscores stay inside a word, so spring_boot matches the identifier
rather than the two words apart. Words such as AND, OR, NOT, and NEAR are searched as text;
advanced FTS syntax is not supported.
Use paired double quotes for a phrase, for example
context query nextjs '"server components" rendering'. Phrase words must appear
next to each other in order, with the usual search stemming. An unmatched double
quote is ignored and the remaining words are searched as keywords. Empty or
punctuation-only topics return no results. These rules also apply to MCP get_docs.
:gear: Architecture
First time you ask about a library:
- The MCP server searches the community registry
- Downloads the pre-built documentation package (a SQLite
.dbfile) - Stores it locally in
~/.context/packages/
Every time after:
- FTS5 full-text search finds relevant sections locally
- Smart filtering keeps results within token budget
- Your AI gets focused, accurate documentation in under 10ms
:question: FAQ
Can I use Context with non-JavaScript frameworks like Spring Boot, Django, or Rails?
Yes! Context is language-agnostic. It natively supports Markdown (.md, .mdx), AsciiDoc (.adoc), reStructuredText (.rst), and HTML — no conversion needed.
Point Context at the docs folder with --path and it handles the rest.
Can I contribute package definitions for new ecosystems?
Yes! The registry/ directory has YAML definitions organized by package manager:
registry/npm/— JavaScript/TypeScript (Next.js, React, Tailwind, etc.)registry/pip/— Python (FastAPI, Flask, Django, Pydantic)registry/maven/— Java (Spring Boot, JUnit, Micrometer)registry/go/— Go modules, by full module path (Cobra)
To add a package, create a YAML file. Two source types are supported:
Git source — clone a repo at a version tag:
ZIP source — download HTML docs from a URL (supports {version} placeholder):
Version discovery is supported for npm, PyPI, Maven Central, Hex, and the Go module proxy. See existing definitions for examples.
:wrench: Development
:page_facing_up: License
来源:README.md,提交 e737fda
工具
0版本历史
14- v1.4.2最新Nov 3, 2026
- v1.4.1Nov 1, 2026
- v1.4.0Oct 31, 2026
- v1.3.7Oct 29, 2026
- v1.3.5Oct 26, 2026
- v1.3.4Oct 22, 2026
- v1.3.3Oct 17, 2026
- v1.3.2Oct 15, 2026
- v1.3.1Oct 13, 2026
- v1.3.0Oct 5, 2026
- v1.2.11Oct 3, 2026
- v1.2.10Sep 30, 2026
- v1.2.9Sep 28, 2026
- v0.2.3Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分