code2prompt

code2prompt

4.5

code2prompt is hosted online, so all tools can be tested directly either in theInspector tabor in theOnline Client.

If you are the rightful owner of code2prompt and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Code2Prompt is a tool that converts your codebase into a single LLM prompt, facilitating code analysis and generation.

get_context

Retrieve context from a codebase using code2prompt with the specified parameters. Args: path: Path to the codebase include_patterns: List of glob patterns for files to include exclude_patterns: List of glob patterns for files to exclude include_priority: Give priority to include patterns line_numbers: Add line numbers to code absolute_paths: Use absolute paths instead of relative paths full_directory_tree: List the full directory tree code_blocks: Wrap code in markdown code blocks follow_symlinks: Follow symbolic links include_hidden: Include hidden directories and files template: Custom Handlebars template encoding: Token encoding (cl100k, gpt2, p50k_base) Returns: Dictionary with the prompt and metadata

Try it

    Include Patterns

    No items yet. Use the button below to add some.

      Exclude Patterns

      No items yet. Use the button below to add some.

                            Result: