Until now, almost everything in Pricore went through the web interface. Connecting a repository, creating a Composer token for a new pipeline, inviting a colleague: someone had to log in and click through it. That’s fine for a handful of packages, but it gets in the way when you want to provision a new project from a script, or ask your AI assistant which version of an internal package is affected by an advisory.

v0.59.0 opens Pricore up to automation in two ways. A versioned REST API with scoped tokens lets you script your registry, and a built-in MCP server lets AI assistants work with your packages directly.

A REST API for your registry

Everything you manage in the web interface is now available under /api/v1: organizations, repositories, packages and versions, members and invitations, registry mirrors and access tokens. Authenticate with a personal or organization token as a Bearer token:

curl -H "Authorization: Bearer $PRICORE_TOKEN" \
     -H "Accept: application/json" \
     https://pricore.yourcompany.com/api/v1/user/organizations

That makes the routine setup work scriptable. An installer for a new project can mint its own Composer token and connect its repository without anyone touching the UI:

curl -X POST \
     -H "Authorization: Bearer $PRICORE_TOKEN" \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -d '{"name": "Billing CI", "scopes": ["composer"]}' \
     https://pricore.yourcompany.com/api/v1/organizations/acme/tokens

You can also trigger a sync of a repository or mirror, update the package paths of a monorepo, or clean up old versions, all from your own tooling.

The API ships with interactive documentation at /docs/api on your own instance, where you can browse and try every endpoint. The full OpenAPI 3.1 specification is published alongside it, so you can generate a client in the language of your choice.

Scoped access tokens

An API needs tokens that can do more than install packages, and a token that can do everything is a risk waiting to happen. So every token now carries scopes that you pick when you create it:

PermissionScopeAllows
InstallcomposerInstalling packages with Composer
Publishwrite:packagesUploading versions of uploaded packages
API accessread:*, write:*, delete:*Managing repositories, packages, members, mirrors and tokens through the API

A deploy pipeline only needs composer. A provisioning script might need write:repositories and write:tokens, but never delete:organizations. You can change a token’s name and scopes later from the token list, and the token value stays the same.

Scopes never override roles. Every request is checked against both the token’s scopes and your role in the organization, so a personal token can never do more than its owner can. A token can also only grant scopes it holds itself.

Existing tokens keep working. Read-only tokens can still install packages, and tokens that could publish keep that ability.

An MCP server for AI assistants

Pricore now includes a Model Context Protocol server at /mcp. Connect Claude, Cursor, VS Code or any other MCP client, and your assistant can look up your private packages the same way it already looks up public ones.

There’s no token to create or paste. When a client connects for the first time, your browser opens Pricore, you sign in and choose Authorize, and the client takes it from there. In Claude Code, that’s one command:

claude mcp add --transport http pricore https://pricore.yourcompany.com/mcp

Run /mcp and choose Authenticate to sign in. For Cursor and VS Code, add Pricore as a remote HTTP server in .cursor/mcp.json or .vscode/mcp.json.

Once connected, you can ask things like “which of our packages are affected by a known vulnerability?” or “what does the latest version of acme/billing require?”. The assistant has these tools available:

ToolDescriptionRequired role
list-organizationsYour organizations, your role and the Composer repository URLAny
search-packagesSearch packages by name or descriptionMember
get-packageVersions, requirements and advisories of a package versionMember
list-vulnerabilitiesAdvisories affecting the latest stable version and dev branchesMember
list-repositoriesConnected repositories and their sync statusMember
sync-repositoryQueue a repository syncAdmin or owner
add-repositoryConnect a repository and start its first syncAdmin or owner
create-access-tokenCreate an organization Composer tokenAdmin or owner

An MCP client acts as you, and every tool checks your role in the organization exactly like the web interface does. Destructive actions, such as deleting packages or repositories, managing members or changing organization settings, are deliberately left out.

Connected apps

Under Settings → Connected Apps you can see every assistant you have authorized and revoke any of them. A revoked client stops working immediately and has to be authorized again to reconnect.

Also in this release

  • Webhook secrets. Repository webhook secrets were visible to every organization member. Only owners and admins can see them now.
  • Dependencies. Laravel and all other dependencies are updated, resolving every known Composer security advisory.

Upgrading

  • Docker: pulling the new image is enough. Migrations run and the OAuth keys for the MCP server are generated automatically on first boot.
  • Manual installations: run php artisan migrate, then php artisan passport:keys once to generate the OAuth keys. If you run several instances behind a load balancer, they all need the same keys.

The MCP server is enabled by default. Set MCP_ENABLED=false to turn it off, or use MCP_REDIRECT_DOMAINS to restrict which clients may connect. Make sure APP_URL is your public Pricore URL, because clients discover the OAuth endpoints through it. To connect Claude Desktop or claude.ai, Pricore must be reachable from the internet.

Coming from a version before 0.58.4? That release moved the Docker image to PHP 8.4.27, which fixes two critical remote code execution vulnerabilities in PHP, so this is a good moment to update.

Ready to ship private packages?

Start a managed registry in minutes, or run the same open-source code on your own infrastructure.