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

Class MockFastMCP

tests/test_tools_integration.py:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23# Create a special mock for FastMCP that preserves the tool decorator behavior
24class MockFastMCP:
25 def __init__(self, *args, **kwargs):
26 pass
27
28 def tool(self):
29 # Return a decorator that just returns the original function
30 def decorator(func):
31 return func
32 return decorator
33
34# Mock the MCP modules with our custom FastMCP
35mcp_server_fastmcp = Mock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected