We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/milesadkins/mcp-udp-genie'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
main.cpython-311.pyc•1.78 kB
�
/�Ei` � � � d Z ddlZddlZd� ZdS )aE
Main entry point for the MCP server application.
This module provides the main() function that starts the uvicorn server.
It's configured as the entry point in pyproject.toml, so you can run the server
using the command: custom-mcp-server
The server uses uvicorn (an ASGI server) to serve the FastAPI/FastMCP application.
� Nc �� � t j d�� � } | � dt dd�� � | � � � }t j dd|j � � � d
S )a
Start the MCP server using uvicorn.
This function is the main entry point for the application. It configures and
starts the uvicorn ASGI server with the combined FastAPI/FastMCP application.
Configuration:
- host: "0.0.0.0" - Binds to all network interfaces, allowing external connections
- port: Configurable via --port argument (default: 8000)
Usage:
Run with default port: uv run custom-mcp-server
Run with custom port: uv run custom-mcp-server --port 8080
zStart the MCP server)�descriptionz--porti@ z)Port to run the server on (default: 8000))�type�default�helpzserver.app:combined_appz0.0.0.0)�host�portN)�argparse�ArgumentParser�add_argument�int�
parse_args�uvicorn�runr )�parser�argss �A/Users/miles.adkins/Documents/mcp-stonex-udp-genie/server/main.py�mainr s� � � �
$�1G�
H�
H�
H�F�
����s�D�/Z� � � � � �����D��K�!�
�
�Y�� � � � � � )�__doc__r
r r � r r �<module>r s<