Gemini CLI를 Performance Hub에 연결
이 페이지의 내용
안내 사항은 2026년 11월 26일(AEST) 기준입니다. 공급업체의 MCP 지원은 자주 변경되므로, 다른 점이 있다면 링크된 출처를 기준으로 확인하세요.
Gemini CLI는 settings.json에 MCP 서버를 저장하며 gemini mcp add를 사용하여 원격 Streamable HTTP 서버를 추가할 수 있습니다.
서버 세부 정보
https://app.performancehub.co/mcp
CLI로 추가
export PH_MCP_API_KEY='<YOUR_TOKEN>'
gemini mcp add --scope user --transport http \
--header "Authorization: Bearer ${PH_MCP_API_KEY}" \
performance-hub https://app.performancehub.co/mcp
--transport http는 Streamable HTTP를 선택합니다.--scope user는~/.gemini/settings.json에 기록합니다(모든 프로젝트). 기본 범위는 프로젝트(.gemini/settings.json)입니다.
대체 헤더:
gemini mcp add --scope user --transport http \
--header "x-mcp-api-key: ${PH_MCP_API_KEY}" \
performance-hub https://app.performancehub.co/mcp
settings.json 구조
{
"mcpServers": {
"performance-hub": {
"httpUrl": "https://app.performancehub.co/mcp",
"headers": {
"Authorization": "Bearer $PH_MCP_API_KEY"
}
}
}
}
Gemini CLI는 키별로 전송 방식을 선택합니다. Streamable HTTP의 경우 httpUrl, 레거시 SSE의 경우 url, stdio의 경우 command를 사용합니다. Performance Hub에는 httpUrl을 사용하세요.
OAuth 옵션
OAuth를 지원하는 서버의 경우, 헤더를 생략하고 Gemini CLI가 첫 사용 시 플로를 감지하고 완료하도록 할 수 있습니다.
확인
gemini mcp list
Gemini CLI를 시작하고 계정에서 사용할 수 있는 Performance Hub 도구를 나열해 달라고 요청하세요.
출처
- Gemini CLI - MCP 서버: https://geminicli.com/docs/tools/mcp-server/
- Gemini CLI 출처 문서: https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md
- Performance Hub MCP: https://app.performancehub.co/mcp