Spaces:
Configuration error
Configuration error
Allow dynamic AGENTMEMORY_URL and AGENTMEMORY_SECRET in stdio MCP wrapper
Browse filesFiles changed (2)
8 unmodified lines9101112131412131415161718198 unmodified linesimport jsonimport requests
BASE = "http://127.0.0.1:3111/agentmemory"SECRET = None # set via AGENTMEMORY_SECRET env var if auth enabled
import osBASE = os.getenv("AGENTMEMORY_URL", "http://127.0.0.1:3111").rstrip("/")if not BASE.endswith("/agentmemory"): BASE = f"{BASE}/agentmemory"
_secret = os.getenv("AGENTMEMORY_SECRET")
def headers():8 unmodified lines9101112131412131415161718198 unmodified linesimport jsonimport requests
BASE = "http://127.0.0.1:3111/agentmemory"SECRET = None # set via AGENTMEMORY_SECRET env var if auth enabled
import osBASE = os.getenv("AGENTMEMORY_URL", "http://127.0.0.1:3111").rstrip("/")if not BASE.endswith("/agentmemory"): BASE = f"{BASE}/agentmemory"
_secret = os.getenv("AGENTMEMORY_SECRET")
def headers():plugin/scripts/mcp_stdio.py+4-3
src/mcp_stdio.py+4-3