greet-mcp-httpstream

greet-mcp-httpstream

0

The project is a Model Context Protocol (MCP) server and client implementation that facilitates communication between clients and a server using Streamable HTTP. It supports basic client-server interactions, server-initiated messages, and tool handling with notifications.

Remote MCP with Streamable HTTP

Remote MCP Server with Streamable HTTP

An MCP server that is able to connect to multiple client with StreamableHTTPServerTransport.

Features

This server supports:

  • Basic functionalities, ie: Client establishing connections and sneding messages (or requests such as list tools, list resources, call tools and etc.) to the server and server responding.
  • Standalone SSE to open an SSE stream to support server-initiated messgaes
  • Tools
    • A regular tool that return a single response
    • A tool that sends multiple messages back to the client with notifications

server side

  1. Run npm install to install necessary dependency
  2. Run npm start to start the server.This will start a localhost listenining to port 3000.

MCP Client for remote Server with Streamable Http

An MCP client connect to remote server with StreamableHTTPClientTransport.

Features

Upon start, the client will

  1. Connect to the server
  2. Set up notifications to receive update on Logging messages and tool changes
  3. List tools and call tools

client side

  1. Run npm install to install necessary dependency
  2. Run npm start to start the client.