We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chweyun/mcp-link-scan'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
server.py•712 B
"""
MCP Server main entry point
"""
import asyncio
from mcp.server import Server
from mcp.server.stdio import stdio_server
# Import tools and resources
from src.tools import register_tools
from src.resources import register_resources
async def main():
# Create server instance
server = Server("link-scan")
# Register tools and resources
register_tools(server)
register_resources(server)
# Run server with stdio transport
async with stdio_server() as (read_stream, write_stream):
await server.run(
read_stream,
write_stream,
server.create_initialization_options()
)
if __name__ == "__main__":
asyncio.run(main())