CLI & MCP for GitHits - The Code Context Layer for AI Coding Agents
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
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"
]
}
}
}远程托管
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"
}
}
}