Repository navigation
feat(mcp): operate Crossposter through a local MCP server - #2
Merged
Merged
Conversation
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.
Adds a local stdio MCP server so Codex / Gestalt can operate Crossposter's existing accounts, drafts, media, publishing and schedules without the dashboard. Publishing and queue changes follow an immutable prepare → separate local owner approval → commit workflow, reusing the existing backend and providers.
Changes
~/.codex-crossposterstate and private per-run logs.The dashboard remains optional. Existing HTTP publishing keeps its separate authentication policy. Account onboarding, remote/multi-user MCP, bulk operations and provider-native deletion are outside this change.
Validation
All 12 final automated gates passed on
243490ef79f97efee54c5f774161ccf0dd687e80:No automated tests were skipped. The package test includes a fresh extracted install/build using the current checkout lock, executable checks from an unrelated working directory, and intercepted providers. Independent whole-branch review found no P0/P1 issues.
Manual acceptance and debugging
The live Codex / Gestalt and independent-human-owner acceptance journey is explicitly deferred at the user's request; it is not claimed to have passed. No real Codex process was launched for the replacement manual handoff. The launcher creates its private state directory on the user's later invocation and saves startup, stderr, lifecycle and protocol metadata for debugging. Product owner approval remains mandatory.
See
MCP_SETUP.mdfor installation, launch, fresh authentication, use, shutdown, log locations and the optional disposable manual fixture;AGENT_POSTING.mddescribes the daily MCP workflow.Known follow-ups
lib/control/approval-http.ts:38omits the shared interrupted-execution projection. After backend restart before recovery is persisted, owner refresh can still show running/dispatching while MCP correctly reports uncertainty. This does not replay a provider call or bypass approval.