Spaces:
Configuration error
Configuration error
Allow dynamic AGENTMEMORY_URL and AGENTMEMORY_SECRET in stdio MCP wrapper
Browse filesFiles changed (2)
8 unmodified lines91011121314151617188 unmodified linesimport jsonimport requestsBASE = "http://127.0.0.1:3111/agentmemory"SECRET = None # set via AGENTMEMORY_SECRET env var if auth enabledimport os_secret = os.getenv("AGENTMEMORY_SECRET")def headers():8 unmodified lines9101112131415161718198 unmodified linesimport jsonimport requestsimport 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 lines91011121314151617188 unmodified linesimport jsonimport requestsBASE = "http://127.0.0.1:3111/agentmemory"SECRET = None # set via AGENTMEMORY_SECRET env var if auth enabledimport os_secret = os.getenv("AGENTMEMORY_SECRET")def headers():8 unmodified lines9101112131415161718198 unmodified linesimport jsonimport requestsimport 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