"""MCP server generated by intpot."""

from fastmcp import FastMCP

mcp = FastMCP("generated-server")
{% for tool in tools %}


@mcp.tool()
def {{ tool.name }}(
{%- for param in tool.parameters %}
    {{ param.name }}: {{ param.type_annotation }}
{%- if not param.required %} = {{ param.default | repr }}
{%- endif %},
{%- endfor %}
) -> {{ tool.return_type }}:
    """{{ tool.description }}"""
    # TODO: implement
    return "{{ tool.name }} called"
{%- endfor %}


if __name__ == "__main__":
    mcp.run()
