DVMcpServer class
Serves Dartvel's registered AI tools over MCP.
The tools are exactly the ones DV.AI.registerTool knows about, so an MCP
client and Dartvel's own agent runs see the same surface — there is no
second registry to drift.
Constructors
- DVMcpServer(DVMcpTransport transport, {String name = 'dartvel', String version = '1.0.0'})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Reported to clients during initialization.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transport → DVMcpTransport
-
final
- version → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serve(
) → Future< void> - Starts serving. Completes when the transport closes.
-
stop(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited