Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Simple Server With Streamable HTTP Example

БесплатноНе проверен

Demonstrates how to create a simple MCP server with streamable HTTP transport, featuring tools, prompts, and resources.

GitHubEmbed

Описание

Demonstrates how to create a simple MCP server with streamable HTTP transport, featuring tools, prompts, and resources.

README

This example demonstrates how to create a simple MCP server with streamable HTTP transport, featuring several tools, prompts, and resources.

Run

By default, the server runs on port 8000.

python simple_streamable_http_mcp_server.py

Or with uv:

uv run mcp-server

Custom Port

Change the port (default is 8000):

MCP_SERVER_PORT=9000 python simple_streamable_http_mcp_server.py

Debug Logging

Enable debug logs for tool calls:

MCP_DEBUG=1 python simple_streamable_http_mcp_server.py

Both Together

MCP_SERVER_PORT=9000 MCP_DEBUG=1 python simple_streamable_http_mcp_server.py

Tools

  • hello_world(name) - Say hello
  • add_numbers(a, b) - Add two numbers
  • random_number(min_val, max_val) - Generate random number
  • return_json_example() - Return example JSON
  • calculate_bmi(weight, height) - Calculate BMI
  • get_logo() - Return the OllMCP logo image

Prompts

  • BMI Calculator - Prompt for BMI calculation

Resources

  • server://info - Get server info
  • text://welcome - Get a welcome message
  • images://ollmcp-logo - Get the OllMCP logo image
  • file://{path*} - Read a local text file by path

from github.com/jonigl/mcp-server-with-streamable-http-example

Установка Simple Server With Streamable HTTP Example

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/jonigl/mcp-server-with-streamable-http-example

FAQ

Simple Server With Streamable HTTP Example MCP бесплатный?

Да, Simple Server With Streamable HTTP Example MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Simple Server With Streamable HTTP Example?

Нет, Simple Server With Streamable HTTP Example работает без API-ключей и переменных окружения.

Simple Server With Streamable HTTP Example — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Simple Server With Streamable HTTP Example в Claude Desktop, Claude Code или Cursor?

Открой Simple Server With Streamable HTTP Example на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Simple Server With Streamable HTTP Example with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development