MCP Tools
The Data Hub contributes MCP tools to the Pimcore Agent that read GraphQL 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-graphql-readandpimcore-data-hub-graphql-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.
| Tool | Purpose | Read / write | Propose / direct-write | Studio-managed server |
|---|---|---|---|---|
list_graphql_configs | List the GraphQL configurations the user may read, with group, description and whether each is active. | read | – | yes |
get_graphql_config | Read one GraphQL configuration in full; a proposal sends back only the sections and keys it changes. | read | – | yes |
propose_graphql_config | Propose changes to a GraphQL configuration, or a new one, for review in a change set. | write | propose | yes |
- Read / write: a read tool is annotated
readOnlyHint: true, so a Studio-managed server offers it under the OAuth scopemcp:read; the propose tool is offered undermcp:write. - Propose / direct-write: no tool of this bundle writes a configuration directly.
propose_graphql_configrecords 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_configpermission and, for a single configuration, read access to it (list_graphql_configslists only those). - Withheld fields:
get_graphql_configleaves outsecurity,permissionsand names them underwithheld;propose_graphql_configrefuses a proposal that carries them. They hold the API keys and the authentication settings, and decide who may approve a proposal; a person changes them in the Data Hub editor.
The read and propose logic these tools share (ConfigProposalTools) is used by the Data Hub adapters as well; each
adapter bundle documents its own tools.