Skip to main content
Glama
kvnpetit

SRC (Structured Repo Context)

by kvnpetit

search_code

Find code by meaning using natural language queries to locate authentication logic, error handling, and other concepts with file locations and call relationships.

Instructions

Search code semantically using natural language queries. USE THIS to find code by concept/meaning (e.g., 'authentication logic', 'error handling'). Requires index_codebase first. Returns relevant code chunks with file locations, function names, and call relationships (who calls what).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language search query
directoryNoPath to the indexed directory (defaults to current directory).
limitNoMaximum number of results to return
thresholdNoMaximum distance threshold for results (lower = more similar)
modeNoSearch mode: 'vector' (semantic only), 'fts' (keyword only), 'hybrid' (combined with RRF fusion)hybrid
includeCallContextNoInclude caller/callee information for each result (uses cached call graph)

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/kvnpetit/structured-repo-context-mcp'

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