ikman-gateway
ikman-gateway is a RESTful API gateway and headless Model Context Protocol (MCP) server for the Sri Lankan classifieds platform ikman.lk. Built with NestJS 10, Fastify/Express and TypeScript 5, it provides capabilities such as searching ads, retrieving ad details, listing categories and listing locations, and supports connecting MCP clients via SSE or Stdio transport. It converts human-readable slugs into the platform's internal numeric IDs through an in-memory category mapping, and sets TTL caches of 2 minutes and 1 hour for search queries and category/location data respectively. The project is deployed in the Railway Singapore region and provides online API documentation, an MCP SSE endpoint and a health check endpoint.