code-context
Verified Safeby jieyefriic
Overview
This project provides an MCP (Model Context Protocol) server that automatically scans codebases to extract and manage API endpoint specifications in a vector database for AI coding assistants, enabling instant lookup, semantic search, and complete specifications.
Installation
code-context serverEnvironment Variables
- CODE_CONTEXT_DATA_DIR
- CODE_CONTEXT_QDRANT_PATH
- CODE_CONTEXT_QDRANT_URL
- CODE_CONTEXT_QDRANT_API_KEY
- CODE_CONTEXT_COLLECTION_NAME
- CODE_CONTEXT_VECTOR_SIZE
- CODE_CONTEXT_LLM_PROVIDER
- CODE_CONTEXT_LLM_API_KEY
- CODE_CONTEXT_LLM_MODEL
Security Notes
The server primarily operates locally (localhost:18765). Sensitive API keys are stored in `~/.code-context/config.json` with restrictive permissions (0o600). External LLM API calls utilize user-provided keys, posing a data privacy consideration but not a direct vulnerability in the server itself. `subprocess.run` is used for CLI integrations and log tailing, but arguments appear to be safely constructed from internal logic rather than direct, unsanitized user input. PID file management is implemented for singleton server instances and graceful shutdown, reflecting good operational security practices.
Similar Servers
mcp
This MCP server advises development agents on modern and performant best practices by identifying inefficient or outdated npm packages and serving migration documentation.
HydrusMCPServer
Connects an LLM to the Hydrus Network media manager for sophisticated tag and file management through a Dockerized MCP server.
MCP_SERVER
Provides a Micro-Agent Control Plane (MCP) server to expose smart meter data, usage calculations, and billing information as callable tools.
freecodecamp-mcp
This server provides tools for AI assistants to search FreeCodeCamp articles and YouTube tutorials via RSS feeds.