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 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_server_info | Get SRC server version and capabilities. Use to verify the MCP server is running correctly. |
| index_codebase | 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_code | 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_status | 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_index | 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 |