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
| Tool | Purpose |
|---|---|
get_portal_configuration | Read the three enablement flags and built-in portal URL. |
update_portal_configuration | Set 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
| Tool | Purpose |
|---|---|
get_help_center_settings | Read the main language, the additional languages and the branding (logo, header, links, socials). |
update_help_center_settings | Change the languages and/or replace the branding. Omitted sections are unchanged. |
update_portal_domain | Pin 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
| Tool | Purpose |
|---|---|
list_portal_pages | List custom pages, publication state, unpublished changes and help-center path conflicts. Built-in pages are not rows here. |
get_portal_page | Read draft and published HTML and both asset manifests. |
save_portal_page | Create or replace the draft at an exact path; does not publish. |
preview_portal_page | Issue a 30-minute bearer link to the latest saved draft; replaces the previous link. |
publish_portal_page | Publish saved draft HTML and assets together; revoke previews. |
unpublish_portal_page | Remove publication, retain the draft and revoke previews. |
delete_portal_page | Delete both versions and revoke previews; keep uploaded assets. |
upload_portal_asset | Upload supported base64 file bytes; return an immutable asset ID and relative path. |
list_portal_assets | List assets, paths, types and sizes. |
delete_portal_asset | Delete 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
- Read portal configuration and list existing pages. Confirm the target path and whether the built-in help center shadows it.
- Upload needed assets and place their returned literal relative paths in HTML.
- Save the complete HTML as a draft. Include every used uploaded asset ID in
assetIds; MCP does not automatically infer references. - Generate a preview link and inspect it. Test integrations using controlled data; form submissions can create real conversations and send emails.
- 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
| Tool | Purpose |
|---|---|
list_portal_domains | Read stored connection status, DNS instructions, errors and provisioning availability. |
connect_portal_domain | Reserve a hostname, provision it and its certificate, and return customer DNS instructions. |
refresh_portal_domain | Check ownership and hostname activation, authorize routing, then check HTTPS delivery. |
disconnect_portal_domain | Remove 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.