Skip to main content
Glama

Codebase MCP

saveCodebase

Export a codebase to a file in XML, Markdown, or plain text. Customize output with file summaries, directory structures, line numbers, and patterns to include or exclude specific files.

Instructions

Save the codebase to a file using RepoMix

Input Schema

NameRequiredDescriptionDefault
cwdNoCurrent working directory of the codebase (defaults to current dir)
formatNoOutput format (xml, markdown, or plain)xml
ignorePatternsNoIgnore patterns (using glob patterns, comma-separated)
includeDirectoryStructureNoInclude directory structure
includeFileSummaryNoInclude summary of each file
includePatternsNoInclude patterns (using glob patterns, comma-separated)
outputFileNoOutput file pathrepomix-output.txt
removeCommentsNoRemove comments from the code
removeEmptyLinesNoRemove empty lines from the code
showLineNumbersNoShow line numbers

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cwd": { "description": "Current working directory of the codebase (defaults to current dir)", "type": "string" }, "format": { "default": "xml", "description": "Output format (xml, markdown, or plain)", "enum": [ "xml", "markdown", "plain" ], "type": "string" }, "ignorePatterns": { "description": "Ignore patterns (using glob patterns, comma-separated)", "type": "string" }, "includeDirectoryStructure": { "default": true, "description": "Include directory structure", "type": "boolean" }, "includeFileSummary": { "default": true, "description": "Include summary of each file", "type": "boolean" }, "includePatterns": { "description": "Include patterns (using glob patterns, comma-separated)", "type": "string" }, "outputFile": { "default": "repomix-output.txt", "description": "Output file path", "type": "string" }, "removeComments": { "default": false, "description": "Remove comments from the code", "type": "boolean" }, "removeEmptyLines": { "default": false, "description": "Remove empty lines from the code", "type": "boolean" }, "showLineNumbers": { "default": true, "description": "Show line numbers", "type": "boolean" } }, "type": "object" }
Install Server

Other Tools from Codebase MCP

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/DeDeveloper23/codebase-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server