Skip to main content
Glama

Token Saver MCP

by jerry426
test_utils.cpython-313.pyc1.93 kB
� ���h� �F�SrSSKrSSKJr SrSrSSSS S S S S SS. rSrg)z( Utility functions for MCP test scripts �N)�Pathc�P�[[5RnURnU$)z/Get the root directory of the current workspace)r�__file__�parent)�test_dir�workspace_roots �6/Users/jerry/VSCode/token-saver-mcp/test/test_utils.py�get_workspace_rootr s"���H�~�$�$�H��_�_�N� ��c��[5nX- n[RS:XaSUR53nU$SUR53nU$)z� Convert a relative path to a file:// URI for testing Args: relative_path: Path relative to workspace root (e.g., "src/index.ts") Returns: Full file:// URI for the file �ntzfile:///zfile://)r �os�name�as_posix)� relative_pathr� full_path�uris r �get_test_file_urirs[��(�)�N��.�I� �w�w�$����+�+�-�.�/�� �J�� �*�*�,�-�.�� �Jr z package.jsonz src/index.tszsrc/lsp/hover.tszsrc/lsp/errors.tszsrc/mcp/tools.tszsrc/mcp/index.tszsrc/mcp/buffer-manager.tszsrc/lsp/definition.tszsrc/lsp/references.ts) �package�index�hover�errors�tools� mcp_index�buffer_manager� definition� referencesc�V�U[;a[SU35e[[U5$)z{ Get a test file URI by key Args: file_key: Key from TEST_FILES dict Returns: Full file:// URI for the test file zUnknown test file key: )� TEST_FILES� ValueErrorr)�file_keys r � get_test_urir"4s/���z�!��2�8�*�=�>�>� �Z��1� 2�2r )�__doc__r�pathlibrr rrr"�r r �<module>r&sE��� ����2� � �!� �#�1�)�)� � � 3r

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/jerry426/token-saver-mcp'

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