lockdocs
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOCKDOCS_ROOT | No | Overrides the workspace root directory that the MCP server uses. If not set, the server uses the client's workspace root or working directory. | |
| LOCKDOCS_CACHE | No | Overrides the default OS cache directory used for storing indexes and fetched packages. | |
| LOCKDOCS_FETCH | No | Set to '1' to enable fetching of missing packages from public registries (equivalent to the --fetch flag). | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
lockdocs answers from the exact dependency versions pinned in this project's lockfiles, using the installed packages' own docs and type declarations, with anonymous release-tag docs fetched on first use unless offline. Cached docs work offline. Call resolve to see versions, docs with a question (and optionally package) before using an API you are unsure of in this version, and api for the exact signature of a symbol like z.object or tokio::spawn. Every section cites package@version path:line.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| resolveA | 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. |
| docsA | 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 |
| apiA | 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 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool has a distinct role: resolve reports pinned versions, docs does natural-language retrieval over a version's documentation, and api returns the exact signature of a single symbol. The docs/api boundary is the only mild overlap, but the descriptions make the intent (broad recall vs. precise symbol lookup) reasonably clear.
All three names are short, lowercase single tokens, which is readable, but they mix grammatical forms (verb 'resolve' vs. nouns 'docs' and 'api') and there is no verb_noun pattern to predict new tools from. Internal style is consistent enough not to cause confusion.
Three tools is tightly scoped to the domain of version-pinned documentation lookup, and each one covers a genuinely separate step (discover versions, ask questions, inspect a symbol). Nothing appears redundant or missing at this count.
The surface covers the full workflow: finding exact installed versions and whether docs exist locally, answering free-form doc questions, and retrieving precise API signatures across JS/Python/Rust/Go ecosystems. Being read-only by design, there are no obvious lifecycle gaps.