Skip to main content

App Management & Connections

This guide covers the two bottom administration and integration pages in the Executive Owner Panel sidebar: App Management (/app-management) for retrieving signed desktop installer links and Connections (/settings/connected-apps) for governing OAuth 2.1 external AI integrations over Teamvista's read-only MCP server.


Part 1: App Management (/app-management)​

The App Management page gives business owners a centralized, read-only distribution hub (Desktop App Releases) to inspect the latest platform-approved installer versions and share download links with employees.

Available Release Packages​

Click Refresh in the top-right corner at any time to fetch the current release catalog. Two installer cards are displayed when published:

  • Windows Installer Package (Windows):
    • Shows the latest semantic version badge (e.g., v3.8.21) and Published date.
    • Displays the verified Download URL field alongside Copy Link (copies the direct installer URL to your clipboard with instant Copied confirmation) and Download (opens/starts the Windows installer download directly).
  • macOS Package (macOS):
    • Displays the published macOS version badge, release timestamp, Download URL, Copy Link, and Download actions when a macOS build is available—or notes No macOS release published yet. if none has been released.
Read-Only Distribution Boundary

If neither Windows nor macOS releases are published yet, an amber notice (No desktop app release published yet.) appears on /app-management. Uploading, signing, and publishing new desktop agent binaries is handled strictly at the platform level by the Teamvista Super Admin team; Owners and HR distribute the approved links.


Part 2: Connections (/settings/connected-apps)​

The Connections page (MCP Connections) lets organization owners review and immediately revoke external AI clients—such as Claude Desktop, Cursor, or custom MCP-compatible clients—authorized via OAuth 2.1 to inspect workforce telemetry.

How External Clients Connect (OAuth 2.1 + PKCE)​

  1. External clients initiate an OAuth 2.1 Authorization Code + PKCE flow against /oauth/authorize (mcp_client_registrations & mcp_refresh_tokens).
  2. You sign in as an Owner and explicitly consent to grant read-only access scoped strictly to your organization_id.
  3. Every tool request validates client authorization and active token family state directly in the database—not just stateless JWT expiry.

Connected Applications Table​

At the top of Connections, an active summary badge tracks {active} active of {total} total connections alongside a Refresh button. Once clients are authorized (an empty state shows No connected apps yet), the ledger lists:

  • MCP Client: Registered external application name (clientName).
  • Connected by: Owner account name/email that granted consent.
  • Status: Real-time authorization badge:
    • Active: Client currently holds valid, unrevoked access.
    • Expired: Authorization token has lapsed and requires re-consent.
    • Revoked: Manually severed by an owner (displays revoking actor and relative timestamp).
  • Connected: Timestamp of initial authorization.
  • Last active: Most recent telemetry query timestamp (Never if connected without tool calls yet).
  • Actions: One-click Revoke button on active entries.

Immediate Connection Revocation​

  1. Click Revoke next to any active MCP client.
  2. Confirm in the Revoke this connection? modal warning that the client will immediately lose access to your EMS data and must re-authorize to connect again.
  3. Confirming marks the underlying OAuth refresh-token family as revoked with audit metadata. Because the MCP server checks database revocation state on every incoming request, access ends instantaneously without waiting for cached access tokens to expire.

Authorized Read-Only MCP Capabilities​

Connected MCP clients operate strictly in read-only mode with no ability to modify employees, intervals, alerts, screenshots, or settings. Six organization-scoped tools are exposed:

MCP ToolScope & Data Returned
ems_get_employeesRoster list, status, department/team details, and trailing 7-day stored Productivity Scores.
ems_get_daily_productivityDaily policy-computed productivity scores (<= 90 days) with late clock-in, break, idle, and alert factor deductions.
ems_get_sessionsMonitored work sessions alongside verified clocked-in attendance intervals (attendance_intervals).
ems_get_app_usageAggregated foreground application usage, browser domains, and URL context per date range or shift window.
ems_get_alertsOrganization policy violation triggers, severity levels, resolution status, and linked technical context.
ems_get_screenshotsTimestamped screenshot metadata records (excludes raw image URLs for external AI boundaries).