본문 바로가기
C.W.K.
Stream
Lesson 05 of 10 · published

Gemini에서 MCP 쓰기

~14 min · gemini, mcp, integrations

Level 0🌱 입문자
0 XP0/70 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

같은 MCP 서버를 Gemini에서도 그대로 쓴다

Gemini CLI도 MCP를 지원해. gemini mcp add로 서버를 등록하고 stdio 또는 HTTP로 연결하며 사용자나 프로젝트 범위를 정해. Sentry, GitHub, Notion, Slack, Postgres 같은 서버는 Claude Code와 Codex에서 쓰던 것과 같아.

이식성이 MCP의 핵심이야. 한 회사의 CLI를 위해 연결을 다시 만들지 않고 같은 서버를 여러 에이전트가 공유해. 다른 CLI에서 이미 쓰는 서버 둘을 Gemini에 붙여 같은 지시를 실행해보면 표준에 투자한 보상을 바로 확인할 수 있어.

Code

서버 세 개 추가하고 사용하기·bash
# HTTP servers
gemini mcp add --transport http github  https://api.githubcopilot.com/mcp/
gemini mcp add --transport http sentry  https://mcp.sentry.dev/mcp

# Local stdio server
gemini mcp add --transport stdio db -- npx -y @bytebase/dbhub \
  --dsn "postgresql://readonly:pw@localhost:5432/analytics"

# OAuth from inside the REPL
gemini
> /mcp

# List
gemini mcp list
프로젝트 전용 .mcp.json·json
{
  "mcpServers": {
    "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" },
    "sentry": { "type": "http", "url": "https://mcp.sentry.dev/mcp" },
    "db": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
    }
  }
}

Exercise

다른 CLI에 이미 설정한 MCP 서버 2개를 Gemini에도 추가해. 같은 방식으로 작동하는지 확인하고, 도구를 바꿔도 설정을 재사용해서 얻는 이점을 적어.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.