You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex desktop repeatedly spawns duplicate STDIO MCP server processes and leaves them running #19845
Codex desktop/app-server appears to repeatedly spawn duplicate STDIO MCP server processes for configured MCP servers and does not clean up old instances.
In this case, two configured STDIO MCP servers both use:
command = "uv"args = ["run", "mcp-atlassian"]
Over time, process count grows substantially. During investigation, the count grew from 48 processes (~1.9 GB RSS) to 60 processes (~2.27 GB RSS), without explicit use of the Jira MCP tools.
Example process groups were started at different times, indicating repeated spawning rather than a single long-lived pair:
4:43 PM
5:22 PM
7:21 PM
7:23 PM
7:35 PM
7:39 PM
Expected behavior
Codex should either:
keep one live STDIO MCP server process per configured MCP server per active Codex client/session, or
clean up previous MCP server children when a session/tool client is closed/reloaded, or
provide an idle timeout / lazy-start mode for MCP servers.
Actual behavior
Duplicate MCP server processes accumulate and remain running. They consume memory and small but persistent CPU even when tools are not actively being called.
This does not appear to be the MCP server intentionally doing background Jira work. The installed MCP server mostly registers tools and waits on STDIO. The issue seems to be repeated Codex-side spawning and/or missing cleanup.
Activity
etraut-openai commentedon Apr 27, 2026
Thanks for reporting. This is a duplicate of several existing bug reports.
I'm working on a fix here: #19753.