Current documentation. Version and compatibility notes.

AppPortal MCP

Install and verify the CLI using CLI installation before following this guide.

AppPortal’s CLI hosts an MCP server locally over stdio. Codex, Claude Code, Hermes, OpenClaw, and other MCP clients launch appportal mcp as a child process. The client configuration contains no AppPortal access token, callback URL, or remote MCP endpoint.

How the connection works

Coding agent ── local stdio ──> appportal mcp ── OAuth ──> AppPortal agent-data API

The BI HTTP reference describes the protected reporting and dashboard operations behind the corresponding tools. It is separate from the local MCP protocol.

The CLI owns MCP protocol handling and OAuth token refresh. AppPortal hosts a narrow agent-data API, not a remote MCP transport. This keeps the agent’s configuration portable and avoids copying a long-lived credential into project files.

Authenticate the CLI

Confirm the CLI is available, then sign in explicitly:

appportal --version
appportal auth login
appportal auth status

Only appportal auth login can open a browser. It uses OAuth Authorization Code + PKCE with a temporary loopback callback and protects the rotating session for the current operating-system user. Use --no-browser to print the authorization URL instead.

Starting appportal mcp never opens a browser or begins an OAuth flow. If the saved session is missing, expired, or revoked, a tool call returns an instruction to run appportal auth login.

Connect an agent

Every stdio-capable MCP client needs the same process definition:

{
  "mcpServers": {
    "appportal": {
      "command": "appportal",
      "args": ["mcp"]
    }
  }
}

See connect Codex, Claude Code, Hermes, OpenClaw, and other clients for client-specific commands and verification steps.

Use named profiles

Profiles let multiple agents or customer contexts keep separate OAuth connections and consent grants:

appportal auth login --profile selected-customer-access
appportal auth status --profile selected-customer-access

Select the same profile when the agent launches MCP:

{
  "mcpServers": {
    "appportal-customer": {
      "command": "appportal",
      "args": ["mcp", "--profile", "selected-customer-access"]
    }
  }
}

A profile name is only a local selector; it is not a credential. Use distinct profiles when an agent should have access to different organizations/apps or different action scopes.

Tools available to agents

Discovery uses the selected profile’s saved issued scopes. It does not refresh tokens or read customer data. With no readable profile, only local inspection is advertised. Invocation checks the refreshed grant and current server access, so a listed tool can still be unavailable for the account, plan, role or app. The installed tools/list schema is the authority for arguments and bounds.

The indexed client catalog below matches the source-qualified CLI candidate 348da55 (source commit 348da557d4684329b385efe94a69e91da1e04e88). This identifies a tested source artifact, not a public package release. A package with a different version can expose different tools and required arguments. The availability table separates this candidate from newer client-source contracts and API-only operations. Check both the installed schema and the selected API before calling a tool; scope consent cannot add an absent operation. All scopes in a row are required together; None means no OAuth scope. Required arguments are the schema’s top-level fields; conditional requirements and current authorization still apply. Select the app and environment explicitly, or use the supported profile default. See the conversation examples for a session investigation, funnel and incident handoff.

