Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OLLAMA_URL | No | URL of Ollama server | |
| QDRANT_URL | No | Full URL for remote/cloud Qdrant (required when QDRANT_MODE=external) | |
| QDRANT_MODE | No | managed (default) or external (user-provided Qdrant) | |
| GOOGLE_API_KEY | No | API key for Google embeddings (required when EMBEDDING_PROVIDER=google) | |
| OPENAI_API_KEY | No | API key for OpenAI embeddings (required when EMBEDDING_PROVIDER=openai) | |
| QDRANT_API_KEY | No | API key for remote Qdrant | |
| EMBEDDING_MODEL | No | Embedding model name | |
| EMBEDDING_PROVIDER | No | Embedding provider: ollama (default), openai, or google | |
| EMBEDDING_DIMENSIONS | No | Embedding vector dimensions |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| codebase_index | Start indexing a codebase in the background. Returns immediately. Call codebase_status to poll progress until 100%. Do NOT search until indexing is complete. If already indexing, returns current progress. |
| codebase_update | Incrementally update an existing codebase index. Only re-indexes changed files. Runs synchronously. Usually not needed if file watcher is active. |
| codebase_remove | Remove a project's codebase index entirely from the vector database. Safely stops the file watcher, cancels any in-progress indexing/update (with drain), and waits for any in-flight graph build before deleting. |
| codebase_stop | Gracefully stop an in-progress indexing operation. The current batch will finish and checkpoint, preserving all progress. Re-run codebase_index to resume from where it left off. |
| codebase_watch | Start/stop watching a project directory for file changes and automatically update the index. When starting, first runs an incremental update to catch any changes made since the last session, then keeps the index up to date via debounced file system watching. |
| codebase_search | Semantic search across an indexed codebase. Only use after codebase_index is complete (check codebase_status first). Returns relevant code chunks matching a natural language query. |
| codebase_status | Check index status: chunk count, indexing progress (%), last completed operation, file watcher state. Call after codebase_index to poll until 100% complete. |
| codebase_graph_build | Build a dependency graph of the codebase using static analysis (ast-grep). Maps import/require/export relationships between files. Runs in the background — call codebase_graph_status to poll progress until complete. |
| codebase_graph_query | Query the code dependency graph for a specific file. Returns what the file imports and what files depend on it. |
| codebase_graph_stats | Get statistics about the code dependency graph: total files, edges, most connected files, orphan files, circular dependencies. |
| codebase_graph_circular | Find circular dependencies in the codebase. |
| codebase_graph_visualize | Generate a visual Mermaid diagram of the code dependency graph, color-coded by language with circular dependencies highlighted. |
| codebase_graph_remove | Remove a project's persisted code graph. Waits for any in-flight graph build to finish first. The graph can be rebuilt with codebase_graph_build or will be rebuilt automatically on the next codebase_index. |
| codebase_graph_status | Check the status of the code dependency graph: build progress (if building), node/edge count, when it was last built, whether it's cached in memory. Use this to poll progress after calling codebase_graph_build. |
| codebase_context | List all context artifacts defined in .socraticodecontextartifacts.json — database schemas, API specs, infra configs, architecture docs, etc. Shows each artifact's name, description, path, and index status. Use this to discover what project knowledge is available beyond source code. |
| codebase_context_search | Semantic search across context artifacts (database schemas, API specs, infra configs, etc.) defined in .socraticodecontextartifacts.json. Auto-indexes on first use and auto-detects stale artifacts. Use this to find relevant infrastructure or domain knowledge. |
| codebase_context_index | Index or re-index all context artifacts defined in .socraticodecontextartifacts.json. Chunks and embeds artifact content into the vector database for semantic search. Usually not needed — codebase_context_search auto-indexes on first use. |
| codebase_context_remove | Remove all indexed context artifacts for a project from the vector database. Blocked while indexing is in progress — use codebase_stop or wait for the operation to finish first. |
| codebase_health | Check the health of all infrastructure: Docker, Qdrant container, Ollama, and embedding model. Use this to diagnose setup issues. |
| codebase_list_projects | List all projects that have been indexed (have collections in Qdrant). |
| codebase_about | Display information about SocratiCode — what it is, its tools and how to use it. Use this to get a quick overview of the MCP tools and their purpose. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |