DebugMcpHost class
Serves the DebugSurface over a localhost MCP endpoint. One instance
per AppPlayerCoreService when the Debug MCP setting is enabled on a
desktop platform.
Constructors
-
DebugMcpHost(DebugSurface _surface, {Future<
List< listBundles()?, Future<({String id, String name})> >bool> openBundle(String bundleId)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
listBundles
→ Future<
List< Function()?({String id, String name})> > -
Installed bundles, for a harness that must open one by id.
final
-
openBundle
→ Future<
bool> Function(String bundleId)? -
Opens an installed bundle. The tier supplies this — the core knows what
is installed, only the shell knows how to put it on screen.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
{int port = 7930}) → Future< void> -
Bind the endpoint on
127.0.0.1:[port]/mcpand register the four tools. Idempotent-safe: a second call while already started is a no-op. -
stop(
) → Future< void> - Tear down the transport.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited