haive.mcp.servers.http_server¶
HTTP-based MCP server for haive using FastAPI and SSE transport.
Functions¶
|
Perform a calculation. |
|
Echo back a message. |
Get the current server time. |
|
Get system information. |
|
|
Handle SSE connections for MCP protocol. |
|
Health check endpoint. |
Get help using this MCP server. |
|
|
Server information endpoint. |
List all available tools. |
|
|
Root endpoint. |
|
Run the HTTP MCP server. |
Get server information as a resource. |
|
Get server status. |
Module Contents¶
- async haive.mcp.servers.http_server.calculate(operation, a, b)¶
Perform a calculation.
- async haive.mcp.servers.http_server.echo(message)¶
Echo back a message.
- async haive.mcp.servers.http_server.get_server_time()¶
Get the current server time.
- Return type:
- async haive.mcp.servers.http_server.get_system_info()¶
Get system information.
- async haive.mcp.servers.http_server.handle_sse(request)¶
Handle SSE connections for MCP protocol.
- Parameters:
request (fastapi.Request)
- async haive.mcp.servers.http_server.health()¶
Health check endpoint.
- async haive.mcp.servers.http_server.help_prompt()¶
Get help using this MCP server.
- async haive.mcp.servers.http_server.info()¶
Server information endpoint.
- async haive.mcp.servers.http_server.root()¶
Root endpoint.
- haive.mcp.servers.http_server.run_server(host='0.0.0.0', port=8000)¶
Run the HTTP MCP server.
- async haive.mcp.servers.http_server.server_info_resource()¶
Get server information as a resource.
- Return type: