Skip to content

fix(jira): accept comment alias for add comment#1403

Open
balcsida wants to merge 1 commit into
sooperset:mainfrom
balcsida:fix/jira-comment-body-alias-main
Open

fix(jira): accept comment alias for add comment#1403
balcsida wants to merge 1 commit into
sooperset:mainfrom
balcsida:fix/jira-comment-body-alias-main

Conversation

@balcsida

Copy link
Copy Markdown

Summary

  • accept comment as a hidden compatibility alias for jira_add_comment's body parameter
  • add a FastMCP server regression test for the reported comment input shape

Root cause

jira_add_comment advertised and required body, but a caller sent comment. FastMCP/Pydantic validates tool arguments before Jira logic runs, so the request failed with missing body and unexpected comment.

Validation

  • uv run pytest tests/unit/servers/test_jira_server.py -q -> 87 passed
  • uv run pre-commit run --files src/mcp_atlassian/servers/jira.py tests/unit/servers/test_jira_server.py -> fails in unrelated baseline mypy check: src/mcp_atlassian/servers/main.py:363: error: "TTLCache" expects 3 type arguments, but 2 given [type-arg]

@balcsida balcsida marked this pull request as ready for review June 23, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant