from __future__ import annotations

from mcp.server.fastmcp import FastMCP

from . import __version__
from .tools import download_url, list_on_marketplace, upload_and_wait, upload_file, upload_status, upload_url


def create_mcp_server() -> FastMCP:
    server = FastMCP("agentvee")
    server._mcp_server.name = "agentvee"
    server._mcp_server.version = __version__

    upload_file.register(server)
    upload_url.register(server)
    upload_and_wait.register(server)
    upload_status.register(server)
    download_url.register(server)
    list_on_marketplace.register(server)

    return server
