Skip to content

Commit cc301ad

Browse files
committed
Fix DRY_RUN application in add_jira_comment tool
1 parent 1e1eae0 commit cc301ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mcp_server/jira_tools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ async def add_jira_comment(
161161
"""
162162
Adds a comment to the specified Jira issue.
163163
"""
164+
if os.getenv("DRY_RUN", "False").lower() == "true":
165+
return f"Dry run, not adding comment to {issue_key} (this is expected, not an error)"
166+
164167
async with aiohttpClientSession() as session:
165168
try:
166169
async with session.post(

0 commit comments

Comments
 (0)