Back to Home
context-hub icon

generator

Verified Safe

by context-hub

Overview

Provides a Retrieval-Augmented Generation (RAG) system and Micro-Context Protocol (MCP) server for AI assistants to understand, interact with, and generate documentation/code for projects. It allows indexing codebase knowledge, semantic search, and exposing file system, Git, and code analysis tools to AI agents.

Installation

Run Command
./.build/ctx mcp:server

Environment Variables

  • OPENAI_API_KEY
  • RAG_QDRANT_HOST
  • RAG_QDRANT_PORT
  • RAG_COLLECTION
  • GITHUB_TOKEN
  • GITLAB_TOKEN
  • DOTENV_PATH
  • CTX_BINARY_PATH

Security Notes

The project is designed to expose powerful filesystem, Git, and code analysis capabilities via an HTTP API (MCP Server). This inherent design choice makes it highly critical from a security perspective. If the MCP server is exposed to untrusted users, or if an AI agent interacting with it is compromised, it could lead to: - Arbitrary file read/write/delete/replace on the server's filesystem. - Execution of arbitrary Git commands (add, commit, status). - Server-Side Request Forgery (SSRF) via the 'url' source type, fetching content from untrusted external URLs. - Indexing of sensitive internal code/data into external vector stores (Qdrant, OpenAI) if not configured carefully. While command execution uses Symfony Process (which correctly escapes arguments, reducing direct command injection risk), the *ability* to perform these actions via an API makes it a very high-privilege system. The default in-memory user provider for OAuth (if active) suggests a development-oriented authentication setup that is not suitable for production without significant hardening. No direct use of 'eval' or intentional obfuscation was detected.

Similar Servers

Stats

Interest Score68
Security Score3
Cost ClassHigh
Avg Tokens5000
Stars287
Forks18
Last Update2026-01-19

Tags

AI AssistantRAG SystemContext GenerationCode AnalysisDocumentationSemantic SearchCLI ToolPHPSymfony AI StoreDeveloper ToolMCP ServerDevOps