Documentation
¶
Overview ¶
Package mcpserver exposes seaRoute routing as MCP tools: distance_to_go, route and list_passages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Passages ¶
type Passages struct {
Avoid []string `json:"avoid,omitempty" jsonschema:"passages the route must not use, e.g. kiel, suez, oresund; see list_passages"`
Allow []string `json:"allow,omitempty" jsonschema:"passages closed by default to open, e.g. northeast"`
}
Passages controls which canals and straits a route may use.
type Point ¶
type Point struct {
Port string `json:"port,omitempty" jsonschema:"port name; use this or lat and lon"`
Lat *float64 `json:"lat,omitempty" jsonschema:"latitude in decimal degrees, north positive"`
Lon *float64 `json:"lon,omitempty" jsonschema:"longitude in decimal degrees, east positive"`
}
Point is a position given either by port name or by latitude and longitude.
type PortFinder ¶
PortFinder returns a port's position by exact name.
type Vessel ¶
type Vessel struct {
DraughtM *float64 `json:"draught_m,omitempty" jsonschema:"vessel draught in metres, 1 to 25; default 10"`
SpeedKn *float64 `json:"speed_kn,omitempty" jsonschema:"speed in knots for squat, 1 to 30; default 14"`
VesselType string `json:"vessel_type,omitempty" jsonschema:"tanker, bulk, general or container; default bulk"`
}
Vessel is the ship a route is planned for. Absent fields use the defaults.