Skip to main content
Glama
Mulan Permissive Software License, Version 2
14
run.cpython-312.pyc1.6 kB
� G��g���H�ddlZddlZddlZddlmZd�Zedk(re�yy)�N)� HttpMcpServerc��tjd��}|jdd��|jdtd��|jd d d � �|jd dd� �|j �}t j j|j�s td�tjd�t|j|j��}|j|j|j ��y)Nz"Start HTTP-4-MCP middleware server)� descriptionz--hostzServer host address)�helpz--portz Server port)�typerz--configzconfig/config.jsonzGlobal config file path)�defaultrz--apiszconfig/apis.jsonzAPI config file pathz%Error: API config file does not exist�)� config_path� apis_path)�host�port)�argparse�ArgumentParser� add_argument�int� parse_args�os�path�exists�apis�print�sys�exitr�config�runr r )�parser�args�servers �$E:\data\mcp-server\http-4-mcp\run.py�mainr s��� � $� $�1U� V�F� ����'<��=� ����s���?� ��� �,@�G`��a� ����*<�CY��Z� � � � �D� �7�7�>�>�$�)�)� $� �5�6� ���� ��t�{�{�d�i�i� H�F� �J�J�D�I�I�D�I�I�J�.��__main__)rrr� mcp_serverrr �__name__�r!r�<module>r&s,�� � ��$�/�$ �z���F�r!

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tght1211/http-4-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server