Skip to content

feat(jira): add jira_get_project_components tool#873

Merged
sooperset merged 3 commits into
sooperset:mainfrom
legard:feature/jira-get-project-components
Feb 24, 2026
Merged

feat(jira): add jira_get_project_components tool#873
sooperset merged 3 commits into
sooperset:mainfrom
legard:feature/jira-get-project-components

Conversation

@legard
Copy link
Copy Markdown
Contributor

@legard legard commented Jan 23, 2026

Description

Add new MCP tool to retrieve all components for a Jira project.

Fixes: #872

Related: #770 (users need to discover valid component IDs for updates)

Changes

  • Add jira_get_project_components tool in src/mcp_atlassian/servers/jira.py
  • Add unit test test_get_project_components_tool
  • Update docs/tools-reference.mdx with new tool

Testing

  • Unit tests added/updated
  • All tests pass locally (1171 passed)
  • Manual checks performed: verified tool follows get_project_versions pattern

Checklist

  • Code follows project style guidelines (linting passes)
  • Tests added/updated for changes
  • All tests pass locally
  • Documentation updated (if needed)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 7, 2026

This pull request has been automatically marked as stale because it has not had recent activity for 14 days. It will be closed if no further activity occurs. Please leave a comment or remove the 'stale' label if you believe this PR is still relevant. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Feb 7, 2026
Ruslan Tabolin added 3 commits February 23, 2026 14:14
- Add import and registration for get_project_components in test fixture
- Add test_get_project_components_tool test function
@legard legard force-pushed the feature/jira-get-project-components branch from 32188f8 to 2865c48 Compare February 23, 2026 11:14
@legard
Copy link
Copy Markdown
Contributor Author

legard commented Feb 23, 2026

Rebased on latest main. This PR is still relevant — it addresses #872 and helps users discover valid component IDs needed for issue updates (#770). Ready for review.

@github-actions github-actions Bot removed the stale label Feb 24, 2026
Copy link
Copy Markdown
Owner

@sooperset sooperset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean implementation following the get_project_versions pattern. I'll add the missing pattern validation in a follow-up. Thanks!

annotations={"title": "Get Project Components", "readOnlyHint": True},
)
async def get_project_components(
ctx: Context,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minor) Missing pattern=PROJECT_KEY_PATTERN — the adjacent get_project_versions uses it to validate keys. Without it, malformed keys like proj silently return [] instead of erroring. I'll add this in a follow-up.

@sooperset sooperset merged commit 2812aba into sooperset:main Feb 24, 2026
7 checks passed
sooperset added a commit that referenced this pull request Feb 24, 2026
- Update update_issue fields parameter description from 'Dictionary' to
  'JSON string' to match the str type (follow-up to PR #973)
- Add PROJECT_KEY_PATTERN validation to get_project_components for
  consistency with get_project_versions (follow-up to PR #873)
sooperset added a commit that referenced this pull request Feb 24, 2026
- Update update_issue fields parameter description from 'Dictionary' to
  'JSON string' to match the str type (follow-up to PR #973)
- Add PROJECT_KEY_PATTERN validation to get_project_components for
  consistency with get_project_versions (follow-up to PR #873)
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.

[Feature]: Add jira_get_project_components tool

2 participants