Skip to content

Commit 0b90317

Browse files
authored
Merge pull request #36 from shaior/fix_components_name
Update README, add jira to list_components name to avoid collisions
2 parents 538f32f + cfb1905 commit 0b90317

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ A Model Context Protocol (MCP) server that provides access to JIRA issue data st
44

55
## Overview
66

7-
This MCP server connects to Snowflake to query JIRA data and provides three main tools for interacting with the data:
7+
This MCP server connects to Snowflake to query JIRA data and provides four main tools for interacting with the data:
88

99
- **`list_jira_issues`** - Query and filter JIRA issues with various criteria
1010
- **`get_jira_issue_details`** - Get detailed information for a specific issue by key
1111
- **`get_jira_project_summary`** - Get statistics and summaries for all projects
12+
- **`list_jira_components`** - List and filter JIRA components with various criteria
1213

1314
## Features
1415

@@ -17,6 +18,7 @@ The server connects to Snowflake and queries the following tables:
1718
- `JIRA_ISSUE_NON_PII` - Main issue data (non-personally identifiable information)
1819
- `JIRA_LABEL_RHAI` - Issue labels and tags
1920
- `JIRA_COMMENT_NON_PII` - Issue comments (non-personally identifiable information)
21+
- `JIRA_COMPONENT_RHAI` - JIRA project components and their metadata
2022

2123
**Note**: Table names are expected to exist in your configured Snowflake database and schema.
2224

@@ -47,6 +49,21 @@ Generate statistics across all projects:
4749
- Priority distribution per project
4850
- Overall statistics
4951

52+
#### 4. List Components (`list_jira_components`)
53+
Query and filter JIRA components with optional criteria:
54+
- **Project filtering** - Filter by project ID (e.g., '12325621')
55+
- **Archived filtering** - Filter by archived status ('Y' or 'N')
56+
- **Deleted filtering** - Filter by deleted status ('Y' or 'N')
57+
- **Text search** - Search in component name and description fields
58+
- **Result limiting** - Control number of results returned (default: 50)
59+
60+
Returns component information including:
61+
- Component ID, project, name, and description
62+
- Component URL and assignee details
63+
- Archived and deleted status
64+
- Lead information and assignee type
65+
- Last sync timestamp
66+
5067
### Monitoring & Metrics
5168

5269
The server includes optional Prometheus metrics support for monitoring:

src/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ async def get_jira_project_summary() -> Dict[str, Any]:
327327
return {"error": f"Error generating project summary from Snowflake: {str(e)}"}
328328

329329
@mcp.tool()
330-
@track_tool_usage("list_components")
331-
async def list_components(
330+
@track_tool_usage("list_jira_components")
331+
async def list_jira_components(
332332
project: Optional[str] = None,
333333
archived: Optional[str] = None,
334334
deleted: Optional[str] = None,

0 commit comments

Comments
 (0)