Context Generator
About
PHP-based tool for generating structured documentation from files, repositories, diffs, and URLs through a modular architecture with powerful configuration options for AI-assisted development workflows
Details
- Author
- context-hub
- Repository
- context-hub/generator
- GitHub stars
- 65
- Downloads
- 772
- License
- MIT License
- Categories
- Developer Tools, Other, AI, Productivity, Workplace, File Management, Infrastructure, Knowledge Base, Project Management
Jump to
- MCP server with powerful filesystem tools (read, write, search, modify)
- Custom tools – turn any terminal command into an AI-triggerable tool
- Multi-project development across microservices
- Smart context generation from files, git diffs, URLs, and more
- Declarative YAML config with JSON Schema support
- Zero dependencies – single ~20 MB binary, no Node.js or Python required
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Context GeneratorCommand (node, npx, python, etc.)ctxArguments-
Argument 1
server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install via curl (Linux/WSL) or PowerShell (Windows), then connect to any MCP client using ctx mcp:config for auto-configuration or manually add the ctx server command to your client’s config. For context generation workflows, run ctx init to create a YAML config and ctx generate to build markdown context documents.
run-tests
Run project tests with coverage. Command: vendor/bin/phpunit with arguments: [ '--coverage-html', 'logs/coverage' ]
deploy
Deploy to staging. Command: ./deploy.sh with argument: [ '{{branch}}' ] where branch defaults to 'main'.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"context generator": {
"env": {},
"args": [
"server"
],
"command": "ctx"
}
}
}
Linux
{
"env": [],
"args": [
"server"
],
"command": "ctx"
}
Macos
{
"env": [],
"args": [
"server"
],
"command": "ctx"
}
Windows
{
"env": [],
"args": [
"/c",
"ctx",
"server"
],
"command": "cmd"
}
MCP-powered development toolkit that gives AI full access to your codebase
CTXis 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 toClaude 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 withClaude Desktopin 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.
- Key Features
- Quick Start
- How It Works
- Use Cases
- Full Documentation
- License
🛠 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.
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.
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"
Everything is configured throughcontext.yamlwith 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
curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-latest.sh | sh
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:
Or add manually to your MCP client config:
{ "mcpServers": { "ctx": { "command": "ctx", "args": [ "server" ] } } }
{ "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.
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
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
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.
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.
Generate context documents with recent git diffs, relevant source files, and architecture overview. Share with reviewers or AI assistants for thorough, informed reviews.
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.
Point CTX at your source code with modifiers likephp-signatureto extract API surfaces, then let AI generate comprehensive documentation.
For complete documentation, including all features and configuration options:
- 💡 Share and discover configurations and workflows
- 🛠️ Get help with setup and advanced usage
- 🚀 Showcase your AI development workflows
- 📢 First to know about new releases
This project is licensed under the MIT License.
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
next-devtools-mcp is a MCP server that provides Next.js development tools and utilities for AI coding assistants like Claude and Cursor.
A demonstration server for ActionKit, providing access to Slack actions via Claude Desktop.
MCP server that lets Claude Code agents delegate tasks to agents in other project directories, with parallel dispatch, sessions, and async jobs.
Anchor Browser (https://anchorbrowser.io) is secure infrastructure for computer-use agents — stealth cloud browsers, authentication, captcha bypass, and a hosted MCP server for Cursor, Claude, and Windsurf.
Open-source Claude Code plugin replacing Read/Grep/Edit/Bash with token-efficient versions. Independently benchmarked at 57% token reduction on real codebases. 40 MCP tools.
Connects Blender to Claude AI via the Model Context Protocol (MCP), enabling direct interaction and control for prompt-assisted 3D modeling, scene creation, and manipulation.
Context-optimized security plugin for Claude Code that builds architecture maps and redacts secrets.
Charon gives AI clients scoped, auditable access to Lethe memory. connect to Chatgpt or Claude to store memories locally.
Score CLAUDE.md/AGENTS.md, validate clarx-manifest.json, generate CI workflows, and pull repo scan findings into Cursor, Claude, or Grok.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





