Update bridge_mcp_ghidra.py

This commit is contained in:
Teal Bauer 2025-03-28 18:49:46 +01:00 committed by GitHub
parent 33c0138e68
commit 665ef14b41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,10 @@
from mcp.server.fastmcp import FastMCP import sys
import requests import requests
ghidra_server_url = "http://localhost:8080" from mcp.server.fastmcp import FastMCP
DEFAULT_GHIDRA_SERVER = "http://127.0.0.1:8080/"
ghidra_server_url = sys.argv[1] if len(sys.argv) > 1 else DEFAULT_GHIDRA_SERVER
mcp = FastMCP("ghidra-mcp") mcp = FastMCP("ghidra-mcp")