Skip to content

feat: activate the Prismic MCP server when creating a repository#223

Merged
angeloashmore merged 2 commits into
mainfrom
aa/mcp-activate-on-create
Jul 10, 2026
Merged

feat: activate the Prismic MCP server when creating a repository#223
angeloashmore merged 2 commits into
mainfrom
aa/mcp-activate-on-create

Conversation

@angeloashmore

@angeloashmore angeloashmore commented Jul 10, 2026

Copy link
Copy Markdown
Member

Resolves:

Description

New repositories now have the Prismic MCP server activated automatically when created via prismic repo create or prismic init (including init --new). Agents can work with a new repository's content over MCP right away, with no manual activation step in the dashboard.

The activation call is best-effort — any failure is ignored (.catch(() => {})), so it can never break repository creation, and it's safe to remove once repositories are MCP-enabled server-side by default.

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Additive and best-effort; existing behavior is unchanged (all existing tests pass).

Preview

How to QA

npx prismic@pr-223 repo create

Then confirm MCP is active for the new repo — either in Settings → Prismic MCP in the dashboard, or by connecting the repo in an MCP-enabled agent. Creating a repo with a broken/unreachable activation endpoint should still succeed (the call is best-effort).

🤖 Generated with Claude Code


Note

Low Risk
Additive post-create side effect with errors ignored; core repo creation paths are unchanged on failure.

Overview
Repository creation now triggers a best-effort MCP activation so new repos are ready for agent/MCP use without a dashboard step. This applies to prismic repo create and any flow that uses shared createRepo (e.g. prismic init).

A new activateMCP client POSTs to https://api.internal.{host}/mcp/activation with the repo name and prismic-auth credentials. It runs after onboarding completion in createRepo; failures are swallowed with .catch(() => {}) so creation never fails if MCP is down.

Tests add getMCPActivationStatus and assert status is active or activating after repo create.

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

@angeloashmore angeloashmore force-pushed the aa/mcp-activate-on-create branch from b18cceb to 7a25ad6 Compare July 10, 2026 00:17
New repositories are activated for the Prismic MCP server so agents can work
with their content immediately, with no manual dashboard step. Best-effort:
failures are ignored, since repositories will eventually have MCP enabled on
the server by default.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@angeloashmore angeloashmore force-pushed the aa/mcp-activate-on-create branch from 7a25ad6 to 950df48 Compare July 10, 2026 00:24
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@angeloashmore angeloashmore merged commit c27fdfc into main Jul 10, 2026
16 checks passed
@angeloashmore angeloashmore deleted the aa/mcp-activate-on-create branch July 10, 2026 01: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