MCP.so
登录

MCP Server for Bun and Elysia

@keithagroves

基本信息

分类

其他

传输方式

stdio

作者

keithagroves

关于 MCP Server for Bun and Elysia

Model Context Protocol (MCP) Server for Bun and Elysia

MCP Server for Bun and Elysia 配置

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

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

MCP Server for Bun and Elysia 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 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

常见问题

1

What are the prerequisites for running the server?

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

2

How do I start the server in development mode?

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

3

What transport does the server use?

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

4

Can I debug the server?

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

5

Is there a production build?

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

评论

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