---
title: "Open an SSE channel for server-initiated messages."
method: GET
path: "/mcp"
tags: ["MCP"]
---

# Open an SSE channel for server-initiated messages.

`GET /mcp`

## Request

- Base URL: `https://api.stacktr.ee`
- URL: `https://api.stacktr.ee/mcp`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.stacktr.ee/oauth/authorize`, token URL `https://api.stacktr.ee/oauth/token`, scopes: `sites:write`, `sites:read`)

## Response `200`

SSE stream.

- object: JSON object; see the endpoint description for fields.

## Other responses

- `401`: Missing or invalid credentials.

---

[API](https://skmtc.dev/stacktr/apis/stacktree-api.md) · [All operations](https://skmtc.dev/stacktr/apis/stacktree-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stacktr/apis/stacktree-api/revisions/5878cce46977?raw)
