Skip to main content
Glama

xigua-MCP

by xiguaxiaome
sever.cpython-310.pyc1.28 kB
o ҅9h �@s�ddlmZddlZddlZddlZddlmZe�d�Zej dkr0ej j dd�ej j dd�ed�Z e ��dd ed eed efd d ��ZdS)�)�FastMCPN)�OptionalZ WebOpener�win32zutf-8)�encodingT�url�new_tab�returnc Cs�|�d�s ddd�Sztj||rdpdd�t�d|���d d |��d�WStyG}zt�d |���dt|�d�WYd }~Sd }~ww) a Open a webpage in the default browser. Args: url: The URL to open (must start with http:// or https://) new_tab: Whether to open in a new tab (default: True) Returns: dict: Contains success status and message )zhttp://zhttps://Fz'URL must start with http:// or https://)�success�message��)�newzOpened webpage: TzSuccessfully opened zFailed to open webpage: N)� startswith� webbrowser�open�logger�info� Exception�error�str)rr�e�r�!E:\mcp\xiaozhi-mcp\tools\sever.py� open_webpages ��r)T)�mcp.server.fastmcpr�sys�loggingr�typingr� getLoggerr�platform�stderr� reconfigure�stdout�mcp�toolr�bool�dictrrrrr�<module>s    "

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/xiguaxiaome/xigua-MCP'

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