Skip to main content
Glama
isac322

pi-codegraph

by isac322

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PI_CODEGRAPH_CONFIGNoPath to the global configuration JSON file (overrides ~/.config/pi-codegraph/config.json).
PI_CODEGRAPH_AUTO_GCNoAutomatically garbage-collect indexes for disappeared worktrees.
PI_CODEGRAPH_AUTO_SYNCNoAutomatically sync the code graph index.
PI_CODEGRAPH_EXECUTABLENoPath to the codegraph executable, overrides the optional dependency.
PI_CODEGRAPH_INDEX_STORENoCentral directory for storing code graph indexes.
PI_CODEGRAPH_MAX_WORKERSNoMaximum number of query workers for the shared daemon.
PI_CODEGRAPH_ALLOWED_ROOTSNoList of allowed project root paths, separated by the platform path delimiter.
PI_CODEGRAPH_WORKER_IDLE_MSNoIdle timeout in milliseconds before a worker is terminated.
PI_CODEGRAPH_MAX_OUTPUT_CHARSNoMaximum number of characters in tool output.
PI_CODEGRAPH_PROMPT_INJECTIONNoEnable prompt injection protection.
PI_CODEGRAPH_REQUEST_TIMEOUT_MSNoTimeout in milliseconds for tool requests.
PI_CODEGRAPH_SYNC_MIN_INTERVAL_MSNoMinimum interval in milliseconds between automatic syncs.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
codegraph_searchA

Search indexed declarations by symbol name. Returns locations only; use codegraph_explore when you need source and relationships.

codegraph_nodeA

Read an indexed file with line numbers and dependents, or inspect a named symbol with its source and relationships.

codegraph_filesB

Read the indexed project file tree. Paths are normalized to repo-relative POSIX prefixes.

codegraph_callersB

Find functions and methods that call a symbol, optionally selecting its definition by file.

codegraph_calleesA

Find functions and methods called by a symbol, optionally selecting its definition by file.

codegraph_impactB

Analyze the transitive impact radius of a symbol, optionally selecting its definition by file.

codegraph_exploreA

Explore related symbols and line-numbered source grouped by file. Best first tool for architecture, flows, and broad code questions.

codegraph_statusA

Report CodeGraph index health and pending synchronization state.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 8 tools

Disambiguation4/5

Most tools have distinct purposes: search returns locations, callers/callees handle direct relationships, impact handles transitive reach, and files/status serve different concerns. The main overlap is between codegraph_node and codegraph_explore, both of which can return source and relationships, but the descriptions clarify that node is for a single named symbol or file while explore is for broader code questions.

Naming Consistency4/5

All tools share a consistent codegraph_ prefix and use readable lowercase names. The pattern is slightly mixed between noun-style names (node, files, status, callers, callees, impact) and verb-style names (search, explore), but the naming is still predictable and easy to navigate.

Tool Count5/5

Eight tools is well-scoped for a code graph query server. Each tool covers a meaningful query mode without redundant bloat, and the count feels appropriate for both simple lookups and deeper dependency analysis.

Completeness5/5

The surface covers the core code graph workflow: locating symbols, reading source, viewing file trees, finding callers/callees, assessing transitive impact, exploring related code, and checking index health. No major lifecycle gaps are apparent for a read-only code indexing tool.

Maintenance

ActivityMaintained
ResponsivenessNo issues