Skip to main content
Glama
by elusznik
test_list_tools_metadata.py557 B
import json import unittest from mcp_server_code_execution_mode import SANDBOX_HELPERS_SUMMARY, list_tools as list_tools_handler class ListToolsMetadataTests(unittest.IsolatedAsyncioTestCase): async def test_run_python_tool_mentions_helper_summary(self) -> None: tools = await list_tools_handler() self.assertEqual(len(tools), 1) tool = tools[0] schema_json = json.dumps(tool.inputSchema) self.assertIn(SANDBOX_HELPERS_SUMMARY, schema_json) if __name__ == "__main__": # pragma: no cover unittest.main()

Latest Blog Posts

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/elusznik/mcp-server-code-execution-mode'

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