appplayer_core 0.1.6 copy "appplayer_core: ^0.1.6" to clipboard
appplayer_core: ^0.1.6 copied to clipboard

AppPlayer Core — shared Flutter library for MCP server connection, bundle handling, and UI runtime orchestration.

AppPlayer Core #

Shared Flutter library for AppPlayer — MCP server connection, bundle handling, and UI runtime orchestration. The single dependency surface for appplayer_* shells (Standard / Pro / X / Custom).

Features #

  • AppPlayerCoreService — single orchestrator that owns the connection lifecycle, app/dashboard sessions, bundle install pipeline, and tool dispatch.
  • Session modelAppSession, DashboardSession, AppHandle provide the public surface for a running app or dashboard.
  • Connection observabilityConnectionInfo, ConnectionResult, ConnectionState, ConnectionHealthMonitor for connection status + auto-recovery.
  • Bundle handles + host portsBundleRef, BundleEntryPoint, BundleFetcher, InstalledAppBundle, plus dashboard bundle composition.
  • Apps registryAppsRegistry is the single source of truth for registered apps; RegistryMetadataSink keeps metadata fresh automatically.
  • Tenant modelTenantContext, TenantSource for multi-tenant variants.
  • Host portsServerStorage, CredentialVault, AppMetadataSink, observability Logger and MetricsPort.
  • Form-factor + responsive tokens — re-exports FormFactor, AppSpacing/Icons/Typography/Density and the M3 DSL version constant from flutter_mcp_ui_runtime so hosts can stay on appplayer_core only.
  • Trust levels — re-exported TrustLevel / TrustLevelManager for permission enforcement.

Public surface #

The barrel package:appplayer_core/appplayer_core.dart is semver-tracked. Internal wiring (ConnectionManager, RuntimeManager, ToolDispatcher, etc.) lives in package:appplayer_core/internals.dart for advanced hosts and is not semver-stable.

Quick Start #

import 'package:appplayer_core/appplayer_core.dart';

final core = AppPlayerCoreService(
  appsRegistry: AppsRegistry(),
  serverStorage: myServerStorage,
  credentialVault: myCredentialVault,
);

// Connect to an MCP server
final result = await core.connect(
  ServerConfig(
    id: 'my_server',
    transport: TransportType.streamableHttp,
    url: 'https://my-mcp-server.example/mcp',
  ),
);

// Open an app session
final app = await core.openApp(serverId: 'my_server', appId: 'my_app');

Support #

License #

MIT — see LICENSE.

0
likes
160
points
273
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

AppPlayer Core — shared Flutter library for MCP server connection, bundle handling, and UI runtime orchestration.

Homepage
Repository (GitHub)
View/report issues

Topics

#mcp #appplayer #bundle #ui #flutter

License

MIT (license)

Dependencies

flutter, flutter_mcp_ui_core, flutter_mcp_ui_runtime, mcp_bundle, mcp_client, uuid

More

Packages that depend on appplayer_core