Skip to content

Add mint agent setup to agent-only setup instructions - #8223

Merged
ethanpalm merged 2 commits into
mainfrom
ethan/doc-456-add-mint-agent-setup-to-markdown-only-notes-for-agents
Oct 31, 2026
Merged

ethanpalm merged 2 commits into
mainfrom
ethan/doc-456-add-mint-agent-setup-to-markdown-only-notes-for-agents

Conversation

@ethanpalm

@ethanpalm ethanpalm commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Surfaces mint agent setup (installs Mintlify skills and connects the admin MCP) in the agent-only parts of the docs. Resolves DOC-456.

  • docs.json: adds a line to markdown.instructions, which renders in the Agent Instructions block at the top of every .md page. It tells agents to offer mint agent setup --agent <claude-code|codex|cursor> rather than run it unprompted, to lower the chance agents treat it as a prompt injection.
  • snippets/agent-setup-workflow.mdx: adds optional step 9 to the agent setup workflow (used on the quickstart and the Claude Code, Codex, and Cursor guides). It checks Node.js 22.20+ and requires --agent, because without a TTY the command configures every agent it detects. Later steps are renumbered and the step 4 cross-reference updated.

The admin MCP page already has a mint agent setup Tip, so it's unchanged.

Testing

  • mint broken-links, mint a11y pass
  • Vale: no new warnings
  • New step renders on the quickstart and Codex guide in mint dev
  • Agent Instructions block shows the new line on preview .md pages (mint dev doesn't serve .md exports)
  • Claude Code, Codex, and Cursor offer the command with the right --agent when asked to set up Mintlify from quickstart.md
  • Same agents don't run setup or flag an injection when reading an unrelated page such as components/cards.md

🤖 Generated with Claude Code


Note

Low Risk
Docs and agent-instruction text only; no product code, auth, or deployment behavior changes.

Overview
Documentation-only change that tells coding agents how to offer mint agent setup when helping users with Mintlify projects, instead of leaving that flow only on the admin MCP page.

docs.json adds a new Agent Instructions line (shown on exported .md pages) that agents should offer mint agent setup --agent <claude-code|codex|cursor> in the project directory, with a link to the CLI reference. Wording emphasizes offering the command so agents are less likely to run it unprompted.

snippets/agent-setup-workflow.mdx (quickstart plus Claude Code, Codex, and Cursor guides) inserts step 9: after validate/broken-links, offer to connect the user’s agent when Node.js is v22.20+, run setup with an explicit --agent flag for non-interactive terminals, and note OAuth completion in the agent. Step 1 now flags the Node version requirement; publish and post-deploy verification steps are renumbered to 10 and 11, with clearer split between logged-in Git deploys (skip claim) and mint deploy / claim flows.

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

Surface `mint agent setup` in the site-wide markdown instructions and
as an optional step in the agent setup workflow snippet. Agents are told
to offer the command and to pass --agent, because without a TTY it
configures every detected agent.

DOC-456

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Status Preview Updated
Mintlify Docs 🟢 Ready View Preview Oct 31, 2026, 5:16 PM

Flag the v22.20 requirement for step 9 up front in step 1, and split
step 11 by publish path so logged-in users aren't sent through the
claim flow. Both found by testing quickstart.md with Claude Code.

DOC-456

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ethanpalm
ethanpalm merged commit 4145800 into main Oct 31, 2026
6 checks passed
@ethanpalm
ethanpalm deleted the ethan/doc-456-add-mint-agent-setup-to-markdown-only-notes-for-agents branch October 31, 2026 17:27

This branch was successfully deployed

1 active deployment
staging — ed902cba Deployed Oct 31, 2026 by mintlify[bot]
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