MCP.so
登录

MCP Server for Bun and Elysia

@keithagroves

关于 MCP Server for Bun and Elysia

Model Context Protocol (MCP) Server for Bun and Elysia

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

keithagroves

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "Elysia-mcp": {
      "command": "bun",
      "args": [
        "start"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server for Bun and Elysia?

It is an implementation of the Model Context Protocol (MCP) server using Bun and the Elysia web framework, enabling you to create high‑performance MCP servers that expose resources, tools, and prompts to LLMs through a standardized interface.

How to use MCP Server for Bun and Elysia?

Clone the repository, install dependencies with bun install, then start the server with bun start or bun dev for development with hot reloading. Build for production using bun run build. Use the provided TypeScript API to create an MCP server, add resources/tools/prompts, and connect it via SSE transport using the SSEElysiaTransport class.

Key features of MCP Server for Bun and Elysia

  • SSE transport implementation for Bun and Elysia
  • Complete MCP protocol support: resources, tools, and prompts
  • High performance thanks to Bun's JavaScript runtime
  • TypeScript support with proper type definitions
  • Easy‑to‑use API for creating MCP‑compatible servers

Use cases of MCP Server for Bun and Elysia

  • Exposing static or dynamic resources to large language models
  • Providing callable tools that LLMs can invoke for actions
  • Defining structured prompts for controlled LLM interactions
  • Building high‑performance MCP servers with SSE transport

FAQ from MCP Server for Bun and Elysia

What are the prerequisites for running the server?

Bun must be installed on your system. Basic familiarity with TypeScript and Elysia is recommended.

How do I start the server in development mode?

Use the command bun dev to start with hot reloading for development.

What transport does the server use?

It uses Server‑Sent Events (SSE) transport implemented in the SSEElysiaTransport class.

Can I debug the server?

Yes, use the MCP Inspector tool (npx @modelcontextprotocol/inspector) to list resources, tools, prompts, and test calls.

Is there a production build?

Yes, run bun run build to create a minified Node.js‑compatible build in the dist directory.

评论

其他 分类下的更多 MCP 服务器