MCP Integration Guide
Overview
The Model Context Protocol (MCP) integration allows Atthene Agents to connect to external MCP servers and use their tools within the AI workflows. This guide walks you through the complete setup process.Table of Contents
- Prerequisites
- Step 1: Create an Integration
- Step 2: Configure MCP Server
- Step 3: Create a Connection
- Step 4: Use MCP Tools in YAML
- Provider-Specific Setup
- Troubleshooting
Prerequisites
Before setting up MCP integration, ensure you have:- Access credentials for your MCP provider (OAuth credentials or API key)
- The MCP server URL (base URL where the MCP server is running)
Step 1: Create an Integration
An Integration is a company-level configuration that stores the authentication credentials for connecting to an external service.For OAuth2 Providers (e.g., Microsoft, Atlassian)
- Navigate to Settings → Integrations
- Click “Add Integration”
- Fill in the form:
- Provider: Select your provider (e.g., Microsoft, Atlassian)
- Name: Give your integration a descriptive name (e.g., “Company Atlassian”)
- Description: Optional description
- OAuth Client ID: Your OAuth application’s client ID
- OAuth Client Secret: Your OAuth application’s client secret
- Scopes: Required OAuth scopes (comma-separated), e.g:
- For Atlassian:
read:jira-work,write:jira-work - For Microsoft:
Mail.Read,Mail.Send,offline_access
- For Atlassian:
- Click “Create Integration”
- Set the integration as default one (at least one default integration is needed for a provider)
For API Key Providers (e.g., Lexware)
- Navigate to Settings → Integrations
- Click “Add Integration”
- Fill in the form:
- Provider: Select your API key provider (e.g., Lexware)
- Name: Give your integration a descriptive name (e.g., “Company Lexware”)
- Description: Optional description
- Click “Create Integration”
- Set the integration as default one (at least one default integration is needed for a provider)
Note: For API key providers, you don’t need to provide credentials at the integration level. The API key will be provided when creating a connection.
Step 2: Configure MCP Server
An MCP Configuration defines the MCP server details and links it to your integration.- Navigate to Tools → MCP Servers
- Click “Add MCP”
- Fill in the configuration:
- Name: Descriptive name for this MCP server (e.g., “Atlassian Jira MCP”)
- Base URL: The MCP server endpoint
- Example:
http://localhost:8008/mcp(for local development) - Example:
https://mcp-atlassian.yourcompany.com/mcp(for production)
- Example:
- Authentication Type: Select the auth type
No Authentication: For public MCP serversOAuth 2.0: For OAuth-based providersAPI Key: For API key-based providers
- Provider: Select the provider which is linked to your created integration in Step 1
- Click “Create MCP Server”
Step 3: Create a Connection
A Connection is a user-level link between your account and the external service. This is where users authenticate.For OAuth2 Providers
- Navigate to the MCP server configured in step 2
- Click “Connect” or View Details -> “Add Connection”
- Give the connection a unique name not used in other MCPs as well (set it as default, at least 1 default connection is needed)
- You’ll be redirected to the provider’s OAuth consent screen
- Grant the requested permissions
- You’ll be redirected back to Atthene with an active connection
For API Key Providers
- Navigate to the MCP server configured in step 2
- Click “Connect” or View Details -> “Add Connection”
- Give the connection a unique name not used in other MCPs as well (set it as default, at least 1 default connection is needed)
- You’ll be redirected to the provider’s consent screen
- API Key: Enter your API key from the provider
- Click “Connect”
- You’ll be redirected back to Atthene with an active connection
Important: Each user needs to create their own connection to use MCP tools. The integration is shared at the company level, but connections are per-user.
Step 4: Retrieve tools
Once your MCP server is configured, and you have an active connection, you can fetch/refresh tools. Afterward you can remove tools which you don’t want in the configured MCP.In the end you click *Save Tools otherwise the MCP will be empty or with the last configured tools.
Step 5: Use MCP Tools in YAML
Once your MCP server is configured, and you have an active connection, you can use MCP tools in your YAML workflows.Tool Naming Convention
MCP servers/tools are prefixed withmcp__ followed by the MCP configuration name:
Example YAML Configuration
Provider-Specific Setup
Atlassian (Jira/Confluence)
Authentication: OAuth 2.0 Required Scopes: For exampleread:jira-work- Read Jira issueswrite:jira-work- Create/update Jira issues
Note: You can have a look at the client you have configured at the atlassian admin for more scopesSpecial Requirements:
- The system automatically fetches your Atlassian Cloud ID
- If you have multiple Atlassian sites, you’ll need to configure the Cloud ID manually (Still under development)
http://localhost:8008/mcp
Available Tools:
list_issues- List Jira issues with filterscreate_issue- Create new Jira issuesupdate_issue- Update existing issuesget_issue- Get details of a specific issue
Lexware Office
Authentication: API Key API Key Location: Get your API key from Lexware Office settings Special Requirements:- Uses custom header
Lexware-API-Keyfor authentication - No OAuth setup required
http://localhost:8009/mcp
Available Tools:
get_invoices- List invoices with filtersget_invoice- Get invoice details by IDget_contacts- List contactsget_posting_categories- Get posting categoriesget_countries- Get country tax classifications
Troubleshooting
”No connection found” Error
Problem: MCP tools fail with “No connection found” Solution:- Ensure you’ve created a connection (Step 3)
- Check that the connection is set as default (if you have multiple)
“Multiple Atlassian sites found” Error
Problem: Atlassian integration fails with multiple sites error Solution:- This occurs when your Atlassian account has access to multiple sites
- You need to manually configure the Cloud ID
- Contact your administrator to set the specific Cloud ID for your organization