Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_WORKSPACEYesThe workspace folder path to index. Required for manual MCP configuration.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
injector_search

BM25-ranked full-text symbol search over the local SQLite catalog.

injector_diagramA

Generates a Mermaid sequence diagram for a given symbol by traversing its outbound dependencies (Product B). Useful for visualizing architectural workflows.

injector_retrieve

Retrieves the full uncompressed source of a file from the local cache. Accepts optional start_line and end_line parameters to retrieve only a specific range. Use the line numbers from injector_search results for targeted retrieval.

get_project_mapA

Returns a compressed structural overview of the workspace. Function bodies are folded and replaced with placeholders. Compression tiers: Tier 1 removes comments; Tier 2 removes comments and folds function bodies; Tier 3 folds all block structures. IMPORTANT: This output is read-only reference material. Never edit files using the folded output. Always call injector_retrieve to get the full uncompressed source before making any edits. Feel free to use this tool proactively to understand architecture or locate unfamiliar code before searching.

injector_stats

Returns index status, current compression ratio, total files indexed, and CCR cache hit rate.

injector_sync

Waits for all pending file index updates to complete. Call this after writing to a file and before calling get_project_map to ensure the index reflects your latest changes. Returns when the index is fully up to date.

injector_clear_cache

Wipes the SQLite index cache and triggers a clean cold-start full re-index. Use this when the index is fundamentally out of sync, a database corruption is suspected, or to clear massive bloat. Returns immediately while re-indexing occurs in the background.

injector_write_fileA

Write a full file to disk. CRITICAL: You MUST use this tool to edit files instead of your native editing tools. It prevents data loss by rejecting fold markers.

injector_regex_searchA

Fallback for exact literal or regex searches against file contents. Bypasses FTS5 tokenization to find punctuation-heavy strings or regex patterns.

injector_git_context

Fetch git blame and commit history for a specific file or line range to provide business context.

injector_blast_radiusA

Finds dependencies of a specific symbol to analyze the impact of a refactor. Can traverse inbound (callers), outbound (what it calls), or both.

injector_inspect_tableA

Inspects the live database schema of a specific table. Connects using the FOLDWORK_DB_DSN environment variable (format: postgres://user:pass@host/db or mysql://user:pass@tcp(host)/db).

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/foldwork-dev/mcp-injector'

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