Skip to content

[Bug]: user auth_type is 'oauth' but i'm in server / data center config #634

@LisaBaumann

Description

@LisaBaumann

Prerequisites

  • I have searched the existing issues to make sure this bug has not already been reported.
  • I have checked the README for relevant information.

Bug Description

Hello,

When I try to run my Confluence tools, I consistently encounter the following error:
ValueError: Global OAuth config for ConfluenceConfig is missing, but user auth_type is 'oauth'.

This error only occurs at runtime — not when connecting to the MCP server or when listing available tools. It happens specifically during the connection to Confluence.

I’m using a private Confluence instance, which is why I’ve configured it in Server/Data Center mode with a Personal Access Token (PAT).
Here’s an excerpt from my docker-compose.yml, using the variables mentioned in the documentation:

mcp-atlassian:
  image: ghcr.io/sooperset/mcp-atlassian:latest
  container_name: mcp-atlassian-confluence
  environment:
    CONFLUENCE_URL: ${CONFLUENCE_URL:-}
    CONFLUENCE_PERSONAL_TOKEN: ${CONFLUENCE_PERSONAL_TOKEN:-}
    CONFLUENCE_SSL_VERIFY: ${CONFLUENCE_SSL_VERIFY:-false}
    ENABLED_TOOLS: "confluence_search"
  command: 
    - "--transport"
    - "streamable-http"
    - "--port"
    - "9000"
    - "--enabled-tools"
    - "confluence_search,confluence_get_page,confluence_get_page_children,confluence_get_comments,confluence_get_labels"
    - "-vv"
  restart: unless-stopped
  networks:
    - net
  ports:
    - "9000:9000"

I don’t see anything misconfigured, and I don’t know how to prevent user_auth_type from being set to "oauth", since I’m not supposed to be using OAuth in this context.

Thanks.

Steps to Reproduce

Just start the container like me and run any tool to reproduce.

Expected Behavior

Tool any run correctly.

Actual Behavior

ValueError: Global OAuth config for ConfluenceConfig is missing, but user auth_type is 'oauth'.

mcp-atlassian Version

v0.11.9

Installation Method

Docker

Operating System

macOS

Python Version

3.12

Atlassian Instance Type

Confluence Server / Data Center

Client Application

Inspector tool and python script

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions