added all mcp
This commit is contained in:
19
mealie-mcp-bundle/server/start_absolute.py
Executable file
19
mealie-mcp-bundle/server/start_absolute.py
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Find the bundle path (2 levels up from this script)
|
||||
script_path = os.path.abspath(__file__)
|
||||
server_dir = os.path.dirname(script_path)
|
||||
bundle_dir = os.path.dirname(server_dir)
|
||||
|
||||
# Add the venv site-packages to Python path
|
||||
venv_site_packages = os.path.join(server_dir, 'venv', 'lib', 'python3.13', 'site-packages')
|
||||
sys.path.insert(0, venv_site_packages)
|
||||
|
||||
# Change to the bundle directory
|
||||
os.chdir(bundle_dir)
|
||||
|
||||
# Import and run the server module
|
||||
sys.path.insert(0, server_dir)
|
||||
import server
|
||||
Reference in New Issue
Block a user