Skip to main content
Glama
vrppaul
by vrppaul

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SEMANTIC_CODE_MCP_DEBUGNoEnable debug loggingfalse
SEMANTIC_CODE_MCP_PROFILENoEnable pyinstrument profilingfalse
SEMANTIC_CODE_MCP_CACHE_DIRNoWhere indexes are stored~/.cache/semantic-code-mcp
SEMANTIC_CODE_MCP_LOCAL_INDEXNoStore index in .semantic-code/ within each projectfalse
SEMANTIC_CODE_MCP_EMBEDDING_MODELNoSentence-transformers modelall-MiniLM-L6-v2

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_code

Search for code semantically similar to the query.

Finds code by meaning, not just text matching. Use this when you want to find code related to a concept without knowing exact variable/function names.

Examples:

  • "authentication logic" - finds login, session handling, token validation

  • "error handling for API calls" - finds try/except blocks, error responses

  • "database connection setup" - finds connection pooling, ORM initialization

Automatically indexes the project if not already indexed, and re-indexes any files that have changed since the last search.

Args: query: Natural language description of what you're looking for. project_path: Absolute path to the project root directory. limit: Maximum number of results to return (default 10).

Returns: List of matching code chunks with file path, line numbers, content, and score.

index_codebase

Index a codebase for semantic search.

Scans Python files, extracts functions/classes/methods, generates embeddings, and stores them for fast semantic search.

Use force=True to re-index everything even if files haven't changed. Otherwise, only new and modified files are indexed (incremental).

Args: project_path: Absolute path to the project root directory. force: If True, re-index all files regardless of changes.

Returns: Statistics about the indexing operation.

index_status

Get the index status for a project.

Returns information about whether the project is indexed, when it was last updated, and how many files and chunks are indexed.

Note: search_code automatically re-indexes stale files before searching, so there is no need to check or act on staleness manually.

Args: project_path: Absolute path to the project root directory.

Returns: Index status including files count and chunks count.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/vrppaul/semantic-code-mcp'

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