MCP ExplorerExplorer

Go Mcp Streamable Sse Minimal

@oranmoshaion 10 months ago
1 Apache-2.0
FreeCommunity
AI Systems
#golang#mcp-streamable-sse
This repository showcases a simple and minimal implementation of MCP using Server-Sent Events (SSE) in Go.

Overview

What is Go Mcp Streamable Sse Minimal

go-mcp-streamable-sse-minimal is a simple and minimal implementation of the Model Context Protocol (MCP) using Server-Sent Events (SSE) in the Go programming language. It serves as a demonstration for developers to understand real-time message delivery using MCP-style communication.

Use cases

Use cases include building a simple chat application that uses SSE for message delivery, creating a live dashboard that updates in real time, and developing tools that require immediate feedback from server events.

How to use

To use go-mcp-streamable-sse-minimal, run the command ‘go run main.go’ in your terminal. You can test the implementation using the MCP Inspector by setting the transport to streamable HTTP and connecting to ‘http://localhost:8080/sse’.

Key features

Key features include a minimal setup for demonstrating streamable SSE, the ability to handle real-time messages, and exposing MCP methods such as initialize, tools/list, and tools/call.

Where to use

go-mcp-streamable-sse-minimal can be used in applications requiring real-time data streaming and communication, such as chat applications, live notifications, and any system that benefits from real-time updates.

Content

go-mcp-streamable-sse-minimal

A minimal demonstration of streamable Server-Sent Events (SSE) using Go with MCP.

📌 Purpose

This repository showcases a simple and minimal implementation of MCP using Server-Sent Events (SSE) in Go.

The goal is to help developers understand how to use streamable SSE in Go for real-time message delivery with MCP-style communication patterns.

🚫 Not Production Code

⚠️ Disclaimer:
This project is intended for learning and demonstration purposes only. It is not production-ready. The focus is on clarity and minimal setup, not on performance, error handling, or security.

🛠️ How to Run

go run main.go

🧪 How to Test

The easiest way to test is by using the MCP Inspector https://github.com/modelcontextprotocol/inspector.
use transport streamable http.
host:
http://localhost:8080/sse

📡 Available Methods

The following MCP methods are exposed:

initialize

tools/list

tools/call

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers