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 assists developers by identifying inefficient or outdated npm packages in install commands and source files, providing migration documentation.
MCP_SERVER
Provides a Micro-Agent Control Plane (MCP) server to expose smart meter data, usage calculations, and billing information as callable tools.
protocols
Acts as a server implementing the Minecraft Protocol, allowing Minecraft clients to connect and play in a custom game environment.
server-mcp
Provides a server implementation for the Minecraft Protocol, allowing clients to connect and interact within a game world for multiplayer gameplay.