How gabilang/swiftship-logistics works
SwiftShip is a Ballerina logistics integration workspace centered on shipments_api as the parcel system of record. Merchants book through its REST API; manifest_intake books CSV rows from FTP, while carrier_events forwards Kafka scans. The API also supports scheduled SLA checks and MCP-facing tools for operations and customer care; agents connect through their respective MCP servers. The README documents these integration boundaries, but no source excerpts were provided, so internal call details beyond those documented are omitted.
Main entry points: service.bal Shipments API · operations_agent/agent.bal Operations agent · customer_care_agent/agent.bal Customer care agent · main.bal Tracking MCP
Components 20
Shared domain
- Business rules
logistics_commons/rules.bal - Shared types
logistics_commons/types.bal
Shipment intake
- Manifest intake
manifest_intake/main.bal - Carrier scan intake
carrier_events/main.bal
Shipment record
- Shipments API
shipments_api/service.bal - Demo shipment seed
shipments_api/seed.bal
MCP and agents
- Tracking MCP
tracking_mcp/main.bal - Operations agent
operations_agent/agent.bal - Operations MCP tools
operations_agent/modules/mcptools/mcptools.bal - Customer care MCP
customer_care_mcp/main.bal - Customer care agent
customer_care_agent/agent.bal - Customer care MCP tools
customer_care_agent/modules/mcptools/mcptools.bal
SLA automation
- SLA watchdog
sla_watchdog/main.bal
Other components
- Merchants
- Manifest FTP
- Carrier Kafka
- Ops staff
- Ops AI clients
- Customers
- Slack or Teams
Connections 17
- Merchants → Shipments API: books parcels
README.md - Manifest FTP → Manifest intake: provides CSV
README.md - Manifest intake → Shipments API: books rows
README.md - Carrier Kafka → Carrier scan intake: streams scans
README.md - Carrier scan intake → Shipments API: records scans
README.md - Demo shipment seed → Shipments API: seeds parcels
README.md - Tracking MCP → Shipments API: reads shipments
README.md - Operations agent → Tracking MCP: uses tools
README.md - Ops AI clients → Tracking MCP: uses tools
README.md - Ops staff → Operations agent: asks questions
README.md - Operations agent → Operations MCP tools: uses tools
- Customers → Customer care agent: chats
README.md - Customer care agent → Customer care MCP: uses tools
README.md - Customer care MCP → Shipments API: checks ownership
README.md - Customer care agent → Customer care MCP tools: uses tools
- SLA watchdog → Shipments API: checks promises
README.md - SLA watchdog → Slack or Teams: posts digest
README.md