customer-jira-tracker-mcp
Enables tracking customer-specific JIRA tickets with full CRUD operations, comments, and Markdown export, integrated with Cursor IDE via MCP.
README
Customer JIRA Tracker
A comprehensive JIRA ticket tracking system with MCP (Model Context Protocol) integration for Cursor IDE. This system allows you to track customer-specific JIRA tickets with full CRUD operations and seamless integration with Cursor's AI assistant.
🚀 Features
- Customer Management: Create and manage customer profiles
- Ticket Tracking: Add, remove, and track JIRA tickets per customer
- Comment System: Add comments to individual tickets
- Export Functionality: Export customer data to Markdown format with JIRA integration
- MCP Integration: Direct integration with Cursor IDE via MCP protocol
- Dual Deployment: Support for both local development and OpenShift production
- Flexible Authentication: API key-based authentication with SSL verification control
🏗️ Architecture
The system consists of three main components:
-
HTTP API Server (
local_http_server.py/ OpenShift deployment)- FastAPI-based REST API
- Customer and ticket management endpoints
- JSON file-based data storage
- API key authentication
-
MCP Server (
mcp_server.py)- Bridges Cursor IDE to the HTTP API
- Exposes MCP tools for customer and ticket operations
- Handles SSL verification for different environments
- Supports both local and OpenShift deployments
-
Cursor Integration (
cursor-mcp-config.json)- Configuration for Cursor IDE
- Environment-specific settings
- SSL verification control
🚀 Quick Start
Prerequisites
- Podman (for containerized deployment)
- Cursor IDE
1. Clone and Setup
git clone <repository-url>
cd jiraTracker
2. Configure MCP Integration
Option A: Interactive Setup (Recommended)
./setup_mcp.sh
The interactive setup will prompt you for:
- JIRA Personal Token
- GitHub Personal Access Token
- OpenShift API URL
- OpenShift API Key
- SSL verification settings for both local and OpenShift environments
Option B: Manual Configuration
cp cursor-mcp-config.template.json ~/.cursor/mcp.json
# Edit ~/.cursor/mcp.json with your specific values
3. Start the Services
Containerized Local Development (Recommended)
./run_local.sh
This will:
- Build the HTTP API server container
- Build the MCP server container
- Start the HTTP API server
- Configure MCP to use containerized services
4. Restart Cursor IDE
After configuration, restart Cursor to load the MCP servers.
📊 Export Functionality
The Customer JIRA Tracker includes powerful export capabilities to generate Markdown reports of customer ticket data.
Export Features
- Markdown Format: Clean, readable Markdown tables
- JIRA Integration: Optional JIRA data (Status, Priority, Assignee, Last Updated)
- Customer Summary: Total tickets, comments, and last updated information
- Comments Section: Detailed ticket comments with timestamps
- File Storage: Automatic saving to customer data directory
Export API Endpoint
GET /api/customers/{customer_name}/export
Parameters:
format(default: "markdown") - Export formatinclude_jira(default: false) - Include JIRA informationsave_file(default: true) - Save to file in customer data directory
Example Usage:
# Basic export
curl "http://localhost:8080/api/customers/AA/export"
# Export with JIRA data
curl "http://localhost:8080/api/customers/AA/export?include_jira=true"
# Export without saving to file
curl "http://localhost:8080/api/customers/AA/export?save_file=false"
MCP Tool Usage
In Cursor IDE, use the export_customer_data tool:
{
"customer_name": "AA",
"format": "markdown",
"include_jira": true,
"save_file": true
}
Export Output Example
# Customer: AA
**Last Updated:** 2025-10-02T11:40:36.101729
**Total Tickets:** 2
**Total Comments:** 1
## Notes
Initial ticket for AA customer
## Tickets
| Ticket Key | Added Date | Comments | Status | Priority | Assignee | Last Updated |
| --- | --- | --- | --- | --- | --- | --- |
| `RFE-1234` | 2025-10-02 | 1 | N/A (MCP Integration Pending) | N/A (MCP Integration Pending) | N/A (MCP Integration Pending) | N/A (MCP Integration Pending) |
## Comments
### RFE-1234
**2025-10-02T11:38:25**
This is a test comment for the export functionality
🔧 Configuration
Environment Variables
| Variable | Description | Default | Required |
|---|---|---|---|
CUSTOMER_JIRA_API_URL |
HTTP API server URL | http://localhost:8080 |
Yes |
CUSTOMER_JIRA_API_KEY |
API authentication key | local-dev-key |
Yes |
CUSTOMER_JIRA_SSL_VERIFY |
Enable/disable SSL verification | true |
No |
MCP Server Configuration
The MCP server supports two deployment modes using containerized services:
Local Development (Containerized)
{
"customer-jira-tracker-local": {
"command": "podman",
"args": [
"run", "-i", "--name=customer-jira-tracker-client",
"--network=host",
"-e", "CUSTOMER_JIRA_API_URL=http://localhost:8080",
"-e", "CUSTOMER_JIRA_API_KEY=local-dev-key",
"-e", "CUSTOMER_JIRA_SSL_VERIFY=false",
"localhost/customer-jira-tracker-client:local"
],
"env": {
"CUSTOMER_JIRA_API_URL": "http://localhost:8080",
"CUSTOMER_JIRA_API_KEY": "local-dev-key",
"CUSTOMER_JIRA_SSL_VERIFY": "false"
}
}
}
OpenShift Production (Containerized)
{
"customer-jira-tracker-openshift": {
"command": "podman",
"args": [
"run", "-i", "--name=customer-jira-tracker-client-openshift",
"-e", "CUSTOMER_JIRA_API_URL=https://customer-jira-tracker-server.apps.your-domain.com",
"-e", "CUSTOMER_JIRA_API_KEY=your-production-key",
"-e", "CUSTOMER_JIRA_SSL_VERIFY=true",
"quay.io/your-org/customer-jira-tracker-client:latest"
],
"env": {
"CUSTOMER_JIRA_API_URL": "https://customer-jira-tracker-server.apps.your-domain.com",
"CUSTOMER_JIRA_API_KEY": "your-production-key",
"CUSTOMER_JIRA_SSL_VERIFY": "true"
}
}
}
🔐 Authentication & Security
Local Development
- Default: No authentication required
- Optional: Set
CUSTOMER_JIRA_API_KEYfor API key authentication - SSL: Not required for local development
OpenShift Production
- Required: API key authentication via
CUSTOMER_JIRA_API_KEY - SSL: HTTPS required, but verification can be disabled for self-signed certificates
- Security: Use strong, unique API keys
SSL Verification Control
The CUSTOMER_JIRA_SSL_VERIFY environment variable controls SSL certificate verification:
"true"(default): Verify SSL certificates (recommended for production)"false": Skip SSL verification (useful for self-signed certificates in development)
📚 Available MCP Tools
Once configured, the following tools are available in Cursor:
Customer Management
list_customers- List all customers with ticket countsget_customer_tickets- Get all tickets for a specific customer
Ticket Operations
add_customer_tickets- Add tickets to a customerremove_customer_tickets- Remove tickets from a customeradd_ticket_comment- Add a comment to a specific ticket
Customer Updates
update_customer_notes- Update customer notes
🛠️ Development
Project Structure
jiraTracker/
├── Dockerfile # Main container image (OpenShift HTTP server)
├── Dockerfile.mcp # MCP server container image
├── mcp_server.py # MCP server implementation
├── local_http_server.py # HTTP API server (for local development)
├── cursor-mcp-config.json # Cursor MCP configuration
├── cursor-mcp-config.template.json # Template for manual setup
├── setup_mcp.sh # Interactive setup script
├── run_local.sh # Local development runner (containerized)
├── openshift/ # OpenShift deployment files
│ ├── http_server.py # OpenShift HTTP server
│ ├── deployment.yaml # Kubernetes deployment
│ └── ...
└── customer_jira_data/ # JSON data storage
Container Images
The project uses two main container images:
-
HTTP API Server (
customer-jira-tracker-server:local)- Based on
Dockerfile.server - Runs the HTTP API server
- Used for both local development and OpenShift production
- Based on
-
MCP Client (
customer-jira-tracker-client:local)- Based on
Dockerfile.client - Runs the MCP server that bridges to the HTTP API
- Used by Cursor IDE for MCP integration
- Based on
Building Container Images
# Build HTTP API server image
podman build -t customer-jira-tracker-server:local -f Dockerfile.server .
# Build MCP client image
podman build -t customer-jira-tracker-client:local -f Dockerfile.client .
# Build for OpenShift production
podman build -t quay.io/your-org/customer-jira-tracker-server:latest -f Dockerfile.server .
🚀 Deployment
Local Development (Containerized)
- Run
./run_local.shto start HTTP API server container - MCP server runs automatically when Cursor connects
- Configure MCP with local settings (done automatically by setup script)
- Restart Cursor IDE
OpenShift Production
- Deploy using the provided OpenShift manifests
- Build and push container images to your registry
- Configure MCP with production settings
- Set
CUSTOMER_JIRA_SSL_VERIFY=falsefor self-signed certificates (default istrue) - Restart Cursor IDE
🔍 Troubleshooting
Common Issues
-
MCP Tools Not Available
- Ensure Cursor is restarted after configuration
- Check
~/.cursor/mcp.jsonsyntax - Verify MCP server is running
-
SSL Certificate Errors
- Set
CUSTOMER_JIRA_SSL_VERIFY=falsefor self-signed certificates (default istrue) - Ensure HTTPS URL is used for OpenShift
- Set
-
API Connection Errors
- Verify
CUSTOMER_JIRA_API_URLis correct - Check if HTTP API server is running
- Validate API key authentication
- Verify
-
Validation Errors
- Ensure MCP server returns content directly (not wrapped in CallToolResult)
- Check MCP protocol compatibility
Debug Mode
# Check container status
podman ps -a
# View HTTP API server logs
podman logs customer-jira-tracker-local
# Test API connectivity
curl -H "Authorization: Bearer your-api-key" http://localhost:8080/api/customers
# Test MCP server manually
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test-client", "version": "1.0.0"}}}' | podman run --rm -i -e CUSTOMER_JIRA_API_URL=http://host.containers.internal:8080 -e CUSTOMER_JIRA_API_KEY=local-dev-key -e CUSTOMER_JIRA_SSL_VERIFY=false localhost/customer-jira-tracker-client:local
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
📞 Support
For issues and questions:
- Check the troubleshooting section
- Review the USAGE_GUIDE.md for detailed instructions
- Open an issue in the repository
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。