Skip to content

[Bug]: stateless mode is not working since v0.13.1 #997

Description

@gudim

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

Last version when --stateless is working is 0.13.0 all following versions all run ignoring this options

0.13.1 on get tools return Bad Request: Missing session ID

Steps to Reproduce

  1. start pod on kubernetes with image version >0.13.0
  2. do a get tool without sessionid
  3. see the error

here is the k3s deployemnt.yaml

Here is minimal deployment for k3s

apiVersion: apps/v1
kind: Deployment
metadata:
name: mcp-atlassian-latest
labels:
app: mcp-atlassian-latest
spec:
replicas: 1
selector:
matchLabels:
app: mcp-atlassian-latest
template:
metadata:
labels:
app: mcp-atlassian-latest
spec:
containers:
- name: mcp-atlassian
image: ghcr.io/sooperset/mcp-atlassian:0.13.1
args:
- "--transport"
- "streamable-http"
- "--host"
- "0.0.0.0"
- "--port"
- "8000"
- "--path"
- "/mcp"
- "--stateless" # Stateless mode - no session ID required
- "-v"
ports:
- containerPort: 8000
envFrom:
- secretRef:
name: mcp-atlassian-i1-env

Expected Behavior

I expect the tool list get loaded without providing sessionid

/app/.venv/lib/python3.10/site-packages/mcp_atlassian/servers/main.py:312: DeprecationWarning: Accessing .settings on a FastMCP instance is deprecated. Use the global fastmcp.settings instead.
mcp_path = self.mcp_server_ref.settings.streamable_http_path.rstrip("/")
INFO: 10.42.0.1:53723 - "POST /mcp HTTP/1.1" 200 OK
INFO - mcp.server.lowlevel.server - Processing request of type ListToolsRequest
INFO - mcp.server.streamable_http - Terminating session: None

Actual Behavior

INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO - mcp.server.streamable_http_manager - Created new transport with session ID: 6373375741f44349a3eaf4cb387e0bc3
INFO:     10.42.0.1:9573 - "POST /mcp HTTP/1.1" 400 Bad Request

mcp-atlassian Version

0.13.0

Installation Method

Other

Operating System

Linux (Specify distribution below if relevant)

Python Version

3.10

Atlassian Instance Type

Jira Server / Data Center

Client Application

Java

Additional Context

I believe issue related to fact that this been fixed

/app/.venv/lib/python3.10/site-packages/mcp_atlassian/servers/main.py:312: DeprecationWarning: Accessing .settings on a FastMCP instance is deprecated. Use the global fastmcp.settings instead.

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