Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
QDRANT_HOSTNoHostname of the Qdrant vector database (optional)localhost
QDRANT_PORTNoPort of the Qdrant vector database (optional)6333
MCP_TRANSPORTYesTransport mode: stdio or httpstdio
MEMGRAPH_HOSTYesHostname of the Memgraph database
MEMGRAPH_PORTYesPort of the Memgraph database

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
graph_queryC

Execute Cypher or natural language query against the code graph

graph_rebuildC

Rebuild code graph from source

graph_set_workspaceB

Set active workspace/project context for subsequent graph tools

graph_healthB

Report graph/index/vector health and freshness status

diff_sinceB

Summarize temporal graph changes since txId, timestamp, git commit, or agentId

code_explainB

Explain code element with dependency context

find_patternA

Find architectural patterns or violations in code. Requires pattern (a search string describing what to find, e.g. 'circular dependencies', 'unused files', 'layer violation'). Optional type selects the detection mode: 'circular' = circular dependency detection, 'unused' = files with no relationships, 'violation' = architecture layer rule violations, 'pattern' = general semantic pattern search.

tools_listA

List all MCP tools and their availability in the current session, grouped by category

contract_validateC

Normalize and validate tool argument contracts before execution

semantic_searchC

Search code semantically using vector similarity

find_similar_codeA

Find code elements similar to a given function or class by vector similarity. Requires elementId — use the id field returned by graph_query or code_explain (not a symbol name or natural language string). Optionally set threshold (0–1, default 0.7) and limit. Returns similar elements with names and file paths.

code_clustersA

Cluster code elements by directory proximity and vector similarity. Requires type (function | class | file). Returns clusters with member counts and samples — useful for understanding module boundaries and finding groups of related code. Depends on Qdrant embeddings.

semantic_diffA

Compare graph-stored metadata properties between two code elements. Requires elementId1 and elementId2 — use the id fields from graph_query or code_explain results (not symbol names). Returns changed property keys and left/right-only properties. Note: compares graph metadata, not source-code semantics or embedding similarity.

suggest_testsA

Suggest test cases for a code element. Requires elementId — use the id field returned by graph_query or code_explain (not a symbol name). Returns suggested test names, types, and coverage gaps based on the element's structure and similar existing tests.

context_packB

Build a single-call task briefing using PPR-ranked retrieval across code, decisions, learnings, and blockers

semantic_sliceC

Return relevant exact source lines with optional dependency and memory context

init_project_setupA

One-shot project initialization: sets workspace context, triggers graph rebuild, and generates .github/copilot-instructions.md if not present. Use this as the first step when onboarding a new project or starting a fresh session.

setup_copilot_instructionsA

Analyze a repository and generate two files: a lean .github/copilot-instructions.md (project-specific facts only — stack, commands, lxDIG bootstrap) and a .github/lxdig-agent-guide.md (full tool-reference guide with correct signatures, decision table, pitfalls, and usage patterns). The guide is read on demand so it does not saturate the ambient instruction context.

arch_validateA

Check code files against architecture layer rules. Returns a violations list and statistics. Call with no files to validate the full project, or pass a list of file paths to scope validation. Violations are returned as warnings by default; set strict=true to elevate to errors.

arch_suggestA

Suggest the best file path and layer for a new code element. Requires name (the identifier, e.g. 'UserService') and type (one of: component, hook, service, context, utility, engine, class, module). Optionally pass dependencies (list of imports the new element will use). Returns recommended path, layer, and rationale.

index_docsA

Discover and index all markdown documentation files (README, ADRs, guides, CHANGELOG, ARCHITECTURE) under the workspace root into DOCUMENT and SECTION graph nodes. Supports incremental mode (skips unchanged files). Emits DOC_DESCRIBES edges linking sections to the code symbols they mention.

search_docsA

Search indexed documentation sections by full-text query or by code symbol name. Returns matching SECTION nodes with heading, source document, kind (readme/adr/guide/…), line number, relevance score, and a short content excerpt. Run index_docs first to populate the index.

ref_queryA

Query a reference repository on the same machine for architecture insights, design patterns, conventions, or code examples. Useful for borrowing context from a well-structured sibling repo when working on the current workspace.

test_selectB

Select tests affected by changed files

test_categorizeC

Categorize tests by type

impact_analyzeC

Analyze impact of changes

test_runC

Execute test suite

progress_queryA

List tasks or features by status. Pass a query string (e.g. 'all tasks' or 'feature auth') and optionally filter by status (all | active | blocked | completed). Returns matching task or feature nodes with their current status, assignee, and due date.

task_updateA

Update the status of a tracked task. Requires taskId (from progress_query results) and status (new status string, e.g. completed, blocked, in-progress). Optional: notes (progress notes or blockers), assignee, dueDate. Use after completing or blocking a task to keep delivery state current.

feature_statusC

Get feature implementation status

blocking_issuesC

Find blocking issues

episode_addA

Persist a structured episode in long-term agent memory. Required: type (one of: OBSERVATION, DECISION, EDIT, TEST_RESULT, ERROR, REFLECTION, LEARNING) and content (the episode text). IMPORTANT: DECISION type also requires metadata: { rationale: '...' } — omitting it returns an error. Optional: entities (related file/symbol names), taskId, outcome (success | failure | partial), sensitive (exclude from default recalls).

episode_recallC

Recall episodes by semantic, temporal, and entity relevance

decision_queryC

Query decision episodes for a target topic

reflectB

Synthesize reflections and learning nodes from recent episodes

agent_claimA

Claim a file, function, task, or feature for exclusive editing. Conflict detection prevents two agents from claiming the same target simultaneously. Requires targetId (file path or task ID) and intent (natural language description of what you plan to do). Returns a claimId — save it for the matching agent_release call. claimType: task | file | function | feature.

agent_releaseC

Release an active claim

agent_statusB

Get active claims and recent episodes for an agent

coordination_overviewB

Fleet-wide claim view including active claims, stale claims, and conflicts

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lexCoder2/lxDIG-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server