backlog-mcp 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,6 @@ from app.utils.ultils import get_issue_detail_handler
4
4
 
5
5
  async def get_issue_details(
6
6
  issue_key: str,
7
- issue_title: str | None,
8
7
  timezone: str = "UTC"
9
8
  ):
10
9
  """
@@ -12,17 +11,11 @@ async def get_issue_details(
12
11
 
13
12
  Args:
14
13
  issue_key (str): The key of the Backlog issue to retrieve.
15
- issue_title (str): The title of the Backlog issue, used for logging or reference purposes.
16
14
  timezone (str, optional): The timezone to format datetime fields. Defaults to "UTC".
17
15
  """
18
16
  try:
19
- if not issue_key and not issue_title:
17
+ if not issue_key:
20
18
  raise ValueError("Please provide an issue key.")
21
- elif issue_title and not issue_key:
22
- raise ValueError(
23
- "Cannot retrieve task information with only the issue title. "
24
- "Please provide an issue key. Searching by title is not supported yet."
25
- )
26
19
  ctx = create_backlog_context()
27
20
  result = await get_issue_detail_handler(
28
21
  backlog_domain=ctx.backlog_domain,
app/utils/ultils.py CHANGED
@@ -46,8 +46,9 @@ def time_in_range(time: str, start_range: str, end_range: str):
46
46
  return start_range_time <= time_to_be_compared <= end_range_time
47
47
 
48
48
 
49
- def process_issue_detail(issue_detail, timezone):
49
+ def process_issue_detail(issue_detail, timezone, issue_key):
50
50
  processed_issue = {
51
+ "issue_key": issue_key,
51
52
  "summary": issue_detail["summary"],
52
53
  "description": issue_detail["description"]
53
54
  }
@@ -108,7 +109,7 @@ async def get_issue_detail_handler(
108
109
  comments_in_time_range.append(comment)
109
110
 
110
111
  issue_detail.update({"comments": comments_in_time_range})
111
- processed_detail = process_issue_detail(issue_detail, timezone)
112
+ processed_detail = process_issue_detail(issue_detail, timezone, issue_key)
112
113
  return processed_detail
113
114
 
114
115
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: backlog-mcp
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: A Model Context Protocol (MCP) server for Backlog project management integration
5
5
  Author-email: BaoNguyen <baonguyen@teqnological.asia>
6
6
  Requires-Python: <3.14,>=3.13
@@ -8,12 +8,12 @@ app/core/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
8
8
  app/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  app/models/models.py,sha256=y3JhziNew3_2bM4Lw3aVjWcTvhmaEbzz0AaCHsdAkbk,4169
10
10
  app/tools/__init__.py,sha256=LxxyJiqccPQCNjei_YvtNJgEMs4U7IzKEsAaNKToaKg,68
11
- app/tools/get_issue_details.py,sha256=iJplLjwj5WzSuaddDNDS_2RP49J-LolB3HA1gzDq45c,1222
11
+ app/tools/get_issue_details.py,sha256=GMuC6lf33z0YTREq8VQ9oWwRe59XyHCnfpja0BMXjCw,819
12
12
  app/tools/get_user_issue_list.py,sha256=VACGgTybe2MHfVUqTqwqlq_7PNhR1r-t2i918n2JMgc,2706
13
13
  app/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  app/utils/di.py,sha256=5MmL6efLAX3uzp5WSMi4E_BDCgapzlr_OERZoN5NGnM,408
15
- app/utils/ultils.py,sha256=B5TOLtGu-0t99RhZp091mwr5t_t6JSewRG7mwYxDo3U,9930
16
- backlog_mcp-1.0.1.dist-info/METADATA,sha256=oTMdKzyyECEsGRp7soXjLZ8mbYuSVT4doFxa8zhVtQY,4774
17
- backlog_mcp-1.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
18
- backlog_mcp-1.0.1.dist-info/entry_points.txt,sha256=h5JeHYUp_uoaya4FO3QelcsgYOu-VRmh5qWRhPrwjtk,46
19
- backlog_mcp-1.0.1.dist-info/RECORD,,
15
+ app/utils/ultils.py,sha256=ruRh2Ruet1y-ZYpFl4KRoDv7Qb1XLr5L581a4xF-kNk,9984
16
+ backlog_mcp-1.0.2.dist-info/METADATA,sha256=AHQ5zRkIgdt0hwf2N_kp9AL9KAXskSK962bLVhVp724,4774
17
+ backlog_mcp-1.0.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
18
+ backlog_mcp-1.0.2.dist-info/entry_points.txt,sha256=h5JeHYUp_uoaya4FO3QelcsgYOu-VRmh5qWRhPrwjtk,46
19
+ backlog_mcp-1.0.2.dist-info/RECORD,,