Skip to main content
Glama

MCP: Multi-Agent Control Point

by Gomezzz299
registry.cpython-312.pyc1.66 kB
� :0h���4�ddlmZddlmZmZGd�d�Zy)�)� AgentLoader)�Dict�Anyc�"�eZdZdZd�Zdefd�Zy)� AgentRegistryz9 Registra dinamicamente los agentes del sistema. c��||_|jj|_|jj|_t �}|j �|_y)N)� llm_router� llm_simple� llm_complex� llm_expertor�cargar_agentes�agentes)�selfr �loaders �+/home/agomez/Proyectos/MCP/core/registry.py�__init__zAgentRegistry.__init__ sC��$����/�/�4�4����?�?�6�6�������,�,�.�� ��mensajec��|j�}|jj�D])\}}|dD]}|j|�s�|dccS�+y)z� Devuelve el primer agente disponible para responder. Args: mensaje (str): Pregunta del usuario. Returns: Agente adecuado. �patrones� instanciaN)�lowerr�items�search)rr� mensaje_lower�nombre�datos�patrons r�encontrar_agentezAgentRegistry.encontrar_agentesU�� � � �� �!�\�\�/�/�1�M�F�E�� �+���=�=��/� ��-�-�,�2�rN)�__name__� __module__� __qualname__�__doc__r�strr�rrrrs���/���rrN)�core.agent_loaderr�typingrrrr%rr�<module>r(s��)���r

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/Gomezzz299/MCP'

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