add_git_repository
Add a Git repository to the MCP Docs RAG Server for document querying with optional sparse checkout. Specify a repository URL, customize the document name, and select a subdirectory for targeted data retrieval.
Instructions
Add a git repository to the docs directory with optional sparse checkout. Please do not use 'docs' in the document name.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
document_name | No | Optional: Custom name for the document (defaults to repository name). Use a simple, descriptive name without '-docs' suffix. For example, use 'react' instead of 'react-docs'. | |
repository_url | Yes | URL of the git repository to clone | |
subdirectory | No | Optional: Specific subdirectory to sparse checkout (e.g. 'path/to/specific/dir'). This uses Git's sparse-checkout feature to only download the specified directory. |