# 문맥 접근과 실행 권한은 다르다

> MCP resources/prompts/tools, tenant scope와 Sandbox 권한 모델

- Canonical: https://learning.reopt.ai/courses/enterprise-ai-platform/lessons/ep-m3-concept
- Language: ko-KR
- HTML: https://learning.reopt.ai/courses/enterprise-ai-platform/lessons/ep-m3-concept

---

[엔터프라이즈 AI 플랫폼 설계](/courses/enterprise-ai-platform) 3. MCP 데이터·Sandbox 실행 5 / 9

# 문맥 접근과 실행 권한은 다르다

MCP resources/prompts/tools, tenant scope와 Sandbox 권한 모델
개념 학습 45 XP 9분

MCP는 읽기 문맥을 resources, 반복 절차를 prompts, side effect capability를 tools로 분리합니다. 모든 내부 API를 tool로 노출하면 공격면이 커집니다. 파일·셸·코드·브라우저 실행은 짧은 수명의 Sandbox에서 filesystem·network·command를 제한합니다.
침해를 막는 것과 피해를 줄이는 것 prompt injection이 성공하지 않는다고 가정하지 않습니다. tenant-bound scope, OAuth, approval, network allowlist와 artifact 반출 규칙으로 갈 수 있는 범위를 좁힙니다.

| 표면 | 권한 모델 | 필수 통제 |
| MCP resource | 앱 주도 읽기 | tenant scope·최소 데이터 |
| MCP prompt | 검토된 절차 | 버전·owner·input schema |
| MCP tool | 모델 선택 실행 | OAuth·approval·audit |
| Sandbox | 격리된 실행 | workdir·network allowlist·TTL·artifact |

- 1 Capability 분류 read context·procedure·write execution을 분리합니다.

- 2 Tenant binding token과 server에서 tenant scope를 강제합니다.

- 3 Sandbox policy filesystem·network·command·credential을 최소화합니다.

- 4 Artifact 검증 결과물 provenance·malware·민감정보를 확인하고 반출합니다.

실무에 남길 기준

- 읽기 중심 지식은 resource로 두어 tool 공격면을 줄인다
- 파일·셸·브라우저 tool의 기본 실행 경계는 Sandbox다
- credential은 sandbox에 직접 넣지 않고 짧고 scoped된 broker 경로를 사용한다

[이전](/courses/enterprise-ai-platform/lessons/ep-m2-scenario) 이해했어요 · 계속

---

에이전트용 사이트 안내: https://learning.reopt.ai/llms.txt · 사이트맵: https://learning.reopt.ai/sitemap.xml · 문의: https://learning.reopt.ai/contact
