Bridge-MCP

Bridge-MCP

Unified MCP server that integrates Jira, GitLab, and Confluence for AI assistants to access project management, code repositories, and documentation from a single interface.

Category
访问服务器

README

Bridge-MCP

A unified Model Context Protocol (MCP) server that provides seamless integration with enterprise tools including Jira, GitLab, and Confluence. Access your project management, code repositories, and documentation from a single interface.

What Does It Do?

Bridge-MCP connects AI assistants (Claude, GitHub Copilot) to your enterprise tools:

  • Jira: Search issues, view details, get comments and attachments
  • GitLab: Browse projects, merge requests, pipelines, and issues
  • Confluence: Coming soon

Works with private/VPN instances (like FortiClient).

Quick Start

1. Install Dependencies

pip install -r requirements.txt

2. Configure Your Credentials

Create a .env file in the project root:

# Jira (Optional)
JIRA_URL=https://your-jira-instance.com
JIRA_PERSONAL_ACCESS_TOKEN=your_jira_token

# GitLab (Optional)
GITLAB_URL=https://your-gitlab-instance.com
GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token

Getting Your Tokens:

  • Jira: Settings > Personal Access Tokens
  • GitLab: User Settings > Access Tokens (needs api, read_api, read_repository scopes)

Note: Configure only the services you want to use. Both are optional.

3. Verify Your Setup

Run the configuration checker to ensure everything is set up correctly:

python check_config.py

This will verify:

  • ✓ Python version and dependencies
  • ✓ Environment variables are set correctly
  • ✓ Which services will be enabled
  • ✓ File structure is correct

If you see "✓ Configuration looks good!", you're ready to proceed.

4. Verify the Server Works (Optional)

You can optionally verify the server starts correctly:

python src/bridge_mcp_server.py

The server will start and you should see:

INFO - Initializing Bridge-MCP services...
INFO - ✓ Jira service enabled
INFO - ✓ GitLab service enabled
INFO - Bridge-MCP initialized with 2/3 service(s) enabled
INFO - Bridge-MCP Server starting...

Press Ctrl+C to stop. This is just for verification - your AI assistant will automatically start/stop the server when needed. You don't need to keep it running.

5. Connect to Your AI Assistant

Now configure your AI assistant to use Bridge-MCP.

Choose your AI assistant below:

Setup for Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "bridge-mcp": {
      "command": "python",
      "args": ["/FULL/PATH/TO/bridge-mcp/src/bridge_mcp_server.py"]
    }
  }
}

Important:

  • Replace /FULL/PATH/TO/bridge-mcp with your actual path (e.g., /Users/yourname/bridge-mcp)
  • The server will read credentials from your .env file automatically
  • Restart Claude Desktop after saving

That's it! Claude will now have access to your Jira and GitLab data.

Setup for GitHub Copilot (JetBrains)

Edit ~/.config/github-copilot/intellij/mcp.json:

{
  "servers": {
    "bridge-mcp": {
      "type": "stdio",
      "command": "/Users/YOUR_USERNAME/Bridge-MCP/.venv/bin/python3",
      "args": [
        "/Users/YOUR_USERNAME/Bridge-MCP/src/bridge_mcp_server.py"
      ],
      "env": {
        "JIRA_URL": "https://your-jira-instance.com",
        "JIRA_PERSONAL_ACCESS_TOKEN": "${env:JIRA_PERSONAL_ACCESS_TOKEN}",
        "JIRA_VERIFY_SSL": "true",
        "GITLAB_URL": "https://gitlab.com",
        "GITLAB_PERSONAL_ACCESS_TOKEN": "${env:GITLAB_PERSONAL_ACCESS_TOKEN}",
        "CONFLUENCE_URL": "https://your-confluence-instance.com",
        "CONFLUENCE_API_TOKEN": "${env:CONFLUENCE_API_TOKEN}",
        "CONFLUENCE_USERNAME": "${env:CONFLUENCE_USERNAME}"
      }
    }
  }
}

Important:

  • Replace /FULL/PATH/TO/bridge-mcp with your actual path (e.g., /Users/yourname/bridge-mcp)
  • The server will read credentials from your .env file automatically
  • Restart your IDE after saving

Available Tools

Jira Tools

  1. get_jira_issue — Get detailed information about a specific issue
  2. search_jira_issues — Search issues using JQL queries
  3. get_issue_comments — Retrieve all comments on an issue
  4. get_issue_attachments — List all attachments metadata
  5. get_issue_media — Download and display inline images from issues

GitLab Tools

  1. get_gitlab_project — Get detailed information about a project by ID or path
  2. list_gitlab_projects — List and search accessible projects
  3. get_merge_request — Get detailed information about a specific merge request
  4. list_merge_requests — List merge requests for a project (opened, closed, merged, or all)
  5. list_pipelines — List CI/CD pipelines for a project with status filtering
  6. get_pipeline — Get detailed information about a specific pipeline including jobs
  7. list_gitlab_issues — List issues for a GitLab project
  8. get_gitlab_issue — Get detailed information about a specific GitLab issue

Confluence Tools (Coming Soon)

  • Page content retrieval
  • Space navigation
  • Document search

Troubleshooting

"Connection failed" or "401 Unauthorized"

  • Check your VPN is connected (for private instances)
  • Verify your tokens in .env are correct
  • Make sure you can access Jira/GitLab in your browser

"SSL Certificate Error" Add to your .env:

JIRA_VERIFY_SSL=false
GITLAB_VERIFY_SSL=false

"No tools available"

  • Ensure .env file exists in the bridge-mcp directory
  • Check you have Python 3.10+ installed: python --version
  • Verify dependencies are installed: pip install -r requirements.txt

For detailed tool documentation, see TOOLS.md

Extending Bridge-MCP

Want to add support for another service? The modular architecture makes it easy!

Adding a New Service

  1. Create service module: src/services/your_service.py
  2. Implement three functions:
    • init_your_service_client() - Initialize the client
    • get_your_service_tools() - Return list of Tool definitions
    • handle_your_service_tool_call() - Handle tool executions
  3. Import in main server: Add imports to src/bridge_mcp_server.py
  4. Register in server: Add initialization and routing in main server

See existing service modules (e.g., services/jira_service.py) as templates.

Contributing

Contributions are welcome! Please feel free to submit pull requests for:

  • Bug fixes
  • New features
  • Documentation improvements
  • Additional service integrations

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选