CLI & MCP for GitHits - The Code Context Layer for AI Coding Agents
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add githits -- npx -y githits~/.codex/config.toml
[mcp_servers.githits]
command = "npx"
args = ["-y", "githits"]
# codex mcp add githits -- npx -y githits~/.cursor/mcp.json
{
"mcpServers": {
"githits": {
"command": "npx",
"args": [
"-y",
"githits"
]
}
}
}.vscode/mcp.json
{
"servers": {
"githits": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"githits"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"githits": {
"command": "npx",
"args": [
"-y",
"githits"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"githits": {
"command": "npx",
"args": [
"-y",
"githits"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"githits": {
"command": "npx",
"args": [
"-y",
"githits"
]
}
}
}Remote
claude mcp add --transport http githits https://mcp.githits.com~/.codex/config.toml
[mcp_servers.githits]
url = "https://mcp.githits.com"
# codex mcp add githits --url https://mcp.githits.com~/.cursor/mcp.json
{
"mcpServers": {
"githits": {
"url": "https://mcp.githits.com"
}
}
}.vscode/mcp.json
{
"servers": {
"githits": {
"type": "http",
"url": "https://mcp.githits.com"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"githits": {
"httpUrl": "https://mcp.githits.com"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"githits": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.githits.com"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"githits": {
"url": "https://mcp.githits.com"
}
}
}