mcp.servers.simple_http_server¶
Simple HTTP MCP server example.
Attributes¶
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¶
- mcp.servers.simple_http_server.create_app() aiohttp.web.Application ¶
Create the web application.
- async mcp.servers.simple_http_server.execute_tool(request: aiohttp.web.Request) aiohttp.web.Response ¶
Execute a tool.
- async mcp.servers.simple_http_server.index(request: aiohttp.web.Request) aiohttp.web.Response ¶
Root endpoint with server info.
- async mcp.servers.simple_http_server.list_tools(request: aiohttp.web.Request) aiohttp.web.Response ¶
List available tools.
- mcp.servers.simple_http_server.app¶
- mcp.servers.simple_http_server.mcp¶
- mcp.servers.simple_http_server.routes¶