CopilotKit: CopilotKit is a React framework for embedding AI copilots, chatbots, and in-app agents directly into web applications. It provides UI components (chat interface, sidebar, textarea) and backend infrastructure for building agentic frontends — where AI can read and modify application state, take actions, and render generative UI. Supports LangChain, LangGraph, CrewAI, and custom agent backends.; php-sdk: The MCP PHP SDK is the official toolkit for implementing Model Context Protocol servers and clients in PHP. It offers a framework-agnostic API, allowing developers to expose PHP application functionality to AI agents or integrate with MCP servers.
Adding a context-aware AI copilot to a SaaS product that understands app state
Exposing existing PHP application functionalities (e.g., database access, custom logic) as callable tools or readable resources for AI agents.