Skip to main content
Glama

API Docs MCP Server

installer.cpython-310.pyc2.77 kB
o ��g� �@spddlZddlZddlZddlZddlZddlmZddlmZddl Z ddl m Z dd�Z dd�Z d d �ZdS) �N)�log)�DistutilsError)�WheelcCs(t|t�r |��St|ttf�sJ�|S)z8Ensure find-links option end-up being a list of strings.N)� isinstance�str�split�tuple�list)� find_links�r �bC:\Users\apqls\Documents\Github\tkbase\api-docs-mcp\venv\Lib\site-packages\setuptools/installer.py�_fixup_find_links s r c Cs<zt�d�Wntjy|�dtj�Ynwt|�}|�d�}d|vr*td��dt j vo3dt j v}dt j vr<d }n d |vrG|d d }nd }d |vrYt |d d �d d �ng}|j rd|� |j �t j�|���}t��}t�|�D]}||vr�|�|�r�|Squt����} tjd ddddd| g} |r�| �d�|d ur�| � d|f�|p�gD] } | � d| f�q�| �|jp�t|��zt�| �Wntjy�} ztt| ��| �d } ~ wwtt�t j� | d��d�} t j� || �!��}| �"|�t�#|t j� |d��}tj$j%||d�}|Wd �S1�swYd S)zLFetch an egg needed for building. Use pip/wheel to fetch/build a wheel.�wheelz,WARNING: The wheel package is not available.� easy_installZ allow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements.Z PIP_QUIETZ PIP_VERBOSEZ PIP_INDEX_URLN� index_url�r z-m�pipz--disable-pip-version-checkz --no-depsz-wz--quietz --index-urlz --find-linksz*.whlrzEGG-INFO)�metadata)&� pkg_resources�get_distribution�DistributionNotFound�announcer�WARN� strip_marker�get_option_dictr�os�environr Zdependency_links�extend�path�realpathZget_egg_cache_dir� Environment�find_distributions�can_add�tempfile�TemporaryDirectory�sys� executable�append�urlr� subprocess� check_call�CalledProcessErrorr�glob�join�egg_nameZinstall_as_egg� PathMetadata� Distribution� from_filename)�dist�req�opts�quietrr Zeggs_dir� environmentZegg_distZtmpdir�cmd�link�er� dist_locationZ dist_metadatar r r �fetch_build_eggsp�   � � �  �� ��&�r;cCstj�t|��}d|_|S)z� Return a new requirement without the environment marker to avoid calling pip with something like `babel; extra == "i18n"`, which would always be ignored. N)r� Requirement�parser�marker)r3r r r rXsr)r,rr)r%r#� distutilsr�distutils.errorsrrZsetuptools.wheelrr r;rr r r r �<module>s    C

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/ShotaNagafuchi/api-docs-mcp'

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