lockdocs

v0.7.12
io.github.SylphxAI/lockdocs Checked 4 hours ago Published 5 days ago

Exact-version library docs from your lockfile — local, offline, no rate limits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

resolve Resolve dependency versions

List the exact dependency versions this project pins (from package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lock, Cargo.lock, uv.lock, poetry.lock, requirements*.txt, go.mod) and whether their docs are available locally. Call it to learn which version of a library the code actually uses before writing code against it.

ParameterTypeDescription
filterstringSubstring of a package name; also searches transitive dependencies.
rootstringAbsolute path of the project (defaults to the client's workspace root or the server's working directory).

docs Search version-exact docs

Answer a question from the docs of the exact installed version of a dependency: README, changelog, docs folder (public release-tag docs fetched on first use unless offline), and API reference (signatures + doc comments from .d.ts, Python, Rust and Go sources). Returns the most relevant sections within a token budget (hybrid keyword + embedding search), each cited as `package@version path:line`. Use it before using a library API you are not sure about for this version. Omit `package` to search all direct dependencies.

ParameterTypeDescription
query *stringWhat you need, in words or identifiers, e.g. "strict object unknown keys" or "cookies async".
offlinebooleanUse only installed and cached files for this call (no package or upstream downloads).
packagestringPackage name, optionally ecosystem- or version-qualified: zod, npm:zod, pydantic, tokio, github.com/gin-gonic/gin. Comma-separate several.
rootstringAbsolute path of the project (defaults to the client's workspace root or the server's working directory).
tokensintegerAnswer budget in tokens (default 1200).
upgrade_tostringlockdocs Pro: instead of searching, report the API changes between the pinned version of `package` and this target version (e.g. "15.0.0"), limited to the symbols this project calls, with call sites a…

api Exact API of a symbol

The exact signature and doc comment of one symbol in the installed version, with overloads, members (for classes, interfaces, structs, traits) and other matches. Accepts `zod.z.object`, `z.object`, `tokio::spawn`, `axum::Router::route`, `pydantic.BaseModel.model_dump`, `gin.Context.JSON`.

ParameterTypeDescription
symbol *stringSymbol path, optionally prefixed by the package name.
offlinebooleanUse only installed and cached files for this call (no package or upstream downloads).
packagestringPackage or npm public import path (e.g. zod/v4). Defaults to the package root export; unavailable or ambiguous imports are reported, not substituted.
rootstringAbsolute path of the project (defaults to the client's workspace root or the server's working directory).
tokensintegerAnswer budget in tokens (default 1200).