
henjii sse server
一个用于与 Henjii WordPress 插件实时通信的 Server-Sent Events (SSE) 服务器。
Repository Info
About This Server
一个用于与 Henjii WordPress 插件实时通信的 Server-Sent Events (SSE) 服务器。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Henjii SSE Server
A Server-Sent Events (SSE) server for real-time communication with the Henjii WordPress plugin.
Features
- Real-time event broadcasting using SSE
- Simple REST API for sending events
- Support for multiple concurrent connections
- Health check endpoint
- CORS enabled
Prerequisites
- Node.js >= 18.0.0
- npm or yarn
Installation
-
Clone the repository: ```bash git clone https://github.com/stuffyoushouldautomate/WordPress-to-MCP-Server.git cd henjii/sse-server ```
-
Install dependencies: ```bash npm install ```
-
Create a .env file: ```bash cp .env.example .env ```
-
Update the .env file with your configuration.
Development
Run the server in development mode: ```bash npm run dev ```
Production
Start the server in production: ```bash npm start ```
API Endpoints
GET /events
SSE endpoint for clients to connect and receive real-time updates.
POST /broadcast
Send an event to all connected clients.
Request body: ```json { "type": "event-type", "data": { "key": "value" } } ```
GET /health
Health check endpoint returning server status and connected client count.
Deployment
This server is designed to be deployed on Railway. To deploy:
- Push your code to GitHub
- Connect your GitHub repository to Railway
- Railway will automatically deploy your application
Environment Variables
- `PORT`: Server port (default: 3000)
- `ALLOWED_ORIGINS`: Comma-separated list of allowed CORS origins
License
MIT
Quick Start
Clone the repository
git clone https://github.com/stuffyoushouldautomate/henjii-sse-serverInstall dependencies
cd henjii-sse-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.