Skip to main content
Glama
kvnpetit

SRC (Structured Repo Context)

by kvnpetit

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLog verbosityinfo
CHUNK_SIZENoCharacters per chunk1000
CHUNK_OVERLAPNoOverlap between chunks200
EMBEDDING_MODELNoModel for embeddingsnomic-embed-text
OLLAMA_BASE_URLNoOllama API endpointhttp://localhost:11434
EMBEDDING_BATCH_SIZENoBatch size for embedding10
EMBEDDING_DIMENSIONSNoVector dimensions768

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": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_server_infoA

Get SRC server version and capabilities. Use to verify the MCP server is running correctly.

index_codebaseA

Index a codebase for semantic code search. USE THIS FIRST before search_code. Required once per project - creates vector embeddings for 50+ languages. After initial indexing, use update_index for incremental updates.

search_codeA

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).

get_index_statusA

Check if a codebase is indexed and ready for search. USE THIS to verify index exists before searching. Returns file count, chunk count, and indexed languages.

update_indexA

Refresh the search index after code changes. USE THIS instead of re-indexing - it's fast because it only processes changed files (SHA-256 hash detection). Use dryRun=true to preview changes first.

Prompts

Interactive templates invoked by user choice

NameDescription
src-overviewLearn about SRC capabilities and when to use it for code search and analysis
code-search-workflowStep-by-step guide for searching code with SRC
search-tipsTips for writing effective code search queries

Resources

Contextual data attached and managed by the client

NameDescription
server_info

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