Skip to main content
Version: Next

MCP Tools

The bundle contributes MCP tools to the Pimcore Agent that read Simple REST configurations and propose changes to them.

The tools are registered only when the Change Control bundle and the Pimcore Agent bundle are installed and enabled. They reach a caller in one of two ways:

  • Agent chat: every tool below, in the Pimcore Agent's tool groups pimcore-data-hub-simple-rest-read and pimcore-data-hub-simple-rest-propose.
  • Studio-managed MCP server: only the tools tagged pimcore.studio_backend.mcp_tool. They are listed in the Studio tool catalogue (GET /pimcore-studio/api/mcp/tools), and an administrator can assign them to a configured MCP server (/pimcore-mcp/studio/<slug>) that external MCP clients connect to. Such a client carries no agent chat session; a proposal it makes is stored in the calling user's session on that server.
ToolPurposeRead / writePropose / direct-writeStudio-managed server
list_simple_rest_configsList the Simple REST configurations the user may read, with group, description and whether each is active.read–yes
get_simple_rest_configRead one Simple REST configuration in full; a proposal sends back only the sections and keys it changes.read–yes
propose_simple_rest_configPropose changes to a Simple REST configuration, or a new one, for review in a change set.writeproposeyes
  • Read / write: a read tool is annotated readOnlyHint: true, so a Studio-managed server offers it under the OAuth scope mcp:read; the propose tool is offered under mcp:write.
  • Propose / direct-write: no tool of this bundle writes a configuration directly. propose_simple_rest_config records the configuration as a proposal in a change set; it is applied only once a user approves it. From the agent chat the proposal is stored in the chat session and reviewed on its card; from a Studio-managed server it is stored in the calling user's session on that server and reviewed in Studio's change requests.
  • Permissions: every tool runs as the calling user. It needs the plugin_datahub_config permission and, for a single configuration, read access to it (list_simple_rest_configs lists only those).
  • Withheld fields: get_simple_rest_config leaves out deliverySettings, schema.assets.deliveryUrlSigningKey, permissions, workspaceSettings and names them under withheld; propose_simple_rest_config refuses a proposal that carries them. The delivery settings hold the API keys of the endpoint and its MCP server, the signing key signs the anonymous asset delivery URLs, and permissions decide who may approve a proposal; a person changes them in the Data Hub editor. An approved proposal keeps the stored signing key; it is rotated only with the editor's regenerate action.

Tools of the Simple REST MCP endpoint​

The bundle also serves its own MCP endpoint, /pimcore-datahub-webservices/simplerest-mcp, with tools that query the indexed data of a configuration (see MCP Server Integration). They are a separate server: a caller authenticates with the API key of a configuration that has the MCP server enabled, and the tools see only what that configuration delivers. They are not tagged pimcore.studio_backend.mcp_tool, as a Studio-managed server would call them as a Studio user instead of under a configuration's API key.

ToolPurposeRead / writePropose / direct-writeStudio-managed server
pimcore_datahub_list_configsList the configurations the API key may query.read–no, own endpoint
pimcore_datahub_get_config_schemaList the indexed fields of a configuration with their types.read–no, own endpoint
pimcore_datahub_get_query_syntaxReturn the query syntax reference for search and tree queries.read–no, own endpoint
pimcore_datahub_searchSearch the data objects and assets of a configuration.read–no, own endpoint
pimcore_datahub_tree_itemsList the children of a tree node.read–no, own endpoint
pimcore_datahub_get_by_idRead one data object or asset by id.read–no, own endpoint
pimcore_datahub_get_canonical_urlsResolve the public website URLs of assets.read–no, own endpoint

pimcore_datahub_search, pimcore_datahub_tree_items and pimcore_datahub_get_by_id take an optional language when the configuration indexes additional languages for its localized fields; pimcore_datahub_list_configs lists them as localized_languages. See Filtering and Paging.