openseek_connectors

    MCP connector discovery and user-initiated OAuth login.

    Download zip
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    5 days ago
    Downloads
    131

    #OpenSeek connectors

    Desktop and Cloud use this native MoonBit service to discover MCP connectors and manage user-initiated OAuth login. Construct one Service per credential owner, pass its bundled skills directory and attach it to a host task group before connecting. The host can supply a skills override directory and a browser authorization callback. Device-code login runs in the service.

    Use list for connector status and action for connect, poll, cancel and disconnect. Send the returned attempt ID when polling or cancelling a login. The service stores grants through OpenSeek's OAuth API using the host process's credential directory. The types package owns the shared JSON request and reply types.

    Service

    type Service

    Owns MCP authorization attempts and their host-local credentials.

    Service::Service

    Discover connectors in the bundled skills and optional host overrides.

    Service::action

    Start, observe, or cancel a user-initiated authorization.

    Service::attach

    fn Service::attach(self : Service, group :
    TaskGroup
    ) -> Unit

    Tie authorization tasks to the lifetime of the host.

    Service::has_pending_login

    fn Service::has_pending_login(self : Service) -> Bool

    Whether the host must retain this service for a later poll or cancel.

    Source Files