Skip to content

Commit 29f62cb

Browse files
committed
feat(envs): add mcp hostname list
1 parent dcfc19d commit 29f62cb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

backend/api/core/config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ def checkpoint_conn_str(self) -> str:
3838
langfuse_host: str = "https://cloud.langfuse.com"
3939

4040
environment: str = "development"
41+
mcp_hostnames_csv: str = "mcp"
42+
43+
@computed_field
44+
@property
45+
def mcp_hostnames(self) -> list[str]:
46+
return [
47+
h.strip() for h in self.mcp_hostnames_csv.split(",") if h.strip()
48+
]
4149

4250

4351
settings = Settings()

envs/backend.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ LANGFUSE_SECRET_KEY=sk-lf-
77
LANGFUSE_HOST=https://cloud.langfuse.com
88

99
ENVIRONMENT=production
10+
MCP_HOSTNAMES_CSV=mcp

0 commit comments

Comments
 (0)