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

Method __call__

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

Handle client POST messages for MCP communication.

(self, scope, receive, send)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected