YE

yunusemredilber/express-mcp-sse-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

16 stars 9 forks 품질 33 트렌드 21

A Model Context Protocol (MCP) 서버 구현, 서버 일관성 이벤트(SSE) 기반 통신을 가능하게 합니다.

개요

A Model Context Protocol (MCP) 서버 구현, 서버 일관성 이벤트(SSE) 기반 통신을 가능하게 합니다. MCP SSE Server는 Server-Sent Events(SSE)를 사용하여 실시간 통신을 허용하는 Model Context Protocol 구현을 제공합니다. 그것은 응용 프로그램과 함께 작동하도록 설계하고 모델 및 리소스로 관리 및 communicating의 표준화 된 방법을 제공합니다. - 모델 Context Protocol (MCP) 구현 - 실시간 통신을위한 Server-Sent Events (SSE) - 자원 Templating 및 관리 - Node.js (v14 이상 권장) - 원사 패키지 관리자 (쉽게 변경 될 수 있음) 저장소를 복제하고 의존성을 설치: 개발 모드에서 서버를 시작하려면: 디버깅을 위한 MCP 검사기를 가진 서버를 실행할 것입니다. 기본적으로 서버는 포트 3001에서 실행됩니다. PORT 환경 변수를 설정하여 이것을 무시할 수 있습니다

개요(AI 번역)

A Model Context Protocol (MCP) 서버 구현, 서버 일관성 이벤트(SSE) 기반 통신을 가능하게 합니다.

개요

MCP SSE Server는 Server-Sent Events(SSE)를 사용하여 실시간 통신을 허용하는 Model Context Protocol 구현을 제공합니다. 그것은 응용 프로그램과 함께 작동하도록 설계하고 모델 및 리소스로 관리 및 communicating의 표준화 된 방법을 제공합니다.

특징

  • 모델 Context Protocol (MCP) 구현
  • 실시간 통신을 위한 Server-Sent Events (SSE)
  • 자원 templating 및 관리

필수품

  • Node.js (v14 이상 권장)
  • 털실 포장 매니저 (쉽게 변화될 수 있습니다)

설치

저장소를 복제하고 의존성을 설치:

사용법

서버 시작

개발 모드에서 서버를 시작하려면:

디버깅을 위한 MCP 검사기를 가진 서버를 실행할 것입니다.

생산 모드에서 서버를 시작하려면:

기본적으로 서버는 포트 3001에서 실행됩니다. PORT] 환경 변수를 설정하여 이것을 무시할 수 있습니다:

엔드포인트

  • /sse - 지속적인 연결 구축을 위한 SSE 엔드포인트
  • /messages - MCP 서버에 메시지를 보내기 위한 엔드포인트

프로젝트 구조

  • `src/index.(으)로 변환.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

Example MCP SSE Server

A Model Context Protocol (MCP) server implementation, enabling server-sent events (SSE) based communication.

Overview

Example MCP SSE Server provides a Model Context Protocol implementation that allows for real-time communication using Server-Sent Events (SSE). It’s designed to work with applications and provides a standardized way of managing and communicating with models and resources.

Features

  • Model Context Protocol (MCP) implementation
  • Server-Sent Events (SSE) for real-time communication
  • Resource templating and management

Prerequisites

  • Node.js (v14 or higher recommended)
  • Yarn package manager (can be changed easily)

Installation

Clone the repository and install dependencies:

git clone [email protected]:yunusemredilber/express-mcp-sse-server.git
cd express-mcp-sse-server
yarn install

Usage

Starting the Server

To start the server in development mode:

yarn dev

This will run the server with the MCP inspector for debugging.

To start the server in production mode:

yarn start

By default, the server runs on port 3001. You can override this by setting the PORT environment variable:

PORT=5000 yarn start

Endpoints

  • /sse - SSE endpoint for establishing persistent connections
  • /messages - Endpoint for sending messages to the MCP server

Project Structure

  • src/index.ts - Main entry point of the application
  • src/mcp-server.ts - Implementation of the MCP server and resource definitions
  • src/sse-server.ts - SSE server implementation using Express

Dependencies

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →