atlassian_issue_aggregator
Orchestrates retrieval of granular weekly issue data from specified Jira environments using tailored JQL filters, with an optional post-processing step to generate high-level executive summaries leveraging the agent's integrated language modeling capabilities.
Author

Jongryong
Quick Info
Actions
Tags
Atlassian Issue Aggregator Server for FastMCP
This component implements a FastMCP service designed to securely interface with Atlassian Jira platforms (Cloud or self-hosted Server/Data Center). Its primary function is to construct comprehensive weekly status reports derived from user-defined JQL specifications. Furthermore, it possesses the advanced feature of invoking the host client's Large Language Model (LLM) to abstract the raw data into an easily digestible executive brief.
Core Capabilities
- Secure Connectivity: Establishes authenticated links to Jira instances utilizing credentials supplied via environment variables (
.envconfiguration). - MCP Interface: Exposes the
fetch_jira_metricstool endpoint compatible with the Model Context Protocol. - Customizable Data Extraction:
- By default, retrieves records modified within the trailing seven-day period.
- Accepts arbitrary, complex JQL strings for precise data targeting.
- Allows scoping results to a specific Jira Project Identifier (e.g., 'PROJ-123').
- Implements a configurable cap on the volume of records fetched.
- Intelligent Synthesis (Optional): If activated, utilizes the connected agent's LLM capability (via
context.synthesize()) to generate a narrative summary of the report findings. - Concurrency Management: Ensures that blocking I/O operations inherent to the external Jira API client are correctly managed within the asynchronous FastMCP server context using
asyncio.to_thread.
📚 Prerequisites & Installation
Ensure the following dependencies are met before deployment:
- Runtime Environment: Python version 3.10 or newer.
- Environment Management: Installation via
uvis preferred for dependency resolution. - Jira Access: Credentials and URL for your target Jira environment.
- Tooling: The FastMCP Command Line Interface must be installed.
Setup Steps
-
Acquire Source (If applicable): bash git clone
cd -
Dependency Installation: Recommended installation sequence: bash uv pip install fastmcp "jira[cli]" python-dotenv httpx anyio
-
Configuration File (.env): Create a
.envfile in the root execution directory containing sensitive parameters: dotenv # .env JIRA_BASE_URL=https://your-organization.atlassian.net JIRA_USER_EMAIL=user@organization.com
JIRA_AUTH_TOKEN=secure_api_key_or_pat- Security Notice: This file must be explicitly excluded from source control (add to
.gitignore). - Token Generation: Refer to Atlassian documentation for generating API tokens (Cloud) or Personal Access Tokens (Server).
- Security Notice: This file must be explicitly excluded from source control (add to
🚀 Server Operation
Execution can be managed in two primary ways:
-
Direct Python Execution: bash python jira_reporter_server.py
-
Via FastMCP CLI: bash fastmcp execute jira_reporter_server.py
For optimized network transport (e.g., remote access): bash fastmcp execute jira_reporter_server.py --transport sse --port 8001
🖥️ Integration with Claude Desktop Application
To expose this functionality seamlessly within the Claude Desktop environment, modify the local configuration file (claude_desktop_config.json).
-
Locate Configuration: The file path varies by OS (e.g.,
~/Library/Application Support/Claude/on macOS). -
Update
mcpServersBlock: Integrate the following definition into themcpServerssection, substituting the placeholder path with the absolute file system path to your server script:{ "mcpServers": { // ... existing entries ...
"jira_data_fetcher": { "command": "fastmcp", "args": [ "execute", "/absolute/path/to/your/jira_reporter_server.py" ] }} }
-
Restart Client: Save the configuration and relaunch the Claude Desktop application to activate the tool binding.
-
Tool Invocation Example: Initiate the process within a Claude prompt:
@jira_data_fetcher retrieve status updates for project 'FINANCE' and produce a summary.
🔩 Tool Specification
- Tool Identifier:
fetch_jira_metrics - Purpose: Fetches Jira ticket data according to JQL/Project constraints and optionally triggers LLM-based report narrative generation.
Input Arguments:
| Argument Name | Data Type | Mandatory | Default Value | Description |
|---|---|---|---|---|
jql_filter |
string |
No | updated >= -7d ORDER BY updated DESC |
The precise JQL string to execute against the Jira search endpoint. |
scope_project |
string |
No | null |
Limits the search scope by adding project = 'KEY' AND ... to the JQL. |
result_limit |
integer |
No | 50 |
The maximum count of issue objects returned by the API call. |
generate_abstract |
boolean |
No | false |
If set to true, the server sends the fetched data to the client's LLM context for summarization. |
📦 Mandatory Libraries
The FastMCP setup utilizes the dependencies=["jira"] declaration, ensuring the necessary Python package is installed when using automated environment setup tools.
🤝 Contribution Guide
We welcome external contributions, including feature suggestions, issue reporting, and pull requests.
📄 Licensing
Distributed under the Apache 2.0 License.
ISO: Cloud computing involves a collection of services that are delivered over the internet. These services are categorized into Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS).
NIST Essential Characteristics (2011 Refined)
The defining traits of a cloud system, as articulated by NIST, are:
- Self-Service Provisioning: Users provision resources autonomously without provider intervention.
- Ubiquitous Connectivity: Access is network-enabled via standard protocols, supporting diverse client devices.
- Shared Tenancy (Resource Pooling): Provider resources are dynamically allocated across multiple consumers.
- Elastic Scalability: Resources can be rapidly scaled up or down in response to fluctuating demand.
- Usage Metering: Resource consumption is transparently tracked, controlled, and reported for billing and optimization.
