Skip to content

Agent context single source#6747

Merged
ethanpalm merged 6 commits into
mainfrom
agent-context-single-source
Jul 25, 2026
Merged

Agent context single source#6747
ethanpalm merged 6 commits into
mainfrom
agent-context-single-source

Conversation

@ethanpalm

@ethanpalm ethanpalm commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Documentation changes

Sets up GitHub action to single source all our agent plugins (Claude, Cursor, Codex) from the docs repo.


For Reviewers

When reviewing documentation PRs, please consider:

✅ Technical accuracy

  • Code examples work as written
  • Commands and configurations are correct
  • Links resolve to the right destinations
  • Prerequisites and requirements are accurate

✅ Clarity and completeness

  • Instructions are clear and easy to follow
  • Steps are in logical order
  • Nothing important is missing
  • Examples help illustrate the concepts

✅ User experience

  • A new user could follow these docs successfully
  • Common gotchas or edge cases are addressed
  • Error messages or troubleshooting guidance is helpful

Note

Medium Risk
New cross-repo automation depends on GitHub App secrets and writes to three external plugin repositories via force-pushed branches; failures or misconfiguration could block or mis-sync agent context, but changes do not touch production docs or user-facing site content directly.

Overview
Introduces agent-context/ in the docs repo as the canonical source for the shared Mintlify agent skill and MCP server definitions, instead of maintaining separate copies in each plugin repo.

Build and sync: Node scripts (build.mjs, sync-target.mjs, lib.mjs) render per-target artifacts (Codex, Cursor, Claude) with only packaging differences in targets/*.json (MCP config filename and JSON key). Sync replaces skills/mintlify/, the client MCP file, and .mintlify-agent-context.json provenance; plugin-owned files stay untouched. Tests and npm run check enforce identical shared reference markdown across targets and block retired CLI strings in the skill.

Automation: agent-context-ci.yml runs test/check/build on PRs and main when agent-context/** changes. sync-agent-context.yml validates, then matrix-syncs to the three plugin repos via a GitHub App, pushing automation/sync-agent-context and opening or updating sync PRs (never direct pushes to main).

Docs site: Root .mintignore excludes agent-context/ from published Mintlify docs.

Reviewed by Cursor Bugbot for commit 0a93813. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Jul 24, 2026, 11:45 PM

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tomee 🟢 Ready View Preview Jul 24, 2026, 11:45 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Comment thread .github/workflows/sync-agent-context.yml
@mintlify

mintlify Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟡 Building Jul 24, 2026, 11:43 PM

@mintlify

mintlify Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tomee 🟡 Building Jul 24, 2026, 11:43 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0a93813. Configure here.

"id": "codex",
"repository": "mintlify/codex-plugin",
"mcpConfigFile": ".mcp.json",
"mcpConfigKey": "mcp_servers"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wrong Codex MCP config key

High Severity

Codex target packaging writes MCP servers under mcp_servers, but Codex plugin .mcp.json loading expects mcpServers (or a top-level server map). Generated Codex MCP config is likely ignored, so Mintlify Search/Admin would not register from the synced plugin.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0a93813. Configure here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Verified against the live codex-plugin repo: its committed .mcp.json already uses mcp_servers (snake_case), matching this target config. Codex's own config format uses snake_case — see docs/ai/model-context-protocol.mdx and docs/guides/codex.mdx, which document Codex's TOML config as [mcp_servers.<name>], distinct from Claude/Cursor's mcpServers.

The "mcpServers": "./.mcp.json" field in .codex-plugin/plugin.json is unrelated — that's the plugin manifest's pointer key (which file to load), not the schema inside that file. No change needed here.

@ethanpalm
ethanpalm merged commit 00d565e into main Jul 25, 2026
5 checks passed
@ethanpalm
ethanpalm deleted the agent-context-single-source branch July 25, 2026 00:01
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.

2 participants