mirror of
https://github.com/shadoll/redmine-mcp.git
synced 2026-08-28 11:33:28 +00:00
refactor, add modularity
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import os
|
||||
|
||||
REDMINE_URL = os.environ.get("REDMINE_URL", "").rstrip("/")
|
||||
REDMINE_API_KEY = os.environ.get("REDMINE_API_KEY", "")
|
||||
|
||||
|
||||
def validate():
|
||||
if not REDMINE_URL or not REDMINE_API_KEY:
|
||||
raise RuntimeError(
|
||||
"REDMINE_URL and REDMINE_API_KEY environment variables must be set."
|
||||
)
|
||||
Reference in New Issue
Block a user