go-mcp-jira-server
0
The project is an MCP server implementation that integrates with Jira, allowing users to create, update, and search issues via a REST API. It supports both Jira Cloud and Data Center, providing different authentication methods for each, and emphasizes security and proper error handling.
Overview
MCP Server Setup
- Utilizes
metoro-io/mcp-golang
with HTTP transport on port 8080 - Provides metadata through
info://server
endpoint - Supports actions like
create_issue
,update_issue
, andsearch_issues
Jira Client
- Determines Jira Cloud or Data Center through the URL
- Different authentication for Cloud (Basic Auth) and Data Center (Bearer token)
Supported Actions
- Create Issue: Sends POST request to Jira API to create an issue.
- Update Issue: Sends PUT request to update an existing issue.
- Search Issues: Sends GET request with JQL query.
Security and Configuration
- Uses
JiraConfig
struct for configuration - Emphasizes use of secure communication and proper validation
Error Handling
- Comprehensive error handling throughout HTTP requests and responses
How to Run
- Install dependencies
- Run server with
go run main.go
Testing
- Use tools like curl to send requests
- Validate actions return expected results on different Jira URLs.