Skip to main content
Glama

Codebase MCP

getCodebase

Retrieve and analyze entire codebases as single text output, with options to include summaries, directory structures, and custom formatting like XML or Markdown. Removes comments or empty lines, filters files by patterns, and displays line numbers.

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" }

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