Tool Required saved scopes Schema-required arguments Behavior API coverage
inspect_mobile_project None None Local read Local inspection
get_bi_catalog mcp:overview.read appId Read Included in this API reference
query_bi_metric mcp:overview.read appId, measure, from, to Read Included in this API reference
list_dashboards mcp:overview.read appId Read Included in this API reference
get_dashboard mcp:overview.read appId, dashboardId Read Included in this API reference
preview_dashboard_mutation mcp:overview.read, mcp:dashboards.write appId, idempotencyKey, request Preview Included in this API reference
apply_dashboard_mutation mcp:overview.read, mcp:dashboards.write appId, idempotencyKey, request, confirmationToken, expiresAt Write Included in this API reference
query_dashboard_widget mcp:overview.read appId, dashboardId, widgetId, dashboardVersion, from, to Read Included in this API reference
get_app_overview mcp:overview.read None Read Included in this API reference
get_usage_summary mcp:overview.read appId Read Included in this API reference
get_usage_breakdown mcp:overview.read appId, dimension Read Included in this API reference
query_events mcp:overview.read appId Read Included in this API reference
query_rum mcp:overview.read appId Read Included in this API reference
query_funnel mcp:overview.read appId, steps Read Included in this API reference
get_crash_triage mcp:crashes.read appId Read Included in this API reference
get_crash_occurrences mcp:crashes.read appId, bucketId Read Included in this API reference
get_session_story mcp:overview.read, mcp:crashes.read, mcp:logs.read appId, sessionId Read Included in this API reference
preview_crash_note mcp:crashes.read, mcp:crashes.write appId, bucketId, note, operationId Preview Included in this API reference
preview_crash_workflow mcp:crashes.read, mcp:crashes.write appId, bucketId, status, operationId Preview Included in this API reference
add_crash_note mcp:crashes.read, mcp:crashes.write appId, bucketId, note, operationId, confirmationToken Write Included in this API reference
update_crash_workflow mcp:crashes.read, mcp:crashes.write appId, bucketId, status, operationId, confirmationToken Write Included in this API reference
get_crash_assignees mcp:crashes.read, mcp:crashes.write, mcp:crashes.assign appId Read Included in this API reference
search_logs mcp:logs.read appId Read Included in this API reference
get_log_details mcp:logs.read appId, logId Read Included in this API reference
list_members mcp:account.read None Read Included in this API reference
get_plan mcp:account.read None Read Included in this API reference
get_quota mcp:account.read None Read Included in this API reference
get_release_summary mcp:releases.read appId Read Included in this API reference
get_builds mcp:releases.read appId Read Included in this API reference
get_release_health mcp:overview.read, mcp:crashes.read, mcp:releases.read appId, version Read Included in this API reference
compare_releases mcp:overview.read, mcp:crashes.read, mcp:releases.read appId, version Read Included in this API reference
list_smart_links mcp:smart-links.read appId Read Included in this API reference
get_link_analytics mcp:smart-links.read appId; at least one of linkId, slug Read Included in this API reference
list_smart_link_environments mcp:smart-links.read appId Read Included in this API reference
preview_smart_link mcp:smart-links.read, mcp:smart-links.write appId, environment, slug, displayName, fallbackUrl, operationId; at least one of deepLinkUrl, iosDeepLinkUrl, androidDeepLinkUrl Preview Included in this API reference
create_smart_link mcp:smart-links.read, mcp:smart-links.write appId, environment, slug, displayName, fallbackUrl, operationId, confirmationToken; at least one of deepLinkUrl, iosDeepLinkUrl, androidDeepLinkUrl Write Included in this API reference
preview_smart_link_environment mcp:smart-links.read, mcp:smart-links.write appId, baseDomainId, environment, operationId Preview Included in this API reference
create_smart_link_environment mcp:smart-links.read, mcp:smart-links.write appId, baseDomainId, environment, operationId, confirmationToken Write Included in this API reference
get_locations mcp:geofences.read appId Read Included in this API reference
get_geofences mcp:geofences.read appId Read Included in this API reference
get_geofence_tags mcp:geofences.read appId Read Included in this API reference
preview_geofence_change mcp:geofences.write appId, request Preview Included in this API reference
apply_geofence_change mcp:geofences.write appId, request, confirmationToken, operationId Write Included in this API reference
preview_bulk_radial_geofences mcp:geofences.write appId, request Preview Included in this API reference
apply_bulk_radial_geofences mcp:geofences.write appId, request, previewDigest, confirmationToken, operationId Write Included in this API reference
preview_geofence_tag_policy mcp:geofences.write appId, request Preview Included in this API reference
apply_geofence_tag_policy mcp:geofences.write appId, request, confirmationToken, operationId Write Included in this API reference

get_link_analytics requires either linkId or slug. Delegated crash assignment additionally requires mcp:crashes.assign and an eligible handle returned by get_crash_assignees; a guessed user ID is not sufficient. Account reads have the separate organization-wide rules below. BI tool names can be discoverable without BI plan access; normal telemetry remains separate from premium BI.

The default read profile covers overview, usage, events, RUM, crashes, logs, releases and builds. Account access and writes require explicit additional consent. Forward-consented distribution and messaging scopes do not add tools to this catalog. Release metadata uses mcp:releases.read; there is no distribution publish, message send or persisted-report scheduling tool here.

