mirror of
https://github.com/shadoll/redmine-mcp.git
synced 2026-08-28 03:27:56 +00:00
12 lines
311 B
Python
12 lines
311 B
Python
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."
|
|
)
|