From 763b2217732164d0f080d9ed8c72bc4efb3a433c Mon Sep 17 00:00:00 2001 From: Teal Bauer Date: Fri, 28 Mar 2025 19:14:37 +0100 Subject: [PATCH] Inline dependencies as per PEP 723 [PEP 723](https://peps.python.org/pep-0723/) lets single-file python scripts contain references to their required Python packages inline. This adds that for the MCP bridge. You can now run it with e.g. `uv run bridge_mcp_ghidra.py` and it will automatically install the required packages in a dedicated environment if needed. --- bridge_mcp_ghidra.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bridge_mcp_ghidra.py b/bridge_mcp_ghidra.py index a5e6120..3e3a0f4 100644 --- a/bridge_mcp_ghidra.py +++ b/bridge_mcp_ghidra.py @@ -1,3 +1,10 @@ +# /// script +# requires-python = ">=3.11" +# dependencies = [ +# "mcp==1.5.0", +# "requests==2.32.3", +# ] +# /// import sys import requests