diff --git a/mcp_dummy.py b/mcp_dummy.py index 267199e8b2..32b8ff7716 100644 --- a/mcp_dummy.py +++ b/mcp_dummy.py @@ -4,6 +4,7 @@ import logging logging.basicConfig(filename='mcp_dummy.log', level=logging.DEBUG) + def main(): logging.info("Starting MCP Dummy Server") while True: @@ -65,7 +66,7 @@ def main(): else: # Ignore notifications or other methods if req_id is not None: - resp["error"] = {"code": -32601, "message": "Method not found"} + resp["error"] = {"code": -32601, "message": "Method not found"} else: continue @@ -77,5 +78,6 @@ def main(): logging.error(f"Error: {e}") break + if __name__ == "__main__": main()