Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BlackLotus MCP Servercreate a technical plan for a mobile app with user authentication and push notifications"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BlackLotus MCP Server (Node.js + StreamableHTTPServerTransport)
An MCP server that responds with plain text content for AI tools, built with Node.js/TypeScript and the Model Context Protocol SDK. It uses the Streamable HTTP transport with session management over Express.
Server name:
context7-mcp-serverTransport:
StreamableHTTPServerTransportTools:
create_plan,create_tasks,create_role
Prerequisites
Node.js >= 18.18
Install & Run
From the blacklotus_mcp/ directory:
The server starts on http://localhost:3000 by default.
Endpoints
POST /mcp– JSON-RPC over HTTP for client->server messages. Used for initialization and tool calls.GET /mcp– Server-Sent Events for server->client notifications (requiresmcp-session-idheader).DELETE /mcp– Terminates a session (requiresmcp-session-idheader).GET /health– Basic readiness probe.
CORS is enabled for demo purposes with origin: "*", and exposes the Mcp-Session-Id response header. Adjust for production.
JSON-RPC Examples (curl)
1) Initialize a session
On success, the response will include a
Mcp-Session-Idheader. Copy its value for subsequent calls.
2) Call create_plan tool
3) Call create_tasks tool
4) Call create_role tool
5) Subscribe to notifications (SSE)
6) End the session
Code Overview
src/index.tsCreates an Express app with CORS and JSON body parsing.
Manages MCP sessions with
StreamableHTTPServerTransportand a session map.Defines three tools via
McpServer:create_plan(text: string)– returns a comprehensive technical design document as plain text (intended forplan.md).create_tasks(text: string)– returns a phase-based checklist as plain text (intended fortasks.md).create_role(text: string)– returns a detailed role definition as plain text (intended forrole.md).
tsconfig.json– TypeScript config usingNodeNextmodules.package.json– Scripts fordev,build,start.
Security Notes
For local-only usage, you can enable DNS rebinding protection:
Adjust CORS origin, allowedHeaders, and exposed headers for your deployment environment.
Production
Run
npm run buildto compile todist/, thennpm start.Place behind a reverse proxy and configure TLS and CORS appropriately.