Provides a stateless HTTP streaming MCP server with tools to read widget and page resources.
Configuration
View docs{
"mcpServers": {
"jiawang1-mcp-demo": {
"url": "https://mcp-demo-d3cj.onrender.com/mcp",
"headers": {
"PORT": "3000"
}
}
}
}You can interact with this MCP server using HTTP POST requests to a dedicated endpoint that processes requests in a stateless, streaming fashion. It enables you to list available tools, call specific tools, and receive results efficiently over standard HTTP, making it easy to scale and deploy across modern environments.
To use the MCP server, send JSON-RPC 2.0 style requests to the HTTP streaming endpoint. Your client should connect to the endpoint, use the JSON-RPC format, and include headers that indicate you accept both JSON and text/event-stream responses. You can start by listing available tools, then call a tool to retrieve or transform data. All requests are processed independently, with no session state maintained by the server.
Your MCP client should target the primary MCP endpoint and handle responses as they stream back. Use a POST request to the /mcp path and ensure the Accept header includes application/json and text/event-stream. Health checks and basic server information are available through dedicated endpoints to help you monitor status and capabilities.
Prerequisites you need before installation include Node.js (with npm) installed on your machine.
1) Ensure Node.js and npm are installed on your system.
2) Install project dependencies.
3) Start the server in production or development mode depending on your workflow.
# Prerequisites
# - Install Node.js and npm from the official site or your package manager
# Install dependencies
npm install
# Run in production mode
npm start
# Run in development mode (with hot reload)
npm run dev
# Run tests for the MCP streaming client (optional)
npm run testThe primary MCP endpoint for remote usage is exposed at a specific URL. Use this endpoint to perform all JSON-RPC 2.0 calls over HTTP with streaming responses. The server exposes a health check endpoint and a root endpoint that provides server information and tool availability.
Use the health endpoint to verify the server is running and reachable. Implement appropriate authentication and network controls in your deployment environment to protect access to the MCP endpoint in production.
If you encounter connectivity issues, verify that you are calling the correct /mcp endpoint, your Accept header includes application/json and text/event-stream, and the server is reachable at its hostname and port. For deployment, prefer stateless HTTP transport to maximize scalability and resilience in serverless or containerized environments.
You can connect your MCP client to the remote server using an HTTP transport configuration that points to the endpoint URL. The server is designed to be stateless and horizontally scalable.
List all available MCP tools and provide their metadata to the client.
Invoke a specific tool by name with given arguments and return the result.
Read the content of the widgetResource.md file from the server resources.
Read the content of the pageResource.md file from the server resources.