Skip to content

Bind ?projectId= on Codex coder-threads MCP so Planboard issue tools appear #1163

Closed

Description

@currentbits

Parent: #1162. Implements existing #927.

Bug

A Codex session on a GitHub-backed currentbits/solenta project advertises Planboard writes in the standing prompt but omits issue_list / issue_create / issue_set_plan / issue_complete from callable tools. github_create_issue then dies with MCP tool call requires approval, but approval policy is never. A Grok worker on the same origin gets the issue_* tools.

Cause

electron/orchServer.js only registers those tools when /mcp?projectId=<id> binds a GitHub-origin project (planboard: Boolean(boundProject && planboardNoteFor(boundProject.path))).

Grok overlay uses boundSolentaMcpUrl(url, name, { projectPath, projectId }) which adds ?projectId= for coder-threads.

Codex getCodexMcpArgs still uses boundCoderMemoryUrl, which only adds ?project= for coder-memory. Call sites pass { projectPath: localCwd } and never projectId:

  • electron/runner.js startRun Codex path
  • electron/workflow.js spawnAgentCodex

Fix

  1. Point getCodexMcpArgs HTTP URLs at boundSolentaMcpUrl.
  2. Accept opts.projectId next to projectPath.
  3. Pass thread.projectId from runner.js and projectId from spawnPhaseAgent into spawnAgentCodex.
  4. Keep tokens in env, not argv (Security: orchestrator/memory bearer tokens persisted world-readable in kimi/grok user configs, never revoked #125). Keep -c after exec / exec resume (Explicit Grok worker forks are impossible when approval policy is never #846).

Tests

  • memory-sup: getCodexMcpArgs({ projectPath, projectId }) binds project= on coder-memory and projectId= on coder-threads; bare call stays unbound.
  • runner: Codex exec argv includes mcp_servers.coder-threads.url=...projectId=<id> on a GitHub-origin project.
  • orch-planboard already proves tools/list with projectId= exposes issue_*.

Do not use sandboxed gh as the workaround.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 9, 2026
  2. currentbits commented on Sep 9, 2026

    @currentbits
    OwnerAuthor

    Shipped on this worktree: getCodexMcpArgs now uses boundSolentaMcpUrl and takes projectId. runner.js passes thread.projectId; workflow spawnAgentCodex passes spawnPhaseAgent projectId. Tests in memory-sup.test.js and orch-server.test.js cover path-only (bare threads URL) vs bound ?projectId=.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions