#!/usr/bin/env python3
"""
Simple MCP Server for AgentCore Runtime - following AWS documentation exactly.
"""
from mcp.server.fastmcp import FastMCP
# Create FastMCP server exactly as shown in AWS docs
mcp = FastMCP(host="0.0.0.0", stateless_http=True)
@mcp.tool()
def add_numbers(a: int, b: int) -> int:
"""Add two numbers together"""
return a + b
@mcp.tool()
def multiply_numbers(a: int, b: int) -> int:
"""Multiply two numbers together"""
return a * b
@mcp.tool()
def greet_user(name: str) -> str:
"""Greet a user by name"""
return f"Hello, {name}! Nice to meet you."
if __name__ == "__main__":
mcp.run(transport="streamable-http")