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.

コメント

「その他」の他のコンテンツ