Coverage for src/mcp_atlassian/config.py: 0%

1 from dataclasses import dataclass

2

3

4@dataclass

5 class ConfluenceConfig:

6 """Confluence API configuration."""

7

8 url: str # Base URL for Confluence

9 username: str # Email or username

10 api_token: str # API token used as password

11

12 @property

13 def is_cloud(self) -> bool:

14 """Check if this is a cloud instance."""

15 return "atlassian.net" in self.url

16

17

18@dataclass

19 class JiraConfig:

20 """Jira API configuration."""

21

22 url: str # Base URL for Jira

23 username: str = "" # Email or username

24 api_token: str = "" # API token used as password for cloud

25 personal_token: str = "" # Personal Access Token used for Server/Data Center

26 verify_ssl: bool = True # Whether to verify SSL certificates

27

28 @property

29 def is_cloud(self) -> bool:

30 """Check if this is a cloud instance."""

31 return "atlassian.net" in self.url