C.W.K.
Stream
Lesson 04 of 04 · published

언제 뭐 쓸까

~18 min · decision, heuristics, architecture

Level 0호기심 많은 독자
0 XP0/48 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete

지금까지 ecosystem 사용으로 다듬은 한 짧은 휴리스틱. 새 integration 마다 위에서 아래로 걷기 — 답이 거의 항상 깔끔히 떨어져.

  1. 소비자가 너 control 하는 단일, bounded 한 LLM-driven app? → 그 provider 의 function calling. 단일-app 우려에 추가 protocol surface 도입 X.
  2. 같은 capability 가 — 너 control 안 하는 — 여러 AI product 도와?MCP server 작성. 추가 product 마다 코드 변경 대신 config 변경.
  3. 비-AI client (브라우저, 모바일 앱, 스크립트) 도 소비?REST/OpenAPI 도 노출; MCP server 가 감싸는 underlying API 로, 또는 thin MCP layer 가 거기서 도출되는 canonical contract 로.
  4. Producer 가 — 소비자가 빨리 반응해야 할 — event push?webhook 추가. 그 event 도 같은 OpenAPI 문서에 묘사 가능.
  5. Operation 이 느리고 소비자가 별도 URL 없이 in-protocol asynchrony 원함?MCP async task.

더 깊은 교훈은 합성. 맞는 답이 'MCP 또는 REST' 인 경우 드물어; 'REST 가 underlying truth, MCP 가 agent-친화 facade, function calling 이 모델 호출 envelope, webhook 이 event 방향, async task 가 느린 경로' 야. 각 contract 가 한 조각 해결. Stack 이 정상.

Code

넷 다 stack 하는 진짜 architecture·text
[Browser/mobile/CLI clients]
        │  REST + JSON  (OpenAPI document)
        ▼
[Your service]  ──── webhook events ────►  [Customer endpoints]
        ▲
        │  REST internal
[MCP server (thin facade)]
        ▲  protocol (sync calls + async tasks)
        │
[MCP host (Claude Desktop, IDE, custom)]
        ▲  function calling envelope
[LLM provider API]

External links

Exercise

Ship 하는 진짜 product 의 위 architecture 다이어그램 스케치. 모든 line 에 말하는 contract 라벨. 라벨이 — 어디 under-invest (MCP layer 가 시장 unlock) 와 어디 over-invest (사람 또는 비-AI 소비자 안 쓰는 REST layer) 했는지 — 노출.

Progress

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

댓글 0

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

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