← 블로그 목록
가이드2026-05-27

Cursor agent 에 한국 070 번호 붙이기 — MCP HTTP 로 원격 전화 tool

Cursor agent 에 한국 070 번호 붙이기 — MCP HTTP 로 원격 전화 tool

Cursor IDE 의 background agent 는 클라우드(원격 컨테이너)에서 돈다. 그래서 npx call-me-mcp 같은 stdio MCP 서버는 못 쓴다(로컬 프로세스 spawn 불가). 대신 MCP HTTP 서버 로 ClawOps 070 전화 기능을 붙일 수 있다.

0. 사전 준비

1. ClawOps MCP HTTP 서버 띄우기

Python 예시 (mcp_server.py):

from clawops import ClawOps
from clawops.agent.mcp import ClawOpsMCPServer

server = ClawOpsMCPServer(
    transport="http",
    port=8080,
    auth_token="your-shared-secret-here",     # Cursor 에 동일 토큰 박을 것
    tools=["make_call", "make_call_with_prompt", "send_sms", "get_call_summary"],
)
server.run()
export CLAWOPS_API_KEY="ck_live_..."
python mcp_server.py

Vercel Functions 로 배포:

# vercel.json
{
  "rewrites": [{ "source": "/mcp/(.*)", "destination": "/api/mcp" }]
}

# api/mcp.py (Vercel Python)
from clawops.agent.mcp import create_mcp_handler
handler = create_mcp_handler(
    auth_token_env="MCP_AUTH_TOKEN",
    clawops_api_key_env="CLAWOPS_API_KEY",
)

Vercel env: MCP_AUTH_TOKEN=shared-secret, CLAWOPS_API_KEY=ck_live_...

배포 후 endpoint: https://your-mcp.vercel.app/mcp

2. Cursor MCP 설정 — HTTP 서버 등록

Cursor Settings → MCP Servers → Add HTTP server:

{
  "mcpServers": {
    "call-me": {
      "url": "https://your-mcp.vercel.app/mcp",
      "headers": {
        "Authorization": "Bearer shared-secret"
      }
    }
  }
}

Cursor 재시작. background agent 가 새 task 받을 때 call-me tool 4개를 인식.

3. 사용 예시 — Background agent 가 전화 거는 시나리오

케이스 A. PR 리뷰 후 알림

.cursor/rules (또는 task prompt) 에:

이 PR 리뷰가 끝나면 highrisk 이슈 발견시 010-1234-5678 한테 전화로 알려.
- 시스템 프롬프트: "PR 검토 결과 보안 이슈가 발견되어 알려드립니다. {이슈 요약}"
- 발견 안 되면 SMS 로 "PR OK" 만.

Background agent 가 make_call_with_prompt 호출시 system_prompt 에 이슈 요약을 fill-in.

케이스 B. 배포 결과 음성 보고

배포 완료되면 002-1234-5678 한테 전화해서 다음을 음성으로 보고:
- 배포 환경 (prod/staging)
- 변경된 파일 수
- 실패한 테스트 있으면 그 수
- 전체 소요 시간

케이스 C. 사용자 인터뷰 일정 자동 잡기

candidates.csv 의 30명한테 전화해서 인터뷰 약속 잡고 결과 csv 에 기록.
시간 후보: 다음주 화/수/목 오후 2-5시.
야간 발신 금지. 5분 안에 마무리.

Cursor agent 가 30개 make_call_with_prompt 순차 호출, 각 결과를 csv update.

4. MCP stdio vs HTTP — 언제 어떤 걸 쓰나

상황추천 transport
Claude Desktop, Claude Code (로컬)stdio (npx call-me-mcp)
Codex CLI (로컬)stdio
Cursor IDE (foreground agent, 로컬)stdio 가능
Cursor background agent (원격 컨테이너)HTTP
ChatGPT custom actionHTTP (Webhook)
Lovable / Bolt / V0 agentHTTP
CI/CD runnerHTTP

원격에서 돌거나 stdio spawn 불가하면 HTTP. 로컬은 stdio 가 셋업 더 간단.

5. 보안 — auth_token 필수

MCP HTTP endpoint 가 public 이면 누구나 ClawOps 잔액으로 전화 걸 수 있다. 반드시 Authorization: Bearer <token> 헤더 검증.

권장:

  • token 은 vault·env 에. git 에 박지 말 것
  • 통화 단가 cap 설정 (MAX_CALLS_PER_DAY=100 같이 환경변수)
  • 발신 가능 prefix 화이트리스트 (ALLOWED_PREFIXES=010,02,031,...)

6. 작동 원리

Cursor background agent (원격 컨테이너)
   ↓ HTTPS MCP request
your-mcp.vercel.app  (또는 fly.io 등)
   ↓ ClawOps SDK
api.claw-ops.com (GCP 서울)
   ↓ SIP/2.0
한국 070 게이트웨이
   ↓
대상 휴대폰

stdio 와 비교해 1-hop 추가 (Vercel/Fly 무료 plan latency ~50ms 추가). 통화 자체 latency 에는 영향 미미.

7. 비용

  • ClawOps: Trial 무료, Individual ₩19,000/월
  • Vercel 호스팅: 무료 plan (월 100GB 데이터 transfer)
  • 추가 비용 없음

다음 단계

관련 글 더 보기

ClawOps AI 전화 API로 시작하기

070 번호 발급부터 AI 음성 통화까지, REST API 몇 줄이면 됩니다.