Transport Configuration
MCP Streamable HTTP transport mechanics, POST/GET/DELETE method semantics, SSE streaming, Nginx proxy settings, and SDK client setup.
Streamable HTTP Method Semantics
Taicket MCP implements the official MCP Streamable HTTP transport specification using @modelcontextprotocol/sdk. Legacy HTTP+SSE dual-endpoint transport (/sse + /messages) is not used.
| HTTP Method | Purpose | Expected Status / Content-Type |
|---|---|---|
| POST /mcp | Send JSON-RPC 2.0 requests (initialize, tools/list, tools/call, resources/*, prompts/*, ping) or notifications | 200 OK (application/json or text/event-stream) for requests; 202 Accepted for notifications |
| GET /mcp | Open an optional Server-Sent Events (SSE) stream for server-to-client notifications on an established session | 200 OK (text/event-stream) or 405 if stateless mode is active |
| DELETE /mcp | Explicitly terminate an active MCP transport session identified by Mcp-Session-Id | 200 OK or 204 No Content |
Session Handling & Per-Request Authentication
Every HTTP call to POST /mcp, GET /mcp, and DELETE /mcp is independently authenticated via Authorization: Bearer <token>. A valid Mcp-Session-Id never substitutes for a valid, unrevoked Bearer token.
- Stateless request support:: Clients that invoke tool calls in single request/response mode receive direct application/json JSON-RPC responses without needing to hold an open SSE socket.
- Stateful session binding:: When a client establishes a session during initialize, Taicket binds the Mcp-Session-Id to the authenticated userId and grantId. Presenting a session ID with a different user token is rejected immediately.
- Reverse proxy streaming:: Nginx configures proxy_buffering off, proxy_cache off, proxy_http_version 1.1, Connection "", and 300-second read/send timeouts on location = /mcp so SSE frames flush immediately without buffering stalls.
Connecting with the Official TypeScript MCP SDK
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
const endpoint = new URL('https://mcp.taicket.xyz/mcp');
const bearerToken = process.env.TAICKET_MCP_TOKEN;
if (!bearerToken) {
throw new Error('Set TAICKET_MCP_TOKEN with an OAuth access token or scoped PAT.');
}
const transport = new StreamableHTTPClientTransport(endpoint, {
requestInit: {
headers: {
Authorization: `Bearer ${bearerToken}`,
},
},
});
const client = new Client({
name: 'taicket-ops-client',
version: '1.0.0',
});
await client.connect(transport);
const { tools } = await client.listTools();
console.log(`Connected to Taicket MCP with ${tools.length} tools available.`);Production client compatibility
Claude, ChatGPT, Antigravity, Antigravity 2.0, and Gemini natively negotiate Streamable HTTP and OAuth 2.1 when configured with https://mcp.taicket.xyz/mcp. See Protocol Compatibility for the full client matrix.