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.
This commit is contained in:
Teal Bauer 2025-03-28 19:14:37 +01:00
parent 13f962a329
commit 763b221773

View File

@ -1,3 +1,10 @@
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "mcp==1.5.0",
# "requests==2.32.3",
# ]
# ///
import sys import sys
import requests import requests