Other client-source contracts

These schemas belong to newer client source, not the matching 348da55 candidate above. They are retained as a separate compatibility index; they are not additional tools a profile can unlock in that candidate. Some share a name with an older tool but require different arguments. Do not combine those schemas or infer availability from consent. The selected API column describes source coverage only; no public package or deployed client walkthrough is asserted. Newer all-product presets also request alert, issue and report scopes that this selected server does not issue. Do not assume a newer preset is compatible or silently remove requested consent to make login succeed; choose a qualified client/API pair for the intended workflow.

Tool in newer client source Required saved scopes Schema-required arguments Behavior Selected API coverage
ask mcp:overview.read appId, question Read API included; tool absent from matching CLI
preview_structured_dashboard_mutation mcp:overview.read, mcp:dashboards.write appId, idempotencyKey, request Preview API included; tool absent from matching CLI
apply_structured_dashboard_mutation mcp:overview.read, mcp:dashboards.write appId, idempotencyKey, request, confirmationToken, expiresAt Write API included; tool absent from matching CLI
list_issue_targets mcp:crashes.read, mcp:issues.read appId Read Separate API integration required
list_linked_issues mcp:crashes.read, mcp:issues.read appId, bucketId Read Separate API integration required
preview_create_issue_from_crash mcp:crashes.read, mcp:issues.read, mcp:issues.write appId, bucketId, targetHandle, idempotencyKey Preview Separate API integration required
create_issue_from_crash mcp:crashes.read, mcp:issues.read, mcp:issues.write appId, bucketId, targetHandle, idempotencyKey, confirmationToken Write Separate API integration required
preview_link_crash_to_issue mcp:crashes.read, mcp:issues.read, mcp:issues.write appId, bucketId, targetHandle, idempotencyKey, issueKey Preview Separate API integration required
link_crash_to_issue mcp:crashes.read, mcp:issues.read, mcp:issues.write appId, bucketId, targetHandle, idempotencyKey, issueKey, confirmationToken Write Separate API integration required
list_report_jobs mcp:reports.read appId Read Separate API integration required
get_report_job mcp:reports.read appId, jobId Read Separate API integration required
preview_report_generation mcp:reports.read, mcp:reports.write, mcp:reports.generate appId, request, idempotencyKey Preview Separate API integration required
apply_report_generation mcp:reports.read, mcp:reports.write, mcp:reports.generate appId, request, idempotencyKey, confirmationToken Write Separate API integration required
preview_report_artifact mcp:reports.read, mcp:reports.export appId, jobId, request, idempotencyKey Preview Separate API integration required
apply_report_artifact mcp:reports.read, mcp:reports.export appId, jobId, request, idempotencyKey, confirmationToken Write Separate API integration required
list_report_schedules mcp:reports.read appId Read Separate API integration required
get_report_schedule mcp:reports.read appId, scheduleId Read Separate API integration required
preview_report_schedule mcp:reports.read, mcp:reports.write appId, idempotencyKey, request Preview Separate API integration required
apply_report_schedule mcp:reports.read, mcp:reports.write appId, idempotencyKey, request, confirmationToken Write Separate API integration required
preview_report_schedule_state mcp:reports.read, mcp:reports.write appId, scheduleId, idempotencyKey, request Preview Separate API integration required
apply_report_schedule_state mcp:reports.read, mcp:reports.write appId, scheduleId, idempotencyKey, request, confirmationToken Write Separate API integration required
get_structured_bi_catalog mcp:overview.read appId Read API included; tool absent from matching CLI
query_structured_bi_metric mcp:overview.read appId, query, from, to Read API included; tool absent from matching CLI
list_structured_dashboards mcp:overview.read appId Read API included; tool absent from matching CLI
get_structured_dashboard mcp:overview.read appId, dashboardId Read API included; tool absent from matching CLI
query_structured_dashboard_widget mcp:overview.read appId, dashboardId, widgetId, dashboardVersion, from, to Read API included; tool absent from matching CLI
list_alert_rules mcp:alerts.read appId Read Separate API integration required
get_alert_rule mcp:alerts.read appId, ruleId Read Separate API integration required
preview_alert_rule mcp:alerts.read, mcp:alerts.write appId, request, idempotencyKey Preview Separate API integration required
apply_alert_rule mcp:alerts.read, mcp:alerts.write appId, request, idempotencyKey, confirmationToken Write Separate API integration required
preview_alert_mute mcp:alerts.read, mcp:alerts.write appId, ruleId, request, idempotencyKey Preview Separate API integration required
apply_alert_mute mcp:alerts.read, mcp:alerts.write appId, ruleId, request, idempotencyKey, confirmationToken Write Separate API integration required
detect_anomalies mcp:alerts.read appId, mode Read Separate API integration required

