Skip to main content
Glama

mcp-optimizer

debug_tools.pyโ€ข606 B
#!/usr/bin/env python3 """Debug script to check tools structure.""" import asyncio from mcp_optimizer.mcp_server import create_mcp_server async def debug_tools(): """Debug tools structure.""" server = create_mcp_server() tools = await server.get_tools() print(f"Tools type: {type(tools)}") print(f"Tools length: {len(tools)}") for i, tool in enumerate(tools): print(f"Tool {i}: {type(tool)} = {tool}") if hasattr(tool, "__dict__"): print(f" Attributes: {tool.__dict__}") print() if __name__ == "__main__": asyncio.run(debug_tools())

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/dmitryanchikov/mcp-optimizer'

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