Skip to main content
Glama

Jira-GitLab MCP Server

by gabbar910
server.py761 B
import json from fastapi import FastAPI from connectors.jira_client import JiraClient from connectors.gitlab_client import GitLabClient app = FastAPI() # Load configuration with open("config.json") as f: cfg = json.load(f) jira = JiraClient(cfg["jira"]) gitlab = GitLabClient(cfg["gitlab"]) @app.get("/jira/issues") def get_jira_issues(): issues = jira.get_issues() return {"issues": [i["key"] for i in issues]} @app.post("/gitlab/create_branch") def create_gitlab_branch(project_id: int, issue_key: str): branch_name = f"bugfix/{issue_key}" url = gitlab.create_branch(project_id, branch_name) jira.comment_issue(issue_key, f"Branch created: {url}") return {"message": f"Branch {branch_name} created and linked to {issue_key}"}

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gabbar910/MCPJiraGitlab'

If you have feedback or need assistance with the MCP directory API, please join our Discord server