Ask a bounded analytics question

The selected API implements POST /mcp/bi/ask; the matching 348da55 CLI candidate does not expose an ask tool. A newer client source has that schema, which needs its own compatibility qualification. Do not send an ask tool call to this candidate. The HTTP operation accepts documented English questions such as How many sessions in the last 7 days? or Show sessions by platform in the last 7 days. Select the app and environment explicitly. It returns a narrative, chart definition and the executed aggregate query, with unavailable observations and incomplete capture kept explicit. This is a closed English grammar, not general AI or causal analysis; unsupported questions return clarification without reading telemetry.

Windows are one to thirty days within current retention, with at most twenty groups and four logical aggregate calls. Physical scan cost and monetary cost are unknown. The optional protected followupToken supports documented refinements for ten minutes with unchanged access and selectors. Questions are not persisted or included in audit records. Saving the returned chart still requires separate authorized dashboard preview and apply calls. See the BI HTTP reference for measures, dimensions, limits and response fields.

Resources and reusable prompts

resources/list exposes the local appportal://catalog/tools resource. Reading it returns the same tool catalog and schemas as tools/list, without reading customer data. Resource templates follow the saved scopes below; reading a data resource rechecks current authorization.

Resource name Required saved scopes URI template
app_dashboards mcp:overview.read appportal://dashboards/{organization}/{appId}/{environment}{?cursor,limit,platform,target}
saved_dashboard mcp:overview.read appportal://dashboard/{organization}/{appId}/{environment}/{dashboardId}{?platform,target}
organization_overview mcp:overview.read appportal://overview/{organization}{?environment,cursor}
app_releases mcp:releases.read appportal://releases/{organization}/{appId}/{environment}{?version,cursor}

Percent-encode opaque selector/cursor values when expanding a template. Resource URIs select fixed AppPortal routes; they cannot fetch arbitrary URLs. Keep the same scope and filters on continuation, and discard old dashboard-revision results when the definition changes.

Prompt Required saved scopes Required string arguments
inspect_project None path
triage_crashes mcp:crashes.read organization, appId, environment
inspect_releases mcp:releases.read organization, appId, environment
compare_releases mcp:overview.read, mcp:crashes.read, mcp:releases.read organization, appId, environment, version
weekly_health_report mcp:overview.read, mcp:crashes.read, mcp:logs.read, mcp:releases.read organization, appId, environment, from, to

Prompt expansion returns instructions with JSON-encoded literal arguments. It does not execute tools or authorize a write. weekly_health_report requires explicit offset timestamps spanning at most seven days; it composes an investigation, not a persisted report job. compare_releases uses the server’s baseline rules rather than guessing from version labels. Client interfaces vary in how they show resources and prompts; the local protocol methods are unchanged.

Read organization account evidence

Account tools require explicit mcp:account.read consent; default read access excludes them. Create a focused profile and select it in the agent’s MCP configuration:

appportal auth login --profile account-reader --scope mcp:account.read

list_members requires the current Admin role. get_plan and get_quota allow Admin or AppOwner. All three require organization-wide app access with no explicit app denials and a current offering that enables hosted agent-data access. Consent does not supply roles or a plan entitlement. An app allowlist cannot authorize an organization-wide account read.

For a portfolio connection, organization selects an already authorized organization. App and environment selectors do not narrow these tools. To inspect pinned offering and capacity evidence, ask the agent to call get_quota with these arguments:

{
  "organization": "harbor-team",
  "representation": "account-offering.v2"
}

get_plan supports the same representation argument. Omit it or use "legacy" for the legacy projection. list_members instead accepts optional status (Active or Invited), limit (1–50) and an opaque cursor. Keep the same organization, actor and status on continuation; member handles are protected, organization-scoped references rather than global user IDs.

