lynx-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Lynx indexes the code and docs on this machine by meaning and by name. To find where something happens, start with search instead of grep or opening whole files: describe it in plain words ('where the player picks a seat to enter'); identifiers work too. You get ranked file:line hits, the best with its code, the rest as signatures: read only the lines you need. Write the query in English, the code's language, whatever language the user writes in. For a name you already know: find_usages (callers, overrides, mentions) / find_definition / describe_symbol (code, callers, subtypes). module_summary lists a file's symbols before you open it. Who calls X, what breaks if X changes: graph_query / impact; they read the code graph, which text search cannot see. Adding a type: list the base's subclasses (graph_query subclasses with depth) and follow how one is built and registered. Before writing a new helper, run find_similar on your draft: it returns the code that already does it. Escalate to deep_search only when search returns weak or empty results. Sources: workspace (type=codebase, /workspace). source can be left out. Full playbook: the lynx://guide resource. If you cannot find what you need, call feedback before giving up.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| searchA | Find where something happens in the indexed code and docs, by meaning and by name: describe it in plain words ('where the player picks a seat to enter'). Ranked file:line hits, the best with its code, the rest as signatures; a score near 0.03 is a strong match. Omit |
| prompt_hookA | Hook only, do not call: Claude Code's UserPromptSubmit hook (mcp_tool) sends the prompt and gets the code map of the request as hook JSON. |
| read_guardB | Hook only, do not call: Claude Code's PreToolUse hooks on Read and Bash call it. |
| deep_searchA | Escalation for when |
| list_sourcesA | List which sources exist and what each one is: name, type, path, chunk count and drift flag. Read from config and metadata, no index opened. Call it first when you do not know the source names a |
| update_source_indexA | Re-check every file of a source and re-index what changed (a webdoc source is crawled again). Blocking; the watcher keeps codebase sources current, so use it after a big merge, edits made while Lynx was not running, or a drift warning. |
| get_rag_statusA | Index state for one or all sources: freshness, chunk count, last update, drift. Check it before considering a rebuild. |
| feedbackA | Report that the index could not answer you, before giving up. Appended to a local log (never uploaded) so the index owner can tune sources and filters. |
| graph_queryA | Raw access to the code knowledge graph (calls, inheritance, imports), for what find_usages, impact and describe_symbol do not cover. operation: callers | callees | subclasses | superclasses | imports | neighbors | shortest_path | overview | surprising_connections | status | audit (symbol = a C# package folder: SOLID findings, each with its refactor fence). |
| find_definitionA | Jump to where a symbol is defined, when you already know its name; the first match comes with its body, the others with their signature. AST-precise with the graph layer, BM25 otherwise; each hit says which. Use |
| find_usagesA | Every use of a symbol: calls and subtypes (from the graph when on) plus textual references that contain the name as a word, with their lines; definition excluded. Answers 'who uses X' at one hop; |
| find_tests_forA | The tests of a symbol: those that reach it through the call graph ([dN] = N calls away, even if they never name it) and those that name it, under conventional test paths (tests/, spec/, tests/, test_*, _test., .spec., *Test.cs, *Tests.cs); test_path_pattern replaces them. describe_symbol and impact include the same tests. |
| find_similarA | Code semantically similar to a snippet you already have, dense search only: use it before writing a function, to check whether something like it exists. |
| describe_symbolA | One call to understand a symbol before changing it: its code, callers, callees and tests; for a class, its bases, subtypes and member signatures instead of the body. No read_file needed after. Calls and types need the graph layer; definition and tests always work. |
| impactA | Answer 'what breaks if I change this': everything that reaches a symbol transitively through the call graph, with hop distance, plus the tests to re-run. Use find_usages for the direct, one-hop answer; use this before a risky edit, when the indirect callers are the point. max_depth trades reach for noise: 2 stays close to the change, 6 on a hub symbol can return most of the codebase. Transitive callers need the graph layer. |
| repo_overviewA | Orientation for an unfamiliar codebase: languages by file count, frameworks, manifests, likely entry points, and build/test/run commands. Filesystem scan, no index needed. Call once per session. |
| module_summaryA | A file as a unit: each symbol it defines on one line (span, signature, doc line), its imports and the files depending on it (those two need the graph). Read it instead of opening an unknown file; describe_symbol covers one symbol in it. |
| export_graphA | Write a self-contained offline HTML view of a symbol's blast radius (mode=symbol) or a file's imports and dependents (mode=module), for a human to open or attach to a PR. Returns the file path. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| guide | How to use Lynx well: search phrasing, score interpretation, escalation ladder, structural queries. |
TDQS
Scored across 18 tools
The descriptions actively draw boundaries between the most easily confused tools: search vs deep_search ('do not start here'), find_usages (one hop) vs impact (transitive), and find_similar vs search. Some genuine redundancy remains — find_tests_for duplicates tests already returned by describe_symbol and impact, and graph_query overlaps with find_usages/impact for callers/callees — but each overlap is explicitly signposted. The two hook-only tools ('do not call') are noise in the callable surface, though clearly labelled.
Casing is uniformly snake_case, which helps, but the convention is mixed: verb_noun tools (find_definition, find_usages, list_sources, update_source_index, get_rag_status, export_graph) sit alongside bare nouns (impact, feedback, graph_query, module_summary, repo_overview) and one bare verb (search). It stays readable because the domain is coherent, but an agent cannot infer from a name alone whether a tool is an action or a resource.
At 18 tools (16 callable once the two hooks are excluded) this is slightly above the comfortable range, but each tool maps to a distinct query intent — locate, understand, impact, test, orient, maintain index. Nothing feels padded, and the escalation structure (search → deep_search, find_usages → impact) justifies the extra entries.
The surface covers the full code-intelligence lifecycle: discovery (search, deep_search, find_similar), symbol resolution (find_definition, describe_symbol), relationship analysis (find_usages, impact, graph_query, module_summary), tests, orientation (repo_overview), and index maintenance (list_sources, get_rag_status, update_source_index, feedback). Minor gaps exist — no way to enumerate symbols/files by pattern (e.g. list all symbols in a source, or glob-based file listing), and reindexing is source-wide only — but agents can route around them via search and module_summary.