@felores/kie-ai-mcp-server@3.5.0
Adds a remote Streamable HTTP transport (MCP spec 2025-11-25) alongside the default stdio path. Reimplements the capability from closed PR #3 against the current monorepo.
Added
- Streamable HTTP transport — opt in with
MCP_TRANSPORT=httpor--http; stdio stays the default. Single/mcpendpoint (POST + GET/SSE + DELETE), stateful sessions keyed byMcp-Session-Id(each session gets its own MCPServerover a shared Kie.ai client + task DB). - Health endpoint
GET /health→{status, transport, sessions, version}, unauthenticated and exempt from Origin/DNS-rebind checks for container probes. - Bearer-token auth (
KIE_MCP_HTTP_TOKEN) and DNS-rebinding protection (MCP_ALLOWED_HOSTS, required when binding beyond loopback; the server fails fast otherwise). New env:MCP_HTTP_HOST(default127.0.0.1),MCP_HTTP_PORT(default3000). - Deployment —
packages/mcp/Dockerfile(multi-stage, bundled, non-rootmcpuser,HEALTHCHECK), root.dockerignore,docker-compose.coolify.yml, anddocs/DEPLOY_HTTP.md. - README documents the feature and its benefits in English and Spanish.
Notes
- stdio remains the default; the
@felores/kie-clipackage is unaffected. - Out of scope for now: OAuth 2.0 (RFC 9728) and
eventStorestream resumability — the transport supports adding both later.
See CHANGELOG.md and docs/DEPLOY_HTTP.md.
npm: npx -y @felores/kie-ai-mcp-server