feat(atlassian): add Jira and Confluence integration - #3
Merged
Merged
Conversation
- Add atlassian module with support for Jira and Confluence APIs - Implement Jira issue list command using JQL queries - Implement Confluence page search command using CQL queries - Support API Token authentication via environment variables - Add Basic Auth HTTP client for Atlassian API requests - Parse and convert HTML content to plain text for Confluence The module provides: - atlassian/mod.rs: Core authentication and HTTP client setup - atlassian/jira/mod.rs: Jira operations (list/search issues) - atlassian/confluence/mod.rs: Confluence operations (search pages) Both CLI and MCP interfaces are supported with reusable data functions. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- Add jira_list MCP tool for searching Jira issues via JQL - Add confluence_search MCP tool for searching Confluence pages via CQL - Implement proper MCP request/response handling - Parse tool arguments and handle errors gracefully - Return formatted JSON output for LLM consumption Exposes Jira and Confluence functionality through the Model Context Protocol, enabling Claude and other LLM agents to integrate with Atlassian systems. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- Add atlassian module declaration and SubCommand variant - Add Atlassian environment variables to Global config - ATLASSIAN_BASE_URL: Base URL for Atlassian instance - ATLASSIAN_EMAIL: User email for API authentication - ATLASSIAN_API_TOKEN: API token for authentication - Register jira_list and confluence_search MCP tools - Update tools list with Atlassian tool definitions and schemas - Route tool calls to appropriate handlers Enables full CLI and MCP integration of Atlassian functionality. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
Add to workspace and crate dependencies: - base64 (v0.21.7): For Basic Authentication encoding - html-escape (v0.2.13): For HTML entity decoding in Confluence content These dependencies enable API authentication and content parsing required by the Atlassian module for Jira and Confluence integration. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
Add two documentation files: 1. ATLASSIAN_SETUP.md: - Step-by-step guide for API token generation - 4 methods to configure environment variables - Verification and testing procedures - Usage examples for Jira and Confluence - Troubleshooting section with common errors - Security best practices - Links to official Atlassian documentation 2. ATLASSIAN_QUICK_START.md: - 5-minute setup checklist - 15+ common command examples - Query language reference (JQL and CQL) - jq filtering examples - Error troubleshooting table - Tips and tricks for power users Provides users with both detailed and quick reference documentation for configuring and using the Atlassian module with Jira and Confluence. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
Update CLAUDE.md with: - Include Atlassian tools in project overview - Document Atlassian module structure and files - Add Atlassian configuration section with env vars - Reference ATLASSIAN_SETUP.md for detailed instructions - Update Code Architecture section with new module details Ensures developers are aware of Atlassian functionality and know where to find setup and configuration information. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds comprehensive Atlassian integration to mcptools, enabling seamless interaction with Jira and Confluence through both CLI and MCP interfaces.
Features Added
Jira Integration:
Confluence Integration:
Authentication:
MCP Tools:
jira_list- Search Jira issues programmaticallyconfluence_search- Search Confluence pages programmaticallyImplementation Details
New Files:
crates/mcptools/src/atlassian/mod.rs- Core module with authenticationcrates/mcptools/src/atlassian/jira.rs- Jira operationscrates/mcptools/src/atlassian/confluence.rs- Confluence operationscrates/mcptools/src/mcp/tools/atlassian.rs- MCP tool handlersATLASSIAN_SETUP.md- Comprehensive setup and configuration guideATLASSIAN_QUICK_START.md- Quick reference guide with examplesModified Files:
crates/mcptools/src/main.rs- Added Atlassian module integrationcrates/mcptools/src/mcp/tools/mod.rs- Registered MCP toolsCLAUDE.md- Updated project documentationCargo.toml- Added dependencies (base64, html-escape)Dependencies Added:
base64v0.21.7 - For Basic Authentication encodinghtml-escapev0.2.13 - For HTML entity decodingCommits
This PR includes 6 semantic commits:
Usage Examples
Search Jira Issues:
Search Confluence Pages:
Test Plan
Documentation
ATLASSIAN_SETUP.mdATLASSIAN_QUICK_START.mdCLAUDE.mdSecurity Considerations
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com