ws-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GT_CACHE_DIR | No | Disk cache location for persistent cross-session caching | ~/.gt-mcp-cache |
| GT_CONCURRENCY | No | Parallel fetch limit in gt_auto_scan | 6 |
| GT_GITHUB_TOKEN | No | GitHub API auth — raises rate limit from 60 to 5,000 req/hr |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
GroundTruth: live docs + best practices, fetched from official sources at request time, never from training data.
Evidence: topic-targeted answers carry an "## Evidence" footer (sources, date, coverage). "No topic-specific evidence found" is a TRUE NEGATIVE — follow its next steps, do not re-call the same tool.
Tools (14) — routing
User says | Call |
"use gt", no library named | gt_auto_scan({projectPath:"."}) |
a library name | gt_best_practices({libraryId:"",topic}) (gt_resolve_library only if unresolved) |
"best practices for X", "X patterns" | gt_best_practices({libraryId,topic?}) |
"docs for X about Y" | gt_get_docs({libraryId,topic}) |
"audit", "find issues", "review code" | gt_audit({categories:["all"]}) |
"what's new in X", "release notes" | gt_changelog({libraryId}) |
"upgrade/migrate X N to M" | gt_migration({libraryId,fromVersion,toVersion}) |
"browser support for Y" | gt_compat({feature}) |
"compare X vs Y" | gt_compare({libraries}) |
"examples of X" | gt_examples({library,pattern?}) |
"snippets for X" | gt_snippets({libraryId,topic?}) |
many names at once | gt_batch_resolve({libraryNames}) |
any topic, no library | gt_search({query}) |
a pasted URL | gt_get_docs({libraryId:""}) |
unclear intent | gt_dispatch({query:""}) |
Rules
The message names a library: pass the name as libraryId, never ask which one.
gt_search is the catch-all, not the default — prefer gt_best_practices for a named library.
Give topic a real subject ("row level security", not "best practices") — it drives retrieval.
Registry is Elastic-2.0: look up specific libraries, never enumerate or dump it.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gt_dispatchA | Route a raw user request ("use gt", "use gt for react", "migrate next from 15 to 16") to the right gt_* tool. Returns {tool, args, reason, confidence}. Skip it when the tool is already clear. |
| gt_resolve_libraryA | Find a library's GroundTruth ID ('vercel/next.js', 'npm:express') and its docs, llms.txt and GitHub URLs, from the registry, npm, PyPI, crates.io, Go and GitHub. Only for ambiguous or unknown names: other tools take plain names. 2-20 names: gt_batch_resolve. Registry is Elastic-2.0: look up named libraries only, never enumerate. |
| gt_get_docsA | Reference docs for one library, filtered to a topic. libraryId: a plain name ('nextjs'), GroundTruth ID, npm:/pypi: package, or a docs URL. Curated guidance: gt_best_practices. Code-only snippets: gt_snippets. |
| gt_best_practicesA | Current best practices for one library: patterns, performance, security, testing, migration. libraryId: a plain name ('nextjs'), GroundTruth ID or npm:/pypi: package. Prefer over gt_search when one library is named. |
| gt_auto_scanA | Detect the project's dependencies (package.json, pyproject.toml, requirements.txt, Cargo.toml, go.mod, root .ipynb, ...) and fetch best practices for each. Issues in the project's own code: gt_audit. |
| gt_searchA | Official docs and standards for a topic with no single library: web APIs, CSS, security, accessibility, protocols, infrastructure. One library named: gt_best_practices or gt_get_docs. Browser support: gt_compat. Real-world code: gt_examples. |
| gt_auditB | Scan project source files, incl. .ipynb code cells, for issues (file:line; notebooks file:cell_N:line_M) and attach fixes from official docs. Use categories ["all"] for broad requests. Best practices for its dependencies: gt_auto_scan. |
| gt_changelogA | Recent release notes for a library (GitHub Releases, CHANGELOG.md): what changed in a version. Step-by-step upgrade: gt_migration. |
| gt_compatA | Browser and runtime support for a web API, CSS feature or JS syntax ('container queries', 'Array.at()'), from MDN and caniuse. Takes a feature, not a library. |
| gt_compareA | Compare 2-3 libraries side by side from their live docs. Pass names (['prisma', 'drizzle-orm']), not IDs. One library: gt_get_docs. |
| gt_examplesA | Real-world usage of a library or pattern from public GitHub code, with repo links (needs GT_GITHUB_TOKEN, else official-docs examples). Snippets from the library's own docs: gt_snippets. |
| gt_migrationA | Upgrade guide between two versions of a library: breaking changes and required code changes. Release notes only: gt_changelog. |
| gt_batch_resolveA | Resolve 1-20 library names to IDs and docs URLs in one call, registry only. One name with npm/PyPI fallback: gt_resolve_library. Project dependencies: gt_auto_scan. Registry is Elastic-2.0: look up named libraries only, never enumerate. |
| gt_snippetsA | Ranked code snippets (title, language, code, source URL) from a library's own docs, by topic and language. Cached per version; refresh:true re-indexes. Prose docs: gt_get_docs. Real-project usage: gt_examples. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| audit-my-project | Scan this project for code issues and fetch live best-practice fixes from official docs |
| upgrade-check | Check release notes and breaking changes before upgrading a library |
| best-practices-scan | Get current best practices for every library in this project |
| compare-libraries | Compare two or three libraries side-by-side to decide which one to use |
| security-check | Search OWASP and security docs for guidance on a vulnerability or security topic |
| migration-guide | Check migration guides and breaking changes for upgrading a library between versions |
| find-examples | Find real-world code examples of a pattern using a specific library |
| dependency-audit | Scan project dependencies for outdated patterns and fetch current best practices |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| library-registry | List of all supported libraries with IDs and docs URLs |
TDQS
Scored across 14 tools
Each tool targets a distinct retrieval or analysis job, and the descriptions explicitly redirect overlapping cases (e.g. gt_get_docs vs gt_snippets vs gt_examples, gt_changelog vs gt_migration). gt_dispatch further helps route ambiguous requests. Boundaries are unusually clear.
All tools share the gt_ prefix and snake_case, which is highly consistent. However, several names are noun-phrase tools (gt_best_practices, gt_changelog, gt_compat) rather than verb_noun, so it is not a perfect verb_noun pattern throughout.
14 tools is well within a reasonable range for a documentation and best-practices server. Each tool covers a distinct retrieval mode, so the count feels earned rather than padded.
The surface covers resolution, docs, best practices, snippets, examples, changelogs, migrations, compatibility, comparisons, dependency scanning, project audits, and request routing. That is comprehensive lifecycle coverage for the stated GroundTruth library-knowledge purpose, with no obvious dead ends.