Skip to main content
Glama

Codebase MCP

getCodebase

Retrieve and analyze entire codebases in XML, Markdown, or plain text. Customize output with file summaries, directory structures, and filtering options for improved code understanding.

Instructions

Retrieve the entire codebase as a single text output 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)
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" }, "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