ChannelsHelp Center & Portal

Portal MCP tools

Manage the portal, its pages, assets and domains through Copilot or any MCP client.

Everything in the customer portal can be managed by an AI agent: Copilot in the dashboard, or any MCP client connected through Octocom MCP. Ask it to build a returns page, translate the help center or connect a domain, and it uses the tools below. This page is the reference for those tools.

Portal management tools use the authenticated organization's scope and require a businessId. Use the organization selector required by your connected tool's schema; IDs and content cannot be accessed across organizations. Write tools require write access and are unavailable through a read-only connection.

Configuration

ToolPurpose
get_portal_configurationRead the three enablement flags and built-in portal URL.
update_portal_configurationSet portal, help-center and public article API enablement.

Configuration updates take a config object containing all three booleans. Read the current configuration first and preserve settings you are not changing. For a custom-pages-only portal with public article APIs:

{
  "businessId": "00000000-0000-4000-8000-000000000001",
  "config": {
    "enabled": true,
    "helpCenterEnabled": false,
    "publicArticlesEnabled": true
  }
}

Replace example IDs with the actual business and organization IDs required by your client. Disabling does not delete content.

Help center languages and branding

ToolPurpose
get_help_center_settingsRead the main language, the additional languages and the branding (logo, header, links, socials).
update_help_center_settingsChange the languages and/or replace the branding. Omitted sections are unchanged.
update_portal_domainPin a connected domain to one language, such as aide.example.com for French, or null for all of them. Set primary: true to make it the main address that the built-in address redirects to.

Articles are written in the main language. Add the other languages here before saving article translations with set_article_translation; folder names are translated with update_article_folder. Articles and folders themselves are managed with the knowledge base tools (list_articles, create_article, list_article_folders and related tools).

Pages and assets

ToolPurpose
list_portal_pagesList custom pages, publication state, unpublished changes and help-center path conflicts. Built-in pages are not rows here.
get_portal_pageRead draft and published HTML and both asset manifests.
save_portal_pageCreate or replace the draft at an exact path; does not publish.
preview_portal_pageIssue a 30-minute bearer link to the latest saved draft; replaces the previous link.
publish_portal_pagePublish saved draft HTML and assets together; revoke previews.
unpublish_portal_pageRemove publication, retain the draft and revoke previews.
delete_portal_pageDelete both versions and revoke previews; keep uploaded assets.
upload_portal_assetUpload supported base64 file bytes; return an immutable asset ID and relative path.
list_portal_assetsList assets, paths, types and sizes.
delete_portal_assetDelete an asset only when no draft or published manifest references it.

Get, preview, publish, unpublish and delete operations use the resource's id alongside businessId. Asset deletion uses the asset ID, not a page ID.

Author and publish a page

  1. Read portal configuration and list existing pages. Confirm the target path and whether the built-in help center shadows it.
  2. Upload needed assets and place their returned literal relative paths in HTML.
  3. Save the complete HTML as a draft. Include every used uploaded asset ID in assetIds; MCP does not automatically infer references.
  4. Generate a preview link and inspect it. Test integrations using controlled data; form submissions can create real conversations and send emails.
  5. Publish the page and verify its public URL. Publishing takes effect immediately.

Example save_portal_page arguments for a page without uploaded assets:

{
  "businessId": "00000000-0000-4000-8000-000000000001",
  "page": {
    "path": "/support",
    "title": "Support",
    "html": "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>Support</title></head><body><h1>How can we help?</h1></body></html>",
    "assetIds": []
  }
}

Use the returned page ID for preview and publication. See Portal custom pages for routing, browser rules and limits, and Portal assets for visibility and deletion rules.

Domains

ToolPurpose
list_portal_domainsRead stored connection status, DNS instructions, errors and provisioning availability.
connect_portal_domainReserve a hostname, provision it and its certificate, and return customer DNS instructions.
refresh_portal_domainCheck ownership and hostname activation, authorize routing, then check HTTPS delivery.
disconnect_portal_domainRemove the hostname and its provisioned route. Customer DNS must be removed separately.

Connect takes hostname and businessId. Refresh and disconnect take the returned domain id and businessId. Connecting alone does not activate visitor routing: complete the DNS instructions and refresh the connection. Refresh changes routing when checks pass, so it is a write tool.

See Portal custom domains for proxied DNS, connection statuses and retry behavior.

On this page