We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 544358b commit 7bbe1bbCopy full SHA for 7bbe1bb
main.py
@@ -12,7 +12,7 @@
12
from utils.app_config import get_app_config
13
14
# Register all tools so they attach to the MCP server
15
-from utils.mcp_server import run_stdio, run_http
+from utils.mcp_server import SysdigMCPServer
16
17
# Load environment variables from .env
18
load_dotenv()
@@ -49,12 +49,15 @@ def main():
49
▄▌▙▌▄▌▙▌▌▙▌ ▌▝ ▌▙▖▌ ▄▌▙▖▌ ▚▘▙▖▌
50
▄▌ ▄▌
51
""")
52
+
53
+ mcp_server = SysdigMCPServer(app_config=app_config)
54
55
if transport == "stdio":
56
# Run MCP server over STDIO (local)
- run_stdio()
57
+ mcp_server.run_stdio()
58
else:
59
# Run MCP server over streamable HTTP by default
- run_http()
60
+ mcp_server.run_http()
61
62
63
if __name__ == "__main__":
0 commit comments