mirror of
https://github.com/RunLit/Bambu-Run.git
synced 2026-06-22 14:09:04 +01:00
feat: MCP server, Bambu Cloud task sync & display name fix (#7)
* added mcp initial trail files * timestamp use your local django timezone * added bambu cloud task sync with correct endpoint other than py cloud api * back fill and relink print name using cloud if there is * use correct bump-version
This commit is contained in:
@@ -51,5 +51,35 @@ class _Settings:
|
||||
def AUTO_CREATE_BRAND(self):
|
||||
return get_setting("BAMBU_RUN_AUTO_CREATE_BRAND", "Bambu Lab")
|
||||
|
||||
# MCP Server settings
|
||||
@property
|
||||
def MCP_API_KEY(self):
|
||||
return get_setting("BAMBU_RUN_MCP_API_KEY", None)
|
||||
|
||||
@property
|
||||
def MCP_HOST(self):
|
||||
return get_setting("BAMBU_RUN_MCP_HOST", "0.0.0.0")
|
||||
|
||||
@property
|
||||
def MCP_PORT(self):
|
||||
return get_setting("BAMBU_RUN_MCP_PORT", 8808)
|
||||
|
||||
@property
|
||||
def MCP_AUTH_BACKEND(self):
|
||||
return get_setting("BAMBU_RUN_MCP_AUTH_BACKEND", None)
|
||||
|
||||
@property
|
||||
def MCP_HIDE_SENSITIVE(self):
|
||||
return get_setting("BAMBU_RUN_MCP_HIDE_SENSITIVE", False)
|
||||
|
||||
# Cloud sync settings
|
||||
@property
|
||||
def CLOUD_SYNC_ENABLED(self):
|
||||
return get_setting("BAMBU_RUN_CLOUD_SYNC_ENABLED", True)
|
||||
|
||||
@property
|
||||
def CLOUD_SYNC_DAYS(self):
|
||||
return get_setting("BAMBU_RUN_CLOUD_SYNC_DAYS", 30)
|
||||
|
||||
|
||||
app_settings = _Settings()
|
||||
|
||||
Reference in New Issue
Block a user