Skip to main content
Glama

CodeCompass MCP

MIT License
1
  • Linux
  • Apple

get_file_content

Retrieve and process file content from GitHub repositories with batch processing, smart truncation, and metadata extraction. Supports multiple formats, concurrent retrieval, and customizable limits.

Instructions

📁 Retrieve content of specific files with smart truncation and batch processing capabilities.

⚠️ FEATURES: • Batch processing with concurrent file retrieval • Automatic file validation and security checks • Rich metadata extraction (file type, language, size, line count) • Configurable processing limits and error handling • Support for multiple file formats with type detection

Input Schema

NameRequiredDescriptionDefault
file_pathsYesPaths to files to retrieve (supports batch processing)
optionsNo
urlYesGitHub repository URL

Input Schema (JSON Schema)

{ "properties": { "file_paths": { "description": "Paths to files to retrieve (supports batch processing)", "items": { "type": "string" }, "type": "array" }, "options": { "properties": { "continue_on_error": { "default": true, "description": "Continue processing other files if one fails", "type": "boolean" }, "exclude_patterns": { "description": "Exclude files matching these regex patterns", "items": { "type": "string" }, "type": "array" }, "file_extensions": { "description": "Only process files with these extensions (e.g., [\".js\", \".ts\"])", "items": { "type": "string" }, "type": "array" }, "format": { "default": "raw", "description": "Format for file content", "enum": [ "raw", "parsed", "summary" ], "type": "string" }, "include_metadata": { "default": false, "description": "Include file metadata (size, modified date, etc.)", "type": "boolean" }, "max_concurrent": { "default": 5, "description": "Maximum concurrent file processing", "maximum": 20, "minimum": 1, "type": "number" }, "max_size": { "default": 100000, "description": "Maximum file size in bytes", "type": "number" }, "truncate_large_files": { "default": true, "description": "Truncate files larger than max_size", "type": "boolean" } }, "type": "object" }, "url": { "description": "GitHub repository URL", "type": "string" } }, "required": [ "url", "file_paths" ], "type": "object" }

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/TheAlchemist6/codecompass-mcp'

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