Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/agents-tools-panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ first release once wrote one after a 773 s refresh and reported nothing).
`MAINSEQUENCE_CODEX_TOOL_CATALOG=off` stops a server from reading or writing the catalog on
its own (the packaged test uses it); cached tools are still listed.

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 `.mcp.json` passes `DBUS_SESSION_BUS_ADDRESS` and `XDG_RUNTIME_DIR` on to the server.
Without them every read fails with `STORE_ERROR` ("The machine session could not be read")
and Codex shows "Couldn't display MainSequence".

Project MCP requests are slow when the project has scaled to zero: a first call to the
Production CRM measured 53–71 s, a warm one 7–10 s. `.mcp.json` therefore sets
`tool_timeout_sec: 300` (Codex's default is 60 s) and the server's own per-request limit is
Expand Down
2 changes: 1 addition & 1 deletion manifests/codex/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mainsequence",
"version": "0.7.18",
"version": "0.7.19",
"description": "Message MainSequence agents in Codex chat, recover saved replies, discover project MCPs and run developer commands using your shared session.",
"author": {
"name": "MainSequence"
Expand Down
4 changes: 3 additions & 1 deletion manifests/codex/.mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"env_vars": [
"MAINSEQUENCE_ENDPOINT",
"MAINSEQUENCE_ACCESS_TOKEN",
"MAINSEQUENCE_REFRESH_TOKEN"
"MAINSEQUENCE_REFRESH_TOKEN",
"DBUS_SESSION_BUS_ADDRESS",
"XDG_RUNTIME_DIR"
],
"tool_timeout_sec": 300
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dev-mainsequence/codex-plugin",
"version": "0.7.18",
"version": "0.7.19",
"description": "MainSequence for Codex: durable agent messaging in native chat, Agents and Tools discovery, developer commands and conversational MCPs",
"license": "MIT",
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions tests/panel-server.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ test('detached packaged MCP server: tools, immutable UI, validation, no startup
const mcp = JSON.parse(fs.readFileSync(path.join(installed, '.mcp.json'))).mcpServers.mainsequence;
assert.deepEqual(mcp.args, ['./dist/panel-server.js']);
assert.ok(mcp.tool_timeout_sec >= 120, 'cold project MCP calls exceed the host default of 60 s');
// Codex starts the server with HOME, USER and PATH only; on Linux secret-tool needs the desktop's session bus to read the shared sign-in.
for (const name of ['DBUS_SESSION_BUS_ADDRESS', 'XDG_RUNTIME_DIR']) assert.ok(mcp.env_vars.includes(name), `${name} must reach the server`);
// A catalog written by an earlier chat's server, beside the shared CLI state of this HOME.
const { projectToolName: toolName } = require('@dev-mainsequence/devtools');
const stateDir = process.platform === 'darwin' ? path.join(temporary, 'Library', 'Application Support', 'MainSequenceCLI') : process.platform === 'win32' ? path.join(temporary, 'MainSequenceCLI') : path.join(temporary, '.config', 'mainsequence');
Expand Down
Loading