Skip to content

Add stateless hosted MCP container#3

Merged
kiliantyler merged 18 commits into
mainfrom
codex/plane-mcp
Jul 6, 2026
Merged

Add stateless hosted MCP container#3
kiliantyler merged 18 commits into
mainfrom
codex/plane-mcp

Conversation

@kiliantyler

Copy link
Copy Markdown
Contributor

Summary

  • Make hosted Streamable HTTP MCP request handling stateless per request, with Plane workspace/project context keyed by mcp-session-id.
  • Add a Redis-backed MCP context store selectable through env vars for multi-replica hosted deployments without sticky routing.
  • Add Blacksmith-backed container build/publish workflow coverage and CI actionlint validation.

Verification

  • bun run test
  • bunx tsc --noEmit --pretty false
  • bun run lint
  • actionlint -config-file .github/actionlint.yaml .github/workflows/ci.yml .github/workflows/container.yml
  • bun run build
  • docker build -t plane-cli-mcp:test .
  • Local hosted MCP smoke against Plane: plane_context_set then issue_list returned PCLI-8 from MaudeCode/PCLI.

JSON Contract Impact

  • No change to agent-facing JSON output
  • JSON output changed and README/tests were updated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0119338c97

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/mcp/http.ts Outdated
Comment thread src/mcp/http.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: def9cee10b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/mcp/http.ts
Comment thread src/mcp/http.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e9866e666

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/mcp/http.ts
@kiliantyler
kiliantyler merged commit 8c02566 into main Jul 6, 2026
4 checks passed
@kiliantyler
kiliantyler deleted the codex/plane-mcp branch July 6, 2026 02:44

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53fd336ff9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/mcp/server.ts
Comment on lines +165 to +166
if (context.project && specHasMcpFlag(spec, "project") && isMissingInputValue(resolvedInput.project)) {
resolvedInput.project = context.project;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve workspace-wide MCP searches

When a session has a default project and the caller sets workspace_search: true on issue_search or issue_advanced_search, this still injects the session project whenever project is omitted. The CLI handlers then resolve that project and forward project_id alongside workspace_search, so a request that is explicitly asking to search the whole workspace remains scoped to the session project; callers also cannot pass an empty project to suppress the default because it is treated as missing here.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant