Back to Home
jieyefriic icon

code-context

Verified Safe

by 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

Run Command
code-context server

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassHigh
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-25

Tags

AI Coding AssistantAPI ManagementVector DatabaseCode ContextMCP Server