Skip to main content
Glama

OPS MCP Server

by Heht571
server_monitor.cpython-310.pyc1.3 kB
o ���g� @s�dZddlZddlZej�dej�ej�e���ddlm Z m Z ze �Z Wn(e yNZ zedee ����ddlZe��e�d�WYdZ [ ndZ [ wwdd�Zedkr_e�e��dSdS) u# 服务器监控工具入口脚本 �N)�init_mcp�cleanup_resourcesu初始化MCP时发生错误: �c Cs�zjztd�tstd�WWtd�t�dStjdd�Wn8ty+td�Yn6tyV}z tdt|����d d l}|��WYd }~Wtd�t�dSd }~wwWtd�t�d SWtd�t�d Std�t�w) u主入口函数u启动服务器监控服务...u$错误:MCP对象未正确初始化u清理资源...r�stdio)� transportu 用户中断,正在退出...u发生错误: rN) �print�mcpr�run�KeyboardInterrupt� Exception�str� traceback� print_exc)�er �r�D/Users/he.ht/Documents/Cline/MCP/mytestmcp/mcptest/server_monitor.py�mains: �    ��� ��r�__main__)�__doc__�sys�os�path�insert�dirname�abspath�__file__Zserver_monitor.mainrrrr rrr r r�exitr�__name__rrrr�<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/Heht571/ops-mcp-server'

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