Download the PHP package blackcube/mcp without Composer

On this page you can find all versions of the php package blackcube/mcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mcp

Blackcube MCP

MCP server exposing the content administration operations of the Blackcube ecosystem, on top of blackcube/dcore. Opaque MCP keys or OAuth2 access tokens issued by the dboard authorization server, tools gated on dboard permissions, Streamable HTTP transport mounted as a PSR-15 middleware.

You generate an MCP key, or let an LLM client register itself and ask an administrator for consent; then the agent drives the content tree, blocs, taxonomy and discoverability through dcore — no parallel data path, no business logic duplicated.

Authentication

Two credentials open the server, both carrying dboard permissions:

The server publishes its protected resource metadata (RFC 9728) under /.well-known/oauth-protected-resource followed by the endpoint path, and points at /dboard/oauth/mcp, its population on the dboard side. Each tool declares the dboard permissions it gates on (PERMISSIONS), and MCP:CONNECT is required for any credential.

Packagist Version

Quickstart

The package is a dboard addon. Its DI, routes and parameters are merged by yiisoft/config; the host application declares the addon and its migrations in its parameters:

Psr\Clock\ClockInterface is expected from the host application (blackcube/oauth2 provides one); the package does not bind it.

locale (default en) is set on the translator for the endpoint only: every message sent back to the client, validation errors included, stays in that locale whatever the application locale.

allowedHosts (default []) lists the host names the endpoint answers to; any other Host header gets a 403. Left empty, only the host of the current request is allowed. An application usually fills it from a comma-separated environment variable (MCP_ALLOWED_HOSTS="cms.example.com, localhost", split on /\s*,\s*/).

Run the migrations, then create a key. Scopes are dboard permissions: MCP:CONNECT is mandatory, the others are the permissions the tools gate on (McpAddon::getScopes() lists them all). The token is printed once.

mcp:keyList, mcp:keyRevoke and mcp:keyGc complete the console side; the dboard "MCP keys" screen does the same, rotation included.

Point the MCP client at the endpoint (Streamable HTTP) with the token as a bearer:

An OAuth2-capable client needs no key: it discovers the authorization server from /.well-known/oauth-protected-resource/mcp, registers itself and asks an administrator for consent.

Tests

License

BSD-3-Clause. See LICENSE.md.

Author

Philippe Gaultier [email protected]


All versions of mcp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
mcp/sdk Version ^0.9
blackcube/active-record Version ^1.0
blackcube/dboard Version ^1.0
blackcube/dcore Version ^1.0
blackcube/handler Version ^1.0
blackcube/injector Version ^1.0
blackcube/bridge-form-model Version ^1.0
guzzlehttp/guzzle Version ^8.3
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
yiisoft/active-record Version ^1.1
yiisoft/aliases Version ^3.1
yiisoft/cache Version ^3.2
yiisoft/cache-file Version ^3.2
yiisoft/csrf Version ^2.2
yiisoft/db Version ^2.1
yiisoft/db-migration Version ^2.2
yiisoft/form-model Version ^1.1
yiisoft/hydrator Version ^1.6
yiisoft/injector Version ^1.2
yiisoft/log Version ^2.2
yiisoft/yii-console Version ^2.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package blackcube/mcp contains the following files

Loading the files please wait ...