#!/usr/bin/env python3
"""Test MCP API to understand correct tool registration"""
from mcp.server import Server
# Create a server instance
server = Server("test-server")
# Check available methods
print("Server methods:")
for method in dir(server):
if not method.startswith('_'):
print(f" - {method}")
# Check for tool-related methods
tool_methods = [m for m in dir(server) if 'tool' in m.lower()]
print(f"\nTool-related methods: {tool_methods}")
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/webdevtodayjason/A2AMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server