resolve-library-id
Resolve a library name into a Context7-compatible library ID, returning the matching libraries.
libraryName必填
io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 7, 2026
Resolve library names and fetch current, version-specific documentation via Context7.
本地 MCP 服务器,把库名解析为 Context7 库 ID,并抓取最新的、对应版本的文档与代码示例,供编码助手使用。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
libdocs answers the question every coding agent runs into: what does the current version of this library actually do? You give it a library name, it finds the library's Context7-compatible ID, and then it pulls the up-to-date documentation and code examples for that library — optionally focused on one topic and capped at a token budget you pick. It works from the command line or as an MCP server for agents.
An API key is optional. When CONTEXT7_API_KEY is set, libdocs sends
it as a Bearer token; when it is not set, requests simply go out
without one. There is no sign-up step to get started.
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Exit codes: 0 on success, 1 when a lookup fails (the error names
the problem, including the HTTP status when the service answers with
one), 2 for usage errors.
Token budgets below the service minimum of 10000 are raised to 10000, matching the upstream behaviour.
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration:
The env block is optional — leave it out entirely to run keyless.
Resolution talks to the service's search endpoint; documentation is fetched per library ID in plain-text mode. Lookup failures (unknown IDs, rate limits, unreachable hosts) are reported as tool errors.
MIT — see LICENSE.
来源:README.md,提交 bcd2961
Resolve a library name into a Context7-compatible library ID, returning the matching libraries.
libraryName必填Fetch current documentation and code examples for a library using its Context7-compatible library ID.
topictokenscontext7CompatibleLibraryID必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
npx @reneturcios/libdocs resolve "next.js"docker run -i ghcr.io/cloudcorprecords/libdocs# Find the Context7-compatible IDs for a library namelibdocs resolve "next.js"libdocs resolve react
# Fetch documentation for an exact library IDlibdocs docs /vercel/next.jslibdocs docs /vercel/next.js --topic routing --tokens 20000
libdocs --versionnpx -y @reneturcios/libdocs mcp{ "mcpServers": { "libdocs": { "command": "npx", "args": ["-y", "@reneturcios/libdocs", "mcp"], "env": { "CONTEXT7_API_KEY": "your-key-if-you-have-one" } } }}npm installnpm run build # tsc -> dist/npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)npm run dev # run the CLI from source via tsx