> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prismgateway.io/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP

# Model Context Protocol

ใช้การส่งผ่านแบบ **stdio** (v1) รัน:

```bash theme={null}
PRISM_FACADE_URL=https://api.prismgateway.io \
PRISM_API_KEY=sk-prism-... \
bun run packages/mcp-server/src/index.ts
```

เครื่องมือ `chat_completion` ทำงานเทียบเท่า `POST /v1/chat/completions` โฮสต์ MCP ใช้ Prism key identity เดียวกับ HTTP และเรียก Facade แทนการเรียก upstream providers โดยตรง

Key ยังอยู่ภายใต้ model, trial, credit, budget และ rate-limit policy เดียวกับ
HTTP request ให้เก็บ key ใน environment ของ MCP host ห้ามใส่ใน tool arguments
หรือ prompt

[English version](/mcp-server)
