loading…
Search for a command to run...
loading…
A minimal Model Context Protocol (MCP) server that uses streamable HTTP transport to provide demo tools for calculations, notes, and time. It serves as a standa
A minimal Model Context Protocol (MCP) server that uses streamable HTTP transport to provide demo tools for calculations, notes, and time. It serves as a standalone example for testing MCP connectivity and gateway registration through a standard HTTP endpoint.
Minimal MCP server using Streamable HTTP transport and a few demo tools.
Create and activate a virtual environment (optional).
Install dependencies:
pip install -r requirements.txt
From this folder:
PowerShell:
$env:MCP_HTTP_HOST = "0.0.0.0" $env:MCP_HTTP_PORT = "8001" python .\mcp_server_http\server.py
The server listens on http://0.0.0.0:8001
PowerShell:
Invoke-RestMethod -Method Post -Uri http://127.0.0.1:8001/ -ContentType "application/json" -Headers @{Accept="application/json, text/event-stream"} -Body '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","clientInfo":{"name":"ps","version":"0.1"}}}'
Register this server with your gateway using the gateway’s registration endpoint, using transport type "streamable-http" and the server URL.
Example payload:
{
"name": "mcp-http-server",
"url": "http://
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-http-server-demo": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.