OkfMcpServer class final

The OKF tool surface served over the Model Context Protocol.

Every tool re-reads the bundle from disk, so an agent that edits files between calls never observes a stale answer. The write verbs are adapters over OkfBundleChangeApplier: they translate tool arguments into a change description and return its result, so validation, index and log maintenance, and atomicity have one owner.

Constructors

OkfMcpServer({required String rootPath, OkfBundleLoader loader = const OkfBundleLoader()})
Creates a server that reads and writes the bundle at rootPath.

Properties

hashCode int
The hash code for this object.
no setterinherited
rootPath String
The bundle root every tool reads.
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
serve() Future<void>
Serves the tool surface over stdio until the client disconnects.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited