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
- Run
npm install
to install necessary dependency - 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
- Connect to the server
- Set up notifications to receive update on Logging messages and tool changes
- List tools and call tools
client side
- Run
npm install
to install necessary dependency - Run
npm start
to start the client.