effect-stateless-mcp
Click on "Deploy 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., "@effect-stateless-mcpGreet Alice formally"
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.
effect-stateless-mcp
A stateless MCP server (Model Context Protocol, spec 2026-07-28) that exposes a greet tool. Built and tested with Effect.ts v4 and run on Bun.
The server is fully stateless: a fresh McpServer instance is created per HTTP request, so no session state is retained between calls (no initialize handshake, no Mcp-Session-Id).
Requirements
Bun (v1.3.14+)
Node types are provided by Bun; no separate Node install needed
Related MCP server: Bun Fun MCP Server
Install
bun installRun
bun run src/index.tsBy default the server listens on http://localhost:3000/mcp. Override the port with the PORT environment variable (read via Effect's Config):
PORT=8787 bun run src/index.tsCalling the greet tool
Send a JSON-RPC tools/call request to the /mcp endpoint:
curl -s -X POST http://localhost:3000/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": { "name": "greet", "arguments": { "name": "Ada", "style": "formal" } }
}'The greet tool accepts:
Field | Type | Required | Description |
|
| yes | Name to greet (trimmed, 1–100 chars) |
|
| no | Greeting style (defaults to |
Test
Tests use vitest with @effect/vitest:
bun run testType-check
bunx tsc --noEmitProject structure
File | Responsibility |
| Domain logic — |
| Stateless MCP handler — registers the |
| Entry point — starts |
License
See repository for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Cloudflare Workers MCP server: ai-model-router
Related MCP Servers
- AlicenseBqualityDmaintenanceA simple TypeScript MCP server that provides two tools: one for greeting users with a customizable name and another for adding two numbers together.26 npmMIT
- AlicenseNot gradedqualityDmaintenanceA simple example MCP server built with Bun that provides basic utility tools including current time retrieval, message echoing, and number addition. Serves as a template for building MCP servers with Bun runtime.38 npmMIT
- FlicenseNot gradedqualityBmaintenanceA generic template for developing MCP servers with basic examples including echo tool, server info resource, and greeting prompt. Provides a starting point for building custom MCP servers with Bun.10 npm-
- AlicenseCqualityCmaintenanceHabitica MCP server built with Effect v4, currently exposing a hello-world tool, resource, and prompt over stdio for early development and testing.115 npmMIT