haive.mcp.servers.simple_http_server¶
Simple HTTP MCP server example.
Functions¶
|
Add two numbers. |
Create the web application. |
|
|
Execute a tool. |
|
Get current time. |
|
Say hello to someone. |
|
Root endpoint with server info. |
|
List available tools. |
Module Contents¶
- async haive.mcp.servers.simple_http_server.add(x, y)¶
Add two numbers.
- haive.mcp.servers.simple_http_server.create_app()¶
Create the web application.
- Return type:
aiohttp.web.Application
- async haive.mcp.servers.simple_http_server.execute_tool(request)¶
Execute a tool.
- Parameters:
request (aiohttp.web.Request)
- Return type:
aiohttp.web.Response
- async haive.mcp.servers.simple_http_server.hello(name)¶
Say hello to someone.
- async haive.mcp.servers.simple_http_server.index(request)¶
Root endpoint with server info.
- Parameters:
request (aiohttp.web.Request)
- Return type:
aiohttp.web.Response
- async haive.mcp.servers.simple_http_server.list_tools(request)¶
List available tools.
- Parameters:
request (aiohttp.web.Request)
- Return type:
aiohttp.web.Response