MCPcopy Create free account
hub / github.com/GH05TCREW/MetasploitMCP / MessagesEndpoint

Class MessagesEndpoint

MetasploitMCP.py:1656–1662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1654 logger.info(f"SSE connection closed from {client_host}:{client_port}")
1655
1656class MessagesEndpoint:
1657 async def __call__(self, scope, receive, send):
1658 """Handle client POST messages for MCP communication."""
1659 client_host = scope.get('client')[0] if scope.get('client') else 'unknown'
1660 client_port = scope.get('client')[1] if scope.get('client') else 'unknown'
1661 logger.info(f"Received POST message from {client_host}:{client_port}")
1662 await sse.handle_post_message(scope, receive, send)
1663
1664# Create routes using the ASGIApp-compliant classes
1665mcp_router = Router([

Callers 1

MetasploitMCP.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected