�
�:4h� � �. � d dl Z d dlmZ G d� de� Zy)� N)�
AgenteBasec �$ � e Zd ZdZg d�Zdefd�Zy)�AgenteUbicacionuQ
Agente que obtiene la ubicación aproximada del usuario mediante su IP.
)u \bubicaci[oó]n\bu \bd[oó]nde estoy\bu \bd[oó]nde estamos\bu \bd[oó]nde est[aá]s\bu \best[aá]s en\bu \bd[oó]nde queda\bu \bcu[aá]l es mi ubicaci[oó]n\bz\bubicado\bu \bubicaci[oó]n actual\bu \bd[oó]nde me encuentro\bu \bd[oó]nde se encuentra\b�returnc �� � t j d� }|j � }|j dd� |j dd� |j dd� |j dd � d�S ) Nzhttps://ipinfo.io/json�city�desconocida�region�country�desconocido�loc)�ciudadr
�paisr
)�requests�get�json)�self�response�datas �//home/agomez/Proyectos/MCP/agentes/ubicacion.py�agentezAgenteUbicacion.agente s^ � ��<�<� 8�9���}�}����h�h�v�}�5��h�h�x��7��H�H�Y�
�6��8�8�E�4�(�
�
� N)�__name__�
__module__�__qualname__�__doc__�patrones�dictr � r r r r s � ���H�
��
r r )r �utils.agente_baser r r r r �<module>r! s �� � (�
�j�
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