Self-hosted server for live library documentation, code audits and best-practice snippets.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add groundtruth --env GT_GITHUB_TOKEN='<GT_GITHUB_TOKEN>' -- npx -y @groundtruth-mcp/gt-mcp~/.codex/config.toml
[mcp_servers.groundtruth]
command = "npx"
args = ["-y", "@groundtruth-mcp/gt-mcp"]
env = { GT_GITHUB_TOKEN = "<GT_GITHUB_TOKEN>" }
# codex mcp add groundtruth --env GT_GITHUB_TOKEN='<GT_GITHUB_TOKEN>' -- npx -y @groundtruth-mcp/gt-mcp~/.cursor/mcp.json
{
"mcpServers": {
"groundtruth": {
"command": "npx",
"args": [
"-y",
"@groundtruth-mcp/gt-mcp"
],
"env": {
"GT_GITHUB_TOKEN": "<GT_GITHUB_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"groundtruth": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@groundtruth-mcp/gt-mcp"
],
"env": {
"GT_GITHUB_TOKEN": "<GT_GITHUB_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"groundtruth": {
"command": "npx",
"args": [
"-y",
"@groundtruth-mcp/gt-mcp"
],
"env": {
"GT_GITHUB_TOKEN": "<GT_GITHUB_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"groundtruth": {
"command": "npx",
"args": [
"-y",
"@groundtruth-mcp/gt-mcp"
],
"env": {
"GT_GITHUB_TOKEN": "<GT_GITHUB_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"groundtruth": {
"command": "npx",
"args": [
"-y",
"@groundtruth-mcp/gt-mcp"
],
"env": {
"GT_GITHUB_TOKEN": "<GT_GITHUB_TOKEN>"
}
}
}
}需要的环境变量
GT_GITHUB_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。