IoMcpByteChannel class final
A McpByteChannel over a spawned process's stdio.
- Implemented types
Properties
-
exitCode
→ Future<
int> -
Completes with the server's exit code when the process ends.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messages
→ Stream<
List< int> > -
Raw bytes from the server's stdout.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
kill(
) → void -
Terminates the server process. Idempotent.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
List< int> data) → void -
Writes raw (already framed) bytes to the server's stdin.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
spawn(
{required String command, required List< String> args, required Map<String, String> env, required String cwd}) → Future<IoMcpByteChannel> -
Spawns
commandwithargsincwdwith extra environmentenv. Throws McpServerUnavailableException when the executable cannot be started (e.g. not onPATH) so the server lands infailedstatus instead of crashing the session.