SRC (Structured Repo Context)
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Log verbosity | info |
| CHUNK_SIZE | No | Characters per chunk | 1000 |
| CHUNK_OVERLAP | No | Overlap between chunks | 200 |
| EMBEDDING_MODEL | No | Model for embeddings | nomic-embed-text |
| OLLAMA_BASE_URL | No | Ollama API endpoint | http://localhost:11434 |
| EMBEDDING_BATCH_SIZE | No | Batch size for embedding | 10 |
| EMBEDDING_DIMENSIONS | No | Vector dimensions | 768 |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| src-overview | Learn about SRC capabilities and when to use it for code search and analysis |
| code-search-workflow | Step-by-step guide for searching code with SRC |
| search-tips | Tips for writing effective code search queries |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| server_info |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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