Skip to main content
BYOM’s integration for outside agents is one contract served three ways: an MCP server at https://api.byom.co/v1/mcp, a REST API at https://api.byom.co/v1 and the byom command-line tool. An agent reads the company data its connection allows and proposes changes. Every change it proposes becomes an Action, approved in BYOM by a person. No token, scope, tool or command can approve an Action. The full contract is generated from BYOM’s operation registry on every request, so it matches the operations the server defines:

Choose what you are connecting

A connection to the public MCP server belongs to one company, chosen on BYOM’s consent page. Nothing in a request can change the company. The Shopify MCP connector is a separate, older surface for one Shopify store; its tools and consent model are its own. The Shopify app is coming to the App Store. Contact BYOM about access and confirm that your AI client supports the connector. You can configure the documentation MCP alongside either connection in one client, with distinct names such as BYOM docs and BYOM. Keep their URLs, permissions and data separate. A successful documentation search does not mean a company is connected.

Tools on the public MCP server

These are the operations the public contract defines. Each is the same operation through MCP, the REST API and the CLI. tools/list shows the ones a connection’s scopes allow; byom_capabilities_list says which are usable now, and why any is not. “Creates an Action” describes the call itself. An objective started with byom_objectives_start can raise Actions later, and each one is approved in BYOM by a person in the same way.

The integration lifecycle

A client discovers the authorised resource and OAuth metadata (OAuth 2.1 with PKCE), completes the consent flow, initialises MCP and lists the tools visible to that grant. It calls the discovered tool with arguments matching the returned schema, then handles both protocol errors and tool-level failures. Do not hard-code an assumed list of available tools. Visibility depends on the grant’s scopes or data classes, write enablement and current account capabilities.
1

Confirm access and the task

Obtain the connector URL from the enabled account. Identify which store and data classes the integration needs. A client reading a product catalogue needs a different grant from one working with customer-service information.
2

Let the merchant authorise the client

Follow the resource and OAuth metadata. Use the supported PKCE flow; keep the merchant’s consent and resource binding intact. Do not collect a store password or put a bearer token into a conversation.
3

Negotiate and inspect

Initialise MCP, discover tools and call byom_principal_whoami on the public server (about_this_connection on the Shopify connector). Confirm the company and returned permissions before making a business-data request.
4

Prove a small read

Choose an advertised read tool, follow its input schema and inspect both the structured result and the error flag. Verify the answer against the intended record before adding a larger workflow.
5

Add proposals only where supported

If the client and grant support proposals, preserve the merchant-facing review interface. Check the eventual result and receipt rather than treating proposal creation as execution.

Keep the effect boundary

A model may read and prepare a proposal. Confirmation authority stays with the merchant-facing review interface. A client must not treat a model’s “yes” as a merchant’s approval. Show the returned status clearly. Prepared means there is work to review. Approved means the required decision was recorded. Executed, failed or partial describes the attempt’s outcome. Read the returned state instead of collapsing all three into “done”. The supported review surface may combine confirmation with execution; do not insert an invented second confirmation or bypass the one that is required.

Example: a catalogue-review assistant

Suppose a merchant wants help improving a product description. First confirm that the grant can read the relevant catalogue information. Retrieve the specific product through a discovered tool and ask the model to distinguish source facts from suggested wording. A list result may contain shortened text; use the specific record’s retrieval tool when the full text matters. Present the draft and its rationale. If a supported proposal tool is visible, the integration can prepare the change for the merchant’s review. If it is absent, retain the draft as internal work and explain the limitation. Never invent a direct write endpoint to complete the workflow.

What a useful integration must handle

  • The merchant cancels authorisation or chooses a different store.
  • A read is allowed but a proposal capability is not.
  • A provider permission is missing despite a valid BYOM grant.
  • A tool returns isError: true inside an HTTP 200 response.
  • Source data changes between a proposal and confirmation.
  • A timeout leaves the result uncertain.
  • Consent is revoked or the connection is disconnected.
Treat these as normal product states with clear recovery instructions. The errors guide explains which failures need a user action and which may justify a bounded retry.

UCP and commerce readiness

The Universal Commerce Protocol (UCP) describes commerce interactions such as product discovery and checkout. Each implementation supports its own capabilities. A catalogue assessment or successful product lookup does not establish checkout or payment support. For BYOM’s documented client integration, use the public contract at api.byom.co/v1/docs. Confirm any commerce capability against your enabled account and the relevant provider before building on it. These docs publish no UCP checkout or payment API. The product-content guide explains how to use available AI-shopping readiness evidence to choose a useful catalogue improvement. Reviewed 14 November 2026.