- Atlassian MCP Server Client
Atlassian MCP Server Client
Atlassian MCP Server Client
A command-line client for connecting to Model Context Protocol (MCP) servers, specifically designed to work with Atlassian's official MCP server integration. This client provides an interactive chat interface powered by OpenAI for seamless interaction with remote MCP servers.
๐ Features
- Remote MCP Server Connection: Connect to any MCP server via
mcp-remote - Interactive Chat Interface: Command-line chat interface with OpenAI integration
- OAuth Support: Automatic OAuth handling for Atlassian services through
mcp-remote - Tool Discovery: Automatically discovers and utilizes tools provided by the MCP server
- Streaming Responses: Real-time streaming of AI responses
- Cross-Platform: Works on Windows, macOS, and Linux
๐ Prerequisites
- Node.js 18.0.0 or higher
- npm package manager
- OpenAI API key
๐ ๏ธ Installation
-
Clone the repository:
git clone <repository-url> cd jira-mcp-server -
Install dependencies:
npm install -
Set up environment variables:
cp env.example .env -
Configure your OpenAI API key: Edit the
.envfile:# OpenAI Configuration OPENAI_API_KEY=your_openai_api_key
๐ Getting Your OpenAI API Key
- Visit OpenAI API Keys
- Create a new API key
- Copy it to your
.envfile
๐ Usage
Connect to Atlassian's Official MCP Server
npm run dev
This will connect to https://mcp.atlassian.com/v1/sse by default.
Connect to a Custom MCP Server
npm run dev <server-url>
Example:
npm run dev wss://your-custom-mcp-server.com
Development Commands
npm run build- Compile TypeScript to JavaScriptnpm run dev [server-url]- Run in development mode (defaults to Atlassian MCP server)npm run clean- Remove build artifactsnpm run typecheck- Run TypeScript type checking
๐ฌ Interactive Chat
Once connected, you'll see an interactive prompt where you can:
- Ask questions about your Atlassian workspace (if connected to Atlassian MCP server)
- Use natural language to interact with any tools provided by the MCP server
- Get AI-powered responses using the connected server's capabilities
Example Session
๐ Connecting to remote MCP server: https://mcp.atlassian.com/v1/sse
๐ OAuth authentication will be handled automatically by mcp-remote
๐ A browser window may open for authentication
๐ค Connecting to MCP server...
๐ ๏ธ Setting up tools...
โ
Connected successfully with tools: [list-jira-issues, search-confluence, ...]
๐ฌ Chat with AI (type 'help' for commands, 'exit' to quit):
> What are my recent Jira issues?
๐ค Processing query...
Here are your recent Jira issues...
Special Commands
help- Show available commands and usage informationlist-tools- Display all tools available from the connected MCP serverexitorquit- Exit the application
๐ง Configuration
Environment Variables
| Variable | Description | Required |
|---|---|---|
OPENAI_API_KEY | Your OpenAI API key | โ |
OAuth Authentication
When connecting to Atlassian's MCP server, OAuth authentication is handled automatically by mcp-remote. A browser window will open for you to authenticate with your Atlassian account if needed.
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ CLI Client โโโโโบโ mcp-remote โโโโโบโ MCP Server โ
โ (this app) โ โ โ โ (Atlassian) โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ OpenAI API โ โ OAuth Handler โ โ Atlassian APIs โ
โ โ โ โ โ โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
๐ ๏ธ How It Works
- Connection: The client uses
mcp-remoteto establish a connection to the specified MCP server - Authentication: OAuth flows are handled automatically by
mcp-remote - Tool Discovery: Available tools are discovered from the MCP server
- Chat Interface: User queries are processed using OpenAI with the discovered tools
- Tool Execution: Tools are called on the remote MCP server as needed
๐ Troubleshooting
Common Issues
-
"OPENAI_API_KEY is not set"
- Ensure your
.envfile contains a valid OpenAI API key
- Ensure your
-
"mcp-remote installation failed"
- The application will try to install
mcp-remoteglobally automatically - If it fails, install manually:
npm install -g mcp-remote
- The application will try to install
-
OAuth authentication fails
- Ensure you have access to the Atlassian workspace
- Check that your browser allows popups from the authentication domain
- Verify network connectivity
-
Connection timeout
- Check if the MCP server URL is correct and accessible
- Verify firewall settings allow outbound connections
Debug Mode
For verbose logging, you can check the mcp-remote logs or modify the source code to add more logging.
๐ Dependencies
- @ai-sdk/openai: OpenAI integration for AI capabilities
- @modelcontextprotocol/sdk: Official MCP SDK for client implementation
- mcp-remote: Remote MCP server connection utility (auto-installed)
- ai: AI SDK for tool integration and streaming
๐ Learn More
- Model Context Protocol - Official MCP documentation
- Atlassian MCP Server - Atlassian's official MCP server
- OpenAI API Documentation - OpenAI API reference
Note: This is a client application for connecting to MCP servers. For the actual MCP server implementation, refer to the official Atlassian MCP server documentation.