The explicit offering representation reports immutable selected terms and exact package revisions. Agreement names, prices, contacts and provider IDs are omitted. Its HTTP contract uses Accept: application/vnd.appportal.mcp-account.v2+json, the same response media type and the body marker contractVersion: "account-offering.v2". Wildcards request legacy JSON only. The CLI checks media type, marker and required fields together. Unsupported negotiation returns 406; malformed or mismatched responses fail safely without a silent legacy retry.

Direct HTTP clients can also include application/problem+json in Accept to get a code and support traceId on account errors. A source failure also includes captureComplete: false, its reason and its sourceStatus.

get_quota keeps different measurements separate:

  • Monthly accepted telemetry records include crashes, events, logs, RUM and sessions. Accepted, reserved, publishing and uncertain counts are separate; raw retention expiry does not restore monthly capacity.
  • Logical-app and human-operator presence describe access during the allowance period. Removing an app or member does not refund earlier presence; pending reservations are not completed access.
  • Active identities are an eligibility measure. Provider-accepted push devices are a separate delivery measure. Neither can be inferred from telemetry record counts.
  • Retained-data observations cannot establish full-period quota usage or remaining capacity.

Use only entries marked authoritative with complete coverage, their exact period and the server-provided remaining capacity. Preserve nulls as unknown or unconfigured, not zero or unlimited. Free periods use UTC calendar months; paid periods use their configured monthly anniversary, including annual subscriptions. Missing anchors or historical coverage remain explicitly unavailable. The quota response stays partial even when individual entries are known.

These tools are read-only. They do not invite members, grant access, enable overages, evaluate admission or charge a payment method. 501 means an unsupported account source; 503 means the account source is unavailable. Discover the tools through the connected profile and retain these errors rather than guessing that an absent allowance is unlimited.

Explore and manage BI dashboards

The selected API also has structured BI operations. Newer client source names them get_structured_bi_catalog, query_structured_bi_metric, list_structured_dashboards, get_structured_dashboard and query_structured_dashboard_widget. These tools and their structured preview/apply variants are absent from the matching 348da55 CLI candidate; they are not additional tools in its catalog. The API catalog describes exact supported filters, groupings, typed series, funnels and geography. Use preview_structured_dashboard_mutation / apply_structured_dashboard_mutation for the matching schema-2 definitions. Keep the loaded opaque version and original request; unavailable denominators stay null, grouped distinct populations are not additive, and a window-retention cohort is not lifetime acquisition. These structured operations do not enable reports, exports or schedules. The bounded Ask HTTP operation is documented separately above.

BI reads use mcp:overview.read, included in the default read profile, plus current app analytics access and explicitly enabled BI. Enterprise includes BI; Scale requires explicit configuration and has it disabled by default. Free, Launch and Growth exclude these BI tools while ordinary telemetry tools retain their own plan and consent rules. Use get_bi_catalog to inspect the measures, query_bi_metric for one bounded query, and list_dashboards / get_dashboard to load saved definitions. query_dashboard_widget uses the loaded dashboard revision and an explicit time window. Reads retain metric denominators and omitted-group counts; unavailable data is not a zero result. Follow build and share a BI dashboard for metric definitions and task-based examples.

Create, update, delete, and share require separately issued dashboard-write consent. Request a focused profile explicitly:

appportal auth login --profile dashboard-manager \
  --scope mcp:overview.read \
  --scope mcp:dashboards.write

The profile can discover preview_dashboard_mutation and apply_dashboard_mutation. Current Admin/AppOwner, analytics permission, app access, and dashboard/MCP entitlements still apply. Preview shows the target and current/proposed configuration without saving it. Review that intent before a separate apply call. Keep the original request and stable idempotency key across preview, apply, and reconciliation. Confirmation expires after at most ten minutes; a changed revision requires fresh review. After an uncertain response, reconcile the same intent rather than create a new key or blindly repeat the change. Deleting a dashboard keeps telemetry.

For authenticated share bookmarks, configure the Dashboard website origin explicitly in the agent’s MCP process definition:

{
  "command": "appportal",
  "args": [
    "mcp", "--profile", "dashboard-manager",
    "--dashboard-origin", "https://dashboard.appportal.io"
  ]
}

