get-repo-context
Fetch all files from a GitHub repository to provide context, allowing customization by file extensions, paths to exclude, and a maximum file count.
Instructions
Get all files from a GitHub repository to use as context
Input Schema
Name | Required | Description | Default |
---|---|---|---|
excludePaths | No | Paths to exclude (e.g., ['node_modules', 'dist']) | |
fileExtensions | No | File extensions to include (e.g., ['js', 'ts', 'md']) | |
maxFiles | No | Maximum number of files to include (default: 50) | |
owner | Yes | GitHub repository owner/organization name | |
repo | Yes | GitHub repository name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"excludePaths": {
"description": "Paths to exclude (e.g., ['node_modules', 'dist'])",
"items": {
"type": "string"
},
"type": "array"
},
"fileExtensions": {
"description": "File extensions to include (e.g., ['js', 'ts', 'md'])",
"items": {
"type": "string"
},
"type": "array"
},
"maxFiles": {
"description": "Maximum number of files to include (default: 50)",
"type": "number"
},
"owner": {
"description": "GitHub repository owner/organization name",
"type": "string"
},
"repo": {
"description": "GitHub repository name",
"type": "string"
}
},
"required": [
"owner",
"repo"
],
"type": "object"
}