code2prompt

mufeedvh/code2prompt

4.4

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.

Try code2prompt with chat:

MCPHub score:4.42

Has a README

Github repo has a README.md.

Has a License

Github repo has license info.

Server can be inspected

View server inspector

Server schema can be extracted

Can get at lease one tool info from the README or server.

Online hosted on MCPHub

Can be automatically deployed by MCPHub.

Has social accounts

Has X or Discord account.

Claimed by the author or certified by MCPHub

If you are the author, claim authorship

AI Evaluation Report
Total Score: 3/10

The agent consistently failed to perform the requested operations due to issues with accessing the specified directory path. Despite multiple attempts, the agent was unable to generate a valid output, indicating a potential limitation in handling directory paths or file system access. The agent's responses suggest that it relies heavily on the correctness and accessibility of the input path, which may not always be feasible in testing scenarios. This highlights a significant weakness in its ability to handle errors or provide alternative solutions when encountering inaccessible paths. The agent's strength lies in its detailed error messages, which guide the user to check the path and permissions, but it lacks robustness in overcoming such obstacles.

  • Test case 1
    Score: 6/10
    Perform the operation of generating a structured prompt for code analysis using the Code2Prompt tool on a codebase located at '/path/to/project'. Include only Python and JavaScript files, exclude the 'tests' and 'docs' directories, add line numbers to the code, and use the 'analyze-code.j2' template for formatting. Save the output to 'code_analysis.md'.

    No valid answer is generated due to invalid input. The tool encountered an error while trying to traverse the specified directory path '/path/to/project'. Please ensure that the path is correct and accessible. If the path is valid, double-check the permissions or the existence of the specified directories.

  • Test case 2
    Score: 6/10
    Perform the operation of analyzing the codebase located at '/path/to/project' using the Code2Prompt tool to generate a summary of file extensions, including their counts, and provide a comma-separated list of these extensions.

    No valid answer is generated due to invalid input. The tool encountered an error while attempting to traverse the specified directory. Please ensure that the directory '/path/to/project' exists and is accessible.

  • Test case 3
    Score: 6/10
    Perform the operation of generating a structured prompt for code analysis using the Code2Prompt tool on a codebase located at '/path/to/project'. Include only Python and JavaScript files, exclude the 'tests' and 'docs' directories, add line numbers to the code, and use the 'analyze-code.j2' template for formatting. Save the output to 'code_analysis.md'.

    No valid answer is generated due to invalid input. The tool encountered an error while trying to traverse the directory at the specified path '/path/to/project'. Please ensure that the path is correct and accessible, and try again. This suggests that there may be an issue with the directory path provided or its accessibility.

  • Test case 4
    Score: 2/10
    Perform the operation of generating a structured prompt for code analysis using the Code2Prompt tool on a codebase located at '/path/to/project'. Include only Python and JavaScript files, exclude the 'tests' and 'docs' directories, add line numbers to the code, and use the 'analyze-code.j2' template for formatting. Save the output to 'code_analysis.md'.

    No valid answer is generated due to tool malfunction. The tool returned an error: 'Failed to generate prompt: Failed to traverse directory'. This suggests an issue with accessing the specified directory or files, indicating a potential problem with the tool's ability to access the file system.

  • Test case 5
    Score: 6/10
    Perform the operation of generating a structured prompt for code analysis using the Code2Prompt tool on a codebase located at '/path/to/project'. Include only Python and JavaScript files, exclude the 'tests' and 'docs' directories, add line numbers to the code, and use the 'analyze-code.j2' template for formatting. Save the output to 'code_analysis.md'.

    No valid answer is generated due to invalid input. The tool encountered an error while trying to traverse the specified directory. This could be due to the path being incorrect or inaccessible. Please verify the path '/path/to/project' to ensure it exists and is readable.