Use the website origin for your deployment; it is never inferred from the agent-data API origin. A share action creates a read-only bookmark requiring sign-in and existing app analytics access. It grants no membership, app access, public embedding, export, or scheduled report.

Enable crash-management actions

The matching CLI candidate exposes preview_crash_note and preview_crash_workflow before the separate add_crash_note and update_crash_workflow applies. Review the exact preview, then use its unchanged confirmationToken, normalized request, scope and stable operationId. Preview does not apply the change or grant access. The note summary shows a character count, not the note text. New or pending work requires a fresh ten-minute preview and current authority. An exact completed receipt may replay after expiry only with a valid binding and current authorization; legacy keys, changed intent and unrelated pending operations require reconciliation.

Read access is the default. Request crash-management scopes explicitly:

appportal auth login --profile crash-manager --crash-management

That profile can discover both preview tools and their separate apply tools. When separately entitled to assign eligible collaborators, it also discovers get_crash_assignees and delegated assignment. Crash workflow is intentionally bounded to Activity & notes, Investigating/Resolved, and eligible assignment.

Both preview/apply pairs require a stable operationId and apply requires the matching confirmationToken. An agent must reuse the same value when retrying the same intended action so a transport retry cannot duplicate activity. Tell the agent to show the target and proposed mutation before it writes; the conversation examples include that pattern.

Manage geofences safely

Request only the geofence read/write scopes needed for this workflow:

appportal auth login --profile location-manager \
  --scope mcp:geofences.read \
  --scope mcp:geofences.write

Matching paged API and CLI versions expose get_locations, get_geofences and the additive get_geofence_tags read tool. Each accepts query, limit from 1 to 100 (default 25), and opaque cursor. Forward nextCursor unchanged with the same scope, query and page size. Geofence pages retain effective cooldowns and app settings; tag policies are independently paged. The CLI reads one page per call without prefetching or inventing totals. Legacy unpaged URLs reject oversized collections with pagination_required.

The same profile can discover these confirmation-bound actions:

  • preview_geofence_change / apply_geofence_change create, update, or deactivate one geofence;
  • preview_bulk_radial_geofences / apply_bulk_radial_geofences apply up to ten radial templates to an explicit or searched Location selection; and
  • preview_geofence_tag_policy / apply_geofence_tag_policy manage enter, exit, and dwell cooldowns shared by every geofence carrying a tag.

Every mutation is a preview/apply pair. Review the preview, then send its exact request and short-lived confirmation token and the same stable operationId to the matching apply tool. All applies support exact original-result replay, including after preview expiry, while current connection, membership, app authority and cryptographic binding remain mandatory. A changed intent or missing original receipt conflicts; reconcile that outcome without generating a replacement operation ID. Bulk apply also binds the actual selected places and preview digest. The grant never exposes subject positions or movement history.

Location, crash-note/workflow and Smart Link applies honor the organization’s narrowing policy for that connection. Administrators can require human confirmation and lower impact/rate ceilings; these limits never grant scopes or roles. When required, obtain a separate protected approval through the current authenticated Portal session for that exact preview and caller operation, then supply it as optional humanApprovalReference. A preview, Boolean or MCP bearer alone is not human approval. Completed exact replay rechecks current authority without consuming another policy admission.

Use list_smart_links, get_link_analytics and list_smart_link_environments for supported reads. Use preview_smart_link or preview_smart_link_environment to review the exact creation before calling the corresponding create tool. Preserve the same request, matching confirmationToken and stable operationId. Current authority is rechecked; a preview grants no permission. Completed exact receipts replay the original result. An uncertain DNS attempt stays pending for reconciliation: a matching host does not prove this operation owns it. Do not generate a new retry identity, automatically provision again, adopt an existing record, or delete DNS to compensate. Base-domain requests and approval remain in the Dashboard. Link creation needs an application-owned installed-app route and an HTTPS fallback under the approved environment host; do not invent a custom scheme. Review the target, routing policy, and proposed write before creating it. Use create and test a Smart Link for the complete verification flow.

--all-product-capabilities also grants forward consent for distribution and granular messaging scopes. A scope does not create an unimplemented tool. Prefer the smallest scope set needed today and use tool discovery from the installed CLI as the authority.

Review writes before applying them

Client approval and OAuth consent do not replace current server authority. Tool families have different confirmation contracts:

Actions Review and retry behavior
Dashboard preview/apply Review the exact request, scope and loaded revision. Apply separately with the returned token, expiry and original idempotencyKey. Reconcile an uncertain outcome using that same intent.
Geofence preview/apply Reuse the exact previewed request and scope, returned confirmationToken and stable operationId; bulk apply also requires previewDigest. Changed revisions or expired previews require fresh review.
Crash notes/workflow Review the matching protected preview; apply separately with its confirmationToken, unchanged request/scope and stable operationId. Exact completed receipts retain their original result. New/pending work requires fresh proof and current authority.
Smart Link/environment creation Review the matching preview; apply separately with its confirmationToken and original operationId. Exact completed receipts replay. Unknown DNS ownership stays pending; do not adopt, automatically provision again, or delete DNS.

A preview token does not grant a role, app, plan or beta capability. Never infer successful execution from a timeout. Keep the original payload and retry identity; do not silently create a new intent.

Access and privacy boundaries

OAuth scopes describe what a connection may ask to do; they do not grant organization or app authority. Every remote call revalidates current:

  • organization membership and entitlement;
  • role, team, and explicit app access or denial;
  • environment and capability policy;
  • the organization/app selection approved during consent.

The connection provides customer-product access only. It grants no Operations Portal or platform administrator authority. SDK ingestion keys, artifact-upload keys, customer server keys, and OAuth tokens for another audience are rejected as MCP authentication.

Log and crash tools return bounded, privacy-safe projections. Raw retained log properties, direct identifiers, and retained raw crash stacks are not returned; crash occurrence tools return translated stacks and symbolication state. Reads and crash workflow changes use the authenticated AppPortal user and are auditable.

Revoke or troubleshoot a connection

appportal auth status
appportal auth logout

Successful logout revokes the connection and removes its local session. If revocation fails or times out, the CLI retains that session and reports failure so logout can be retried. You can also revoke an MCP connection from AppPortal. A short-lived access token may remain usable only until expiry or server-side revocation completes.

If a client reports that appportal cannot be found, restart the client after installing/updating the CLI or configure the absolute executable path returned by Get-Command appportal on PowerShell or command -v appportal on macOS/Linux. If tools are missing, check the active profile and scopes with appportal auth status; the server deliberately hides tools outside the grant.

Check compatibility

Check appportal --version, then refresh the connected client’s tools/list catalog. Use its argument schemas for the profile and authorized deployment you selected. Resource and prompt interfaces vary by client; discover them through resources/templates/list and prompts/list.

If a remote call is unavailable, check appportal auth status for the same profile and review its current consent, app access, plan and feature settings. Preserve unavailable and incomplete results; they do not establish zero usage or a healthy app.

Source reference and installed availability

Reference contract What the selected API and installed release must establish
Local stdio server, named profiles and OAuth Check appportal --version and the matching profile’s auth status; this guide does not publish or upgrade a package.
Indexed client-source catalog The table matches source candidate 348da55, not a claimed public release. tools/list determines the installed schemas. Match each remote tool to the selected API.
Ordinary telemetry/account reads, catalog BI, dashboard and geofence confirmations The corresponding source operations are included here. Current actor, app/environment, consent, plan and feature policy still apply; this is not a claim about a deployed API.
Crash/Smart Link writes Matching protected preview/apply operations and stable retry identities are included in this source reference. Verify the installed client and selected API implement the same schema; source checks do not establish deployment.
ask and structured BI tools The HTTP API is included; the matching CLI candidate does not expose these tools. Newer client source requires separate compatibility proof.
Alerts/anomalies, external issues, report jobs/artifacts and schedules These newer client-source families are absent from the matching CLI and this API reference. Their additional scopes cannot enable an absent operation.
Client examples and resources/prompts A parsed configuration or listed server does not establish an authorized data call. Check the actual client/version and a bounded owned read.

Use the version and release notes of the package actually installed. Do not replace a working profile, create credentials, broaden grants or invent a retry to make a catalog match a different API.

Next steps

Read Markdown