Ermöglicht KI-Clients den Dateisystemzugriff, um Projektdateien zu lesen, zu schreiben, zu durchsuchen und zu modifizieren sowie benutzerdefinierte Commands auszuführen und Kontext-Dokumente zu generieren.
Auch bekannt als context-hub/generator
- Stars
- 343
- Tools
- 1
- Downloads, 30 Tage
- —
- Neueste Version
- —
- Letzter Commit
- 22. Okt. 2026
- Lizenz
- MIT
Was ist CTX MCP?
Ermöglicht KI-Clients den Dateisystemzugriff, um Projektdateien zu lesen, zu schreiben, zu durchsuchen und zu modifizieren sowie benutzerdefinierte Commands auszuführen und Kontext-Dokumente zu generieren. Er stellt 1 Tool bereit, etwa cmd.
Zusammenfassung generiert aus dem README des Projekts
Über CTX MCP server
Entwickler können KI-Clients mit diesem Single-Binary-Toolkit direkten Zugriff auf ihre lokalen Codebases gewähren. Durch die Verbindung mit Clients wie Claude Desktop, Cursor oder Cline erhält ein KI-Assistent die Fähigkeit, Dateien über mehrere Projekte hinweg gleichzeitig zu lesen, zu schreiben, zu durchsuchen und zu modifizieren. Dies ist besonders nützlich für das Management von Microservices, bei denen ein einzelnes Feature mehrere verschiedene Repositories betreffen kann.
Über die Standard-Dateisystemoperationen hinaus ermöglicht das Tool, Terminal-Commands in benutzerdefinierte KI-Tools zu verwandeln. Du kannst spezifische Aktionen für das Ausführen von Tests, das Durchführen von Migrations oder das Auslösen von Deployments definieren, die die KI über die MCP-Schnittstelle initiieren kann. Es enthält zudem spezialisierte Funktionen wie die PHP-Strukturanalyse, um der KI zu helfen, Klassenhierarchien und Abhängigkeiten zu verstehen.
Nutzer können außerdem den Kontext-Generierungsmodus verwenden, um strukturierte Markdown-Dokumente zu erstellen. Diese Dokumente aggregieren Informationen aus Git-Diffs, spezifischen File-Patterns und URLs, um einen klaren Überblick über das System zu geben. Das gesamte Setup wird über eine deklarative Config verwaltet, was eine organisierte Multi-Projekt-Entwicklung ermöglicht, ohne dass eine schwere Runtime-Umgebung wie Node.js oder Python benötigt wird.
Was du damit machen kannst
- 1Implementierung von Cross-Service-FeaturesEine KI kann Features entwickeln, die über mehrere Microservices hinweggehen, indem sie in einer Session auf verschiedene registrierte Projektpfade zugreift.
- 2Automatisierte Tests und DeploymentDu kannst eine KI anweisen, die spezifischen Test-Suites oder Deployment-Scripts deines Projekts direkt auszuführen.
- 3Onboarding und DokumentationGeneriere umfassende Projektübersichten und Architektur-Dokumente, um neuen Teammitgliedern das Verständnis der Codebase zu erleichtern.
- 4Codebase-Exploration und AnalyseNutze die KI, um Regex-Suchen durchzuführen oder PHP-Klassenstrukturen zu analysieren, um komplexe Codebases zu verstehen.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
CTX MCP tools 1
Erkannt aus dem READMEcmd
| cmd | — |
Automatisierte Checks
Geluften am 12. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarBestanden
- Open Source Lizenz (OSI)Bestanden
- Commit oder Release im letzten JahrBestanden
- Package-Name ähnelt keinem populären PackageNicht geprüft
- Remote Endpoint nutzt HTTPSNicht geprüft
- Destruktive Tools sind markiertBestanden
- Keine versteckten Anweisungen an das ModellBestanden
- Keine kritischen Advisories im Paket oder seinen AbhängigkeitenNicht geprüft
README
Auf GitHub ansehenCTX: Your AI Coding Companion
MCP-powered development toolkit that gives AI full access to your codebase
What is CTX?
CTX is a single ~20 MB binary with zero dependencies. No Node.js, no Python, no runtime — just download, connect to your MCP client, and start coding with AI.
Connect it to Claude Desktop, Cursor, Cline, or any MCP-compatible client — and your AI gets direct access to read, write, search, and modify files across your projects.
CTX is designed with Claude Desktop in mind and works best with it. Claude's deep understanding of code combined with CTX's filesystem tools, custom commands, and multi-project support creates a seamless development experience — like having a senior developer who knows your entire codebase sitting right next to you.
Table of Contents
Key Features
🛠 MCP Server — AI Develops Directly in Your Project
CTX provides a built-in MCP server with powerful filesystem tools:
- Read & write files — AI creates, modifies, and analyzes code directly
- Search across codebase — text and regex search with context lines
- PHP structure analysis — class hierarchy, interfaces, and dependencies at a glance
- Directory exploration — smart filtering by patterns, dates, sizes, and content
⚡ Custom Tools — Turn Any Command into an AI Tool
Define project-specific commands that AI can execute through MCP:
tools:
- id: run-tests
description: "Run project tests with coverage"
type: run
commands:
- cmd: vendor/bin/phpunit
args: [ "--coverage-html", "logs/coverage" ]
- id: deploy
description: "Deploy to staging"
type: run
schema:
type: object
properties:
branch:
type: string
default: "main"
commands:
- cmd: ./deploy.sh
args: [ "{{branch}}" ]
Tests, migrations, linters, deployments — anything your terminal can run, AI can trigger.
📁 Multi-Project Development
Work across multiple microservices simultaneously. AI sees all your projects and can develop cross-cutting features:
projects:
- name: backend-api
path: ../backend
description: "REST API service"
- name: auth-service
path: ../auth
description: "Authentication microservice"
- name: shared-lib
path: ../packages/shared
description: "Shared domain models"
Start a session, ask AI to list available projects, and develop features that span multiple services — all in one conversation.
🎯 Smart Context Generation
Define exactly what context your AI needs. CTX collects code from files, git diffs, GitHub repos, URLs, and more — then structures it into clean markdown documents:
documents:
- description: User Authentication System
outputPath: auth.md
sources:
- type: file
sourcePaths: [ src/Auth ]
filePattern: "*.php"
- type: git_diff
commit: "last-week"
📐 Declarative Config with JSON Schema
Everything is configured through context.yaml with full JSON Schema support. Your AI assistant can generate and modify
these configs for you — just describe what you need.
ctx init # Generate initial config
ctx generate # Build context documents
ctx server # Start MCP server
Quick Start
Install
Linux / WSL:
curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-latest.sh | sh
Windows:
powershell -c "& ([ScriptBlock]::Create((irm 'https://raw.githubusercontent.com/context-hub/generator/main/download-latest.ps1'))) -AddToPath"
Connect to Claude Desktop (or Any MCP Client)
The fastest way — auto-detect OS and configure your MCP client:
ctx mcp:config
Or add manually to your MCP client config:
{
"mcpServers": {
"ctx": {
"command": "ctx",
"args": [
"server"
]
}
}
}
For a specific project:
{
"mcpServers": {
"ctx": {
"command": "ctx",
"args": [
"server",
"-c",
"/path/to/project"
]
}
}
}
That's it. Your AI assistant now has full access to your project through MCP.
Optional: Generate Context Documents
If you also want to generate static context files for copy-paste workflows:
cd your-project
ctx init # Create context.yaml
ctx generate # Build markdown contexts
How It Works
CTX operates in two modes that complement each other:
MCP Server Mode — AI interacts with your codebase in real-time:
AI Assistant ←→ CTX MCP Server ←→ Your Project Files
↕
Custom Tools (tests, deploy, lint...)
Multiple Projects
Context Documents
Context Generation Mode — build structured documents for any LLM:
context.yaml → Sources → Filters → Modifiers → Markdown Documents
Use Cases
🔧 AI-Powered Development (MCP)
Connect CTX to Claude Desktop or Cursor. Ask your AI to explore the codebase, understand architecture, write new features, run tests, and fix issues — all without leaving the conversation.
🏗 Multi-Service Feature Development
Working on a feature that touches multiple microservices? Register all projects, and AI can read code from one service, understand shared models, and implement changes across the entire stack.
📝 Context for Code Review
Generate context documents with recent git diffs, relevant source files, and architecture overview. Share with reviewers or AI assistants for thorough, informed reviews.
🚀 Onboarding
New team member? Generate a comprehensive project overview — architecture, key interfaces, domain models — in seconds. AI can then answer questions about the codebase with full context.
📚 Documentation Generation
Point CTX at your source code with modifiers like php-signature to extract API surfaces, then let AI generate
comprehensive documentation.
Full Documentation
For complete documentation, including all features and configuration options:
Join Our Community
What you'll find:
- 💡 Share and discover configurations and workflows
- 🛠️ Get help with setup and advanced usage
- 🚀 Showcase your AI development workflows
- 📢 First to know about new releases
License
This project is licensed under the MIT License.
CTX MCP Fragen
Welche Tools bietet CTX MCP?
Er stellt 1 Tool bereit, darunter cmd.
Wie verbinde ich CTX mit Claude Desktop?
Führe 'ctx mcp:config' aus, um deinen MCP Client automatisch zu konfigurieren, oder füge den ctx server Command manuell zu deiner MCP Client Config hinzu.
Was kann die KI über CTX mit meinen Dateien machen?
Sie kann Dateien lesen und schreiben, die Codebase mittels Text und Regex durchsuchen, PHP-Strukturen analysieren und Verzeichnisse mit Filtern explorieren.
Kann CTX mit mehreren Projekten gleichzeitig arbeiten?
Ja, du kannst mehrere Projekte in der Config registrieren, sodass die KI in einer einzigen Konversation Features entwickeln kann, die über verschiedene Services hinweggehen.
Kann die KI meine Projekt-Commands wie Tests oder Deployments ausführen?
Ja, du definierst benutzerdefinierte Tools in YAML, die Projekt-Commands abbilden, und die KI kann diese über MCP ausführen.
Wie generiere ich Kontext-Dokumente für ein LLM?
Führe 'ctx init' aus, um eine context.yaml zu erstellen, und dann 'ctx generate', um Markdown-Kontext-Dokumente aus definierten Quellen zu erstellen.