OpenApiBuilder class

Generates OpenAPI 3.0 specifications from MCP tool definitions.

This builder transforms MCP tool metadata into RESTful OpenAPI 3.0 specifications following API design best practices. It intelligently maps tool operations to standard HTTP methods and resource-based URL patterns.

Constructors

OpenApiBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

build(List<Map<String, dynamic>> tools, String transport, int port, String address) Map<String, dynamic>
Generates an OpenAPI 3.0 specification from tool definitions.