Register custom tools

After you deploy your custom tools server, register its MCP endpoint with the Shopper MCP Server. Registration adds your endpoint to the Commerce Shopper MCP Server Registry for your Adobe Commerce instance. The Shopper MCP Server then lists your tools alongside its default tools and calls your endpoint when an agent uses a custom tool.

You register the endpoint with the Adobe-provided bin/onboard-custom-tools script, which you run from your Commerce instance.

Before you begin before-you-begin

  • Deploy your custom tools server and note its MCP endpoint URL. The endpoint must use HTTPS on <namespace>.adobeioruntime.net or runtime.adobe.io. The script rejects other hosts.
  • Upload the onboard-custom-tools script to the bin folder in your Adobe Commerce root folder.
  • Confirm that the Commerce Services Connector uses Adobe Commerce JWT credentials (Magento_JWT mode). The script signs requests with these credentials. If the connector uses IMS technical-account credentials, the script warns that the registry might reject the request.

Register your endpoint register

Run these commands from the Adobe Commerce root folder. Replace the URL with the endpoint from your own deployment. The registry uses the exact URL that you supply and does not append /mcp.

  1. Preview the registration request without sending it:

    code language-bash
    php bin/onboard-custom-tools onboard --dry-run \
      --runtime-url=https://<namespace>.adobeioruntime.net/api/v1/web/<package>/mcp-tool
    
  2. Register the endpoint:

    code language-bash
    php bin/onboard-custom-tools onboard --env=production --created-by="<your-name>" \
      --runtime-url=https://<namespace>.adobeioruntime.net/api/v1/web/<package>/mcp-tool
    

    To add the custom tools server to the sandbox registry, use --env=sandbox.

  3. Confirm the registration and the discovered tools:

    code language-bash
    php bin/onboard-custom-tools get
    
  4. In your MCP client, call tools/list and confirm that your custom tools appear.

Manage the registration manage

Task
Command
Refresh tool definitions after you deploy tool changes
php bin/onboard-custom-tools refresh
Display the current registration and stored tools
php bin/onboard-custom-tools get
Replace the registered endpoint
Run onboard again with the new --runtime-url
Remove the registration
php bin/onboard-custom-tools delete

Command reference reference

Commands commands

Command
Description
onboard
Registers or replaces the Runtime URL and fetches its tools. Requires --runtime-url.
refresh
Fetches updated tool definitions from the registered Runtime.
get
Displays the current registration and stored tools.
delete
Removes the registration.

Options options

Option
Description
--env=production|sandbox
Selects the Services Connector keys and registry. Defaults to magento_saas/environment, then production.
--runtime-url=<url>
Full MCP endpoint URL used by onboard. The script does not append /mcp.
--created-by=<text>
Optional author name stored with the registration.
--tenant-id=<id>
Overrides the tenant ID. The default is the Services Connector environment ID.
--registry-url=<url>
Overrides the registry GraphQL endpoint.
--dry-run
Displays the endpoint, payload, and masked headers without sending a request.
-h, --help
Displays usage.

Registry endpoints registry-endpoints

Environment
GraphQL endpoint
Production
https://commerce-storefront.adobe.io/mcp-registry/graphql
Sandbox
https://commerce-storefront-sandbox.adobe.io/mcp-registry/graphql
recommendation-more-help
commerce-help-shopper-mcp