Show HN: One async PHP process serving web, REST API, and MCP for AI agents (pascualmg.dev)

🤖 AI Summary
A new open-source project called "Cohete" has been launched, showcasing an innovative single-process architecture for serving a blog, REST API, and the Model Context Protocol (MCP) for AI agents all in one PHP instance. This setup eliminates the need for traditional web servers like nginx or Apache, significantly simplifying deployment by using ReactPHP's asynchronous event loop, which allows for non-blocking I/O and efficient handling of thousands of concurrent connections. The entire stack operates smoothly on modest hardware, including a Raspberry Pi, and utilizes Cloudflare for TLS termination and DDoS protection. This approach is significant for the AI/ML community as it streamlines the integration of AI agents with web applications through a standardized API and real-time communication via Server-Sent Events (SSE). By leveraging MCP, AI tools can be discovered dynamically and utilized without complex setups, which enhances productivity and accessibility for developers. Cohete exemplifies a modern take on software architecture, emphasizing simplicity while supporting advanced AI functionalities, all through an intuitive design that fosters easier development and maintenance. This could inspire more developers to adopt similar technologies for building robust, AI-friendly applications.
Loading comments...
loading comments...