#!/usr/bin/env python
"""
Test script for the MCP server implementation.
"""
import asyncio
from server import mcp
async def test_server():
"""Test the MCP server functionality."""
print(f"MCP Server Name: {mcp.name}")
# List available tools
tools = await mcp.list_tools()
print(f"Available tools: {[t.name for t in tools]}")
# List available resources
resources = await mcp.list_resources()
print(f"Available resources: {[r.pattern for r in resources]}")
print("Server initialized successfully!")
if __name__ == "__main__":
asyncio.run(test_server())
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/hesiod-au/python-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server