What transports does MCP Server Example (MCP Coffee Shop) support?
It supports `stdio` (default, compatible with MCP Inspector) and `http` with Server-Sent Events (SSE).
@BearHuddleston
基本信息
Example how to make a DIY MCP server in Go
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"go-mcp-server-example": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-server",
"."
]
}
}
}Get list of available drinks
Get detailed drink information
An MCP server implementation in Go that provides coffee shop information through tools, resources, and prompts. It supports stdio and HTTP with Server-Sent Events transports, follows Go project layout best practices, and is compliant with the MCP 2025-03-26 specification. Designed for developers building LLM-integrated coffee shop applications.
Build and run from source with Go 1.24+ (go build -o mcpserver ./cmd/mcpserver), or use Docker. Start with ./mcpserver for stdio transport (default), or ./mcpserver -transport http -port 8080 for HTTP. Customize via flags --transport, --port, and --request-timeout. Connect using the MCP Inspector for testing.
getDrinkNames toolgetDrinkInfomenu://app)It supports `stdio` (default, compatible with MCP Inspector) and `http` with Server-Sent Events (SSE).
Build the Docker image (`docker build -t mcp-server .`) and run with `--transport http --port 8080` for HTTP or `--transport stdio` for stdio. Environment variables `TRANSPORT` and `PORT` are also supported.
`--transport` (stdio/http, default stdio), `--port` (HTTP port, default 8080), and `--request-timeout` (duration, default 30s).
Yes, when using HTTP transport, a `GET /health` endpoint is available.
It implements `initialize`, `tools/list`, `tools/call`, `resources/list`, `resources/read`, `prompts/list`, `prompts/get`, and `ping`.
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Free moving quotes for AI agents from Next Generation Movers, a licensed interstate mover (USDOT 3764697). US long-distance nationwide and local DC/MD/VA. Indicative ballpark price and booking options; optional $0.01 x40

Model Context Protocol Servers

B2B competitive intelligence, live sales battlecards, 5-axis ICP prospect fit scoring, and tech stack teardowns over MCP and REST with cited public-web evidence.
评论