MCP (Model Context Protocol) — Streamable HTTP
MCP JSON-RPC 2.0 엔드포인트.
인증: Authorization: Basic <base64(client_id:client_secret)> Token/API-key 전용 클라이언트는 동일 base64 값을 Authorization: Bearer <값> 으로 보내도 됩니다 (MCP 진입점에서 Basic 으로 정규화).
환경: 헤더가 없으면 계정의 레인에서 돈다 — 라이트 요금제는 real_test (REST 와 동일 카운터), 라이트, 스탠다드, PRO 또는 멀티계정 요금제는 production. X-MCP-Env-Scope 를 보내면 그 값이 우선한다. tools/list 결과 _meta["xdata.kr/lane"] 가 실제 레인을 알려 준다.
지원 메서드: initialize, tools/list, tools/call, ping
tools/call Option A (JSON): default Accept — no progress events tools/call Option B (SSE, recommended for products): Accept: text/event-stream — notifications/progress + keepalive
Request
- Base URL: https://api.xdata.kr (the document declares no server; this is the origin it was published from)
- URL: https://api.xdata.kr/mcp
- Auth: one of:
- HTTP basic
- OAuth 2 (authorization code, authorization URL https://api.xdata.kr/oauth/authorize, token URL https://api.xdata.kr/oauth/token)
Response
JSON-RPC 2.0 봉투. Accept: text/event-stream 으로 협상하면 같은 200 이 SSE 스트림이고, 이 모양은 그 스트림의 마지막 data: 프레임이다 (result 또는 error 를 든 프레임). 그 앞의 프레임은 모양이 다르다 - method: notifications/progress 와 params 를 들고 result·error·id 가 없으며, keepalive 는 : 로 시작하는 주석 줄이라 JSON 이 아니다.
Changes
No recorded changes to this operation across all 1 revision of this API.