code2promptServer

mufeedvh
GitHub
code generationLLM promptscode analysis

Loading subscription status...

💡 Description

code2prompt is a code extraction tool that simplifies the process of creating prompts for LLMs, especially focused on code analysis, generation, and other tasks. It traverses directories to build a tree structure and collect relevant information about each file, allowing seamless integration into other applications.

📝 JSON Entries

{
  "mcpServers": [
    {
      "code2prompt": {
        "env": {},
        "args": [],
        "command": "code2prompt"
      }
    }
  ]
}

🛠️ Tools

cargoHomebrewpip

Features

  • Automatic code processing
  • Smart filtering using glob patterns
  • Flexible templates with Handlebars
  • Token tracking to stay within LLM context limits
  • Git integration for including diffs and logs
  • Enhanced developer experience

💬 Example Queries

  • Generate prompts for analyzing the codebase
  • Create a structured prompt for code generation tasks