Repository navigation
Linux: pass the desktop session bus to the MCP server (0.7.19) - #31
Merged
Merged
Conversation
Codex starts a plugin's MCP server with HOME, USER and PATH only. On Linux the shared sign-in is read with secret-tool, which reaches the Secret Service over the desktop's session bus, so every read failed with STORE_ERROR ("The machine session could not be read") and Codex showed "Couldn't display MainSequence".
.mcp.json now passes DBUS_SESSION_BUS_ADDRESS and XDG_RUNTIME_DIR on to the server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex starts a plugin's MCP server with
HOME,USERandPATHonly. On Linux the shared sign-in is read withsecret-tool, which reaches the Secret Service over the desktop's session bus, so every read failed withSTORE_ERROR("The machine session could not be read") and Codex showed "Couldn't display MainSequence"..mcp.jsonnow passesDBUS_SESSION_BUS_ADDRESSandXDG_RUNTIME_DIRon to the server.Checked: on fractal1, the 0.7.17 server started with only
HOME,USERandPATHfailsmainsequence_openwith that error; withDBUS_SESSION_BUS_ADDRESSadded it returns the signed-in account.npm run release:check: 85 of 85 tests.🤖 Generated with Claude Code