Status: maintained; review after major changes.
TIA exposes an MCP Streamable HTTP endpoint in addition to stdio. This is the preferred transport for general HTTP clients because it supports session IDs, SSE streaming, and standard JSON-RPC requests.
Set either MCP_HTTP_ENABLED=1 or provide a port via MCP_HTTP_PORT.
MCP_HTTP_ENABLED=1 MCP_HTTP_PORT=7000 node src/mcp/servers/tia-mcp-server.jsDefaults:
- Host:
0.0.0.0(set withMCP_HTTP_HOST) - Path:
/mcp(set withMCP_HTTP_PATH) - Schema:
/mcp/schema
Fetch a lightweight schema for the HTTP transport:
curl http://localhost:7000/mcp/schemaThe schema describes the JSON-RPC envelope and required headers (Mcp-Session-Id).
See src/examples/mcp-http-client.js for a small client that connects over Streamable HTTP and calls tools.
- The HTTP endpoint follows the MCP Streamable HTTP specification (GET/POST/DELETE).
- Sessions are created on
initializeand tracked viaMcp-Session-Idheaders. - The endpoint is unauthenticated by default (per current project settings).
curl -s http://localhost:7000/mcp/schema | head -n 20