mcp-atlassian crashes at startup: cannot import name 'FakeConnection' from 'fakeredis.aioredis'
After fakeredis 2.35.0 was released, my mcp-atlassian server (run with
uvx mcp-atlassianin Claude Code on macOS/Python 3.12) now crashes at startup withImportError: cannot import name 'FakeConnection' from 'fakeredis.aioredis'. Is there a fix or a workaround?Originally asked on GitHub: https://github.com/sooperset/mcp-atlassian/issues/1248
6 answers
Status: fixed in mcp-atlassian v0.21.1 (released 2026-04-10, now on PyPI). If you can't upgrade, pin
fakeredisto 2.34.1 as a workaround.Root cause:
fakeredis 2.35.0renamedFakeConnectionwithout a backward-compatible alias.pydocket(pulled in transitively viafastmcp) importsFakeConnectionat runtime during lifespan startup, andpydocketrequiresfakeredis[lua]>=2.32.1with no upper bound, so freshuvx/pipresolutions picked up the broken 2.35.0. The maintainer fixed this in v0.21.1 by pinningfakeredis>=2.32.1,<2.35.0directly in mcp-atlassian's dependencies.Fix (upgrade): The maintainer verified startup with:
bashuvx --refresh --from mcp-atlassian==0.21.1 mcp-atlassianWorkaround (if staying on an older mcp-atlassian): Users confirmed adding
--with fakeredis==2.34.1to theuvxargs in the MCP client config (e.g., Claude Code's.claude.json) works:json{ "mcpServers": { "mcp-atlassian": { "command": "uvx", "args": ["--with", "fakeredis==2.34.1", "mcp-atlassian"] } } }Another suggested workaround was a constraints file:
# mcp-atlassian-constraints.txt fakeredis==2.34.1bashuvx --isolated --constraints mcp-atlassian-constraints.txt mcp-atlassianNote:
--from fakeredis@2.34.1was suggested, but commenters reported--withis the correct flag. After upgrading to v0.21.1, you can remove the--withpin from your config.Did this work for you?What @sooperset tried on GitHub (Worked)
Maintainer verified a fresh install with
uvx --refresh --from mcp-atlassian==0.21.1 mcp-atlassian; startup now reachesStarting MCP servercleanly.Source: https://github.com/sooperset/mcp-atlassian/issues/1248#issuecomment-4221957745 (opens external site)
Did this work for you?What @MysticalGrape tried on GitHub (Worked)
Added
--with fakeredis==2.34.1to the uvx args in the MCP server JSON config. Several users confirmed this fixed the ImportError.Source: https://github.com/sooperset/mcp-atlassian/issues/1248#issuecomment-4218493584 (opens external site)
Did this work for you?What @andrew-demb tried on GitHub (Outcome unclear)
Suggested a constraints file containing
fakeredis==2.34.1and runninguvx --isolated --constraints mcp-atlassian-constraints.txt mcp-atlassian; no explicit confirmation in the thread.Source: https://github.com/sooperset/mcp-atlassian/issues/1248#issuecomment-4218072298 (opens external site)
Did this work for you?What @pcf-cmroche tried on GitHub (Didn't work)
Proposed
--from fakeredis@2.34.1in the uvx args, but a later commenter corrected that the flag should be--with, not--from.Source: https://github.com/sooperset/mcp-atlassian/issues/1248#issuecomment-4218127423 (opens external site)
Did this work for you?What a GitHub user tried on GitHub (Didn't work)
Ran the server via plain
uvx mcp-atlassian; it crashed at startup withImportError: cannot import name 'FakeConnection' from 'fakeredis.aioredis'.Source: https://github.com/sooperset/mcp-atlassian/issues/1248 (opens external site)
Did this work for you?
Related questions
- mcp-atlassian: 'JiraConfig' object has no attribute 'read_only' when calling create_issue
- mcp-atlassian Docker fails on startup with 'ValueError: I/O operation on closed file' — fixed?
- OAuth 2.0 for Confluence Data Center (on-prem) in mcp-atlassian?
- mcp-atlassian crashes with Pydantic 2.12.0: 'cannot specify both default and default_factory'
- mcp-atlassian Jira search_issues: 'requested API has been removed' error and total -1