Skip to content

Commit c9be035

Browse files
chore: use internal base URL for API client (#67)
1 parent 60516b0 commit c9be035

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

plane_mcp/client.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@ def get_plane_client_context() -> PlaneClientContext:
2828
3. OAuth access token
2929
3030
Environment variables:
31-
- PLANE_BASE_URL: Base URL for Plane API (default: https://api.plane.so)
31+
- PLANE_INTERNAL_BASE_URL: Internal URL for Plane API (preferred for server-to-server calls)
32+
- PLANE_BASE_URL: Base URL for Plane API (fallback, default: https://api.plane.so)
3233
3334
Returns:
3435
PlaneClientContext containing configured PlaneClient instance and workspace slug
3536
3637
Raises:
3738
ConfigurationError: If access token is not available or workspace slug is missing
3839
"""
39-
base_url = os.getenv("PLANE_BASE_URL", "https://api.plane.so")
40+
base_url = os.getenv("PLANE_INTERNAL_BASE_URL") or os.getenv(
41+
"PLANE_BASE_URL", "https://api.plane.so"
42+
)
4043
workspace_slug = os.getenv("PLANE_WORKSPACE_SLUG", "")
4144

4245
api_key = os.getenv("PLANE_API_KEY", "")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "plane-mcp-server"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "A Model Context Protocol server for Plane integration"
55
readme = "README.md"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)