Repo Context Mcp
About
Repo Context MCP provides programmatic access to repository contents for integrations and automation. It can list directories/files, read any file, return the README, perform TypeScript type analysis (via ts-morph), and search for OpenAPI/Swagger spec files. Supports local repo p
Details
- Author
- pablo-peek
- Downloads
- 340
- Categories
- Developer Tools, API, Knowledge Base
Jump to
- Set active repository path via setRepoPath
- List files and folders with getFiles
- Read file contents using getFileContent
- Return root README.md with getReadme
- Analyze TypeScript types with analyzeFileTypes (simple) and analyzeFileTypesAdvanced (ts-morph)
- Fetch files from GitHub using getGithubFileContent (requires GITHUB_TOKEN)
- Search for OpenAPI/Swagger specs with getSwaggerSpec
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Repo Context McpCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Set environment variables GITHUB_TOKEN and GITHUB_NAME (do not store tokens in config files). Then invoke the server and use its tools such as setRepoPath, getFiles, getFileContent, getReadme, analyzeFileTypes, analyzeFileTypesAdvanced, getGithubFileContent, and getSwaggerSpec.
setRepoPath
Change the active repository path
getFiles
List files and folders at the given path in the active repo
getFileContent
Read the content of a file in the active repo
getReadme
Read the README.md file from the active repo
analyzeFileTypes
Analyze a file and return exported functions and the type of their parameters (if available)
analyzeFileTypesAdvanced
Analyze a file using ts-morph and return exported functions and the type of their parameters (resolving local and imported types)
getGithubFileContent
Read the content of a file from a (private) GitHub repository using the GitHub API.
getSwaggerSpec
Read the Swagger/OpenAPI specification file (swagger.json, openapi.json, openapi.yaml, etc.) from the active repo.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"repo context mcp": {
"repo-context": {
"type": "stdio",
"command": "npx",
"args": [
"@pablopeek/repo-context-mcp"
],
"env": {
"ENVIRONMENT": "local",
"GITHUB_TOKEN": "<SET_GITHUB_TOKEN>",
"GITHUB_NAME": "<SET_GITHUB_NAME>"
}
}
}
}
}
McpServers
{
"repo-context": {
"type": "stdio",
"command": "npx",
"args": [
"@pablopeek/repo-context-mcp"
],
"env": {
"ENVIRONMENT": "local",
"GITHUB_TOKEN": "<SET_GITHUB_TOKEN>",
"GITHUB_NAME": "<SET_GITHUB_NAME>"
}
}
}
Repo Context MCP
--- A programmatic MCP server to explore repositories (local or GitHub). List files, read files, return README, analyze TypeScript types (ts-morph) and locate OpenAPI/Swagger specs.Quick start
- Set env var (never store tokens in config): export GITHUB_TOKEN="<SET_YOUR_TOKEN>" export GITHUB_NAME="<SET_YOUR_NAME>"Available tools
setRepoPath — set active repo path Payload: { "path": "/absolute/path/to/repo" } --- getFiles — list files/folders Payload: { "path": "optional/relative/path" } --- getFileContent — read file contents Payload: { "file": "relative/path/to/file.ext" } --- getReadme — return README.md (root) --- analyzeFileTypes — simple exported function scan Payload: { "file": "src/foo.ts" } --- analyzeFileTypesAdvanced — ts-morph resolution (may require project deps) --- getGithubFileContent — read file from GitHub (uses GITHUB_TOKEN) Payload: { "owner":"org","repo":"name","path":"path/to/file","ref":"branch?" } --- getSwaggerSpec — search common locations for OpenAPI/Swagger specs --- Contact Author: pablo-peek — repo: Repo Context MCPSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





