Generator

Developer tools

CTX: a tool that solves the context management gap when working with LLMs like ChatGPT or Claude. It helps developers organize and automatically collect information from their codebase into structured documents that can be easily shared with AI assistants.

Your AI app calls the Generator MCP server, which does the developer tools work and sends the result back to the chat.

About Generator

Generator is a community MCP server from context-hub, filed in our directory under developer tools. CTX: a tool that solves the context management gap when working with LLMs like ChatGPT or Claude. It helps developers organize and automatically collect information from their codebase into structured documents that can be easily shared with AI assistants.

At a glance

Publisher
context-hub (community)
Runs
See the README for setup
Written in
PHP
License
MIT
GitHub stars
345

How to set up Generator

  1. Follow the install steps in the Generator README; it is written in PHP, so have that toolchain ready.
  2. Check the Generator README for keys or settings; the registry lists none that Generator requires.
  3. Add Generator to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Generator tools to confirm the connection.
  5. Run one read-only task with Generator first, and keep your app asking before each tool call until the results look right.

Generator compared with similar servers

  • Cheap Ag by muaaz9329 has fewer GitHub stars than Generator (344 against 345); both are community servers, and both run locally.
  • Code Execution Mode by elusznik has more GitHub stars than Generator (346 against 345); both are community servers, and both run locally.
  • Funplay Unity by FunplayAI has fewer GitHub stars than Generator (340 against 345); both are community servers, and both run locally.

Before you connect Generator

  • Give Generator its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Generator tool call until you trust what it does with them.
  • Treat text that Generator fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Generator on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Generator

How marketing and sales teams put Generator to work, by company size. Pick the size closest to yours and start Generator on one use case.

Small business

  • A small business with a developer can use Generator to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Generator to explain and fix a marketing site issue without context switching between tools.
  • Generator runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Generator to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Generator to keep scripts and automations documented and versioned as they change.
  • Start Generator on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Generator with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Generator so web and marketing engineering share one reviewed way of working with AI.
  • Generator is a community server, so have security review the code and pin a version before Generator touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Generator README

From context-hub/generator on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

CTX: 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:

https://docs.ctxllm.com

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.

Questions about Generator

What is the Generator MCP server?

CTX: a tool that solves the context management gap when working with LLMs like ChatGPT or Claude. It helps developers organize and automatically collect information from their codebase into structured documents that can be easily shared with AI assistants. Generator is maintained by context-hub on GitHub at context-hub/generator, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Generator MCP server?

Generator doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (context-hub/generator). Like most servers, Generator ends with a command or URL you paste into your AI app's MCP config.

Does Generator need an API key?

The registry lists no required keys for Generator. Check the Generator README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Generator an official MCP server?

No. Generator is a community server maintained by context-hub. Community servers can be excellent; read the code and the open issues before you give Generator access to company data.

What license is Generator under?

Generator is released under the MIT license, according to its GitHub repository. The license covers the code of Generator; the service it connects to has its own terms.