Keyoku

Connectors

Connectors let Keyoku reach external MCP servers and APIs — so your workflows can call deployment tools, ticket trackers, or any service with an OpenAPI spec, with autonomy you control per connector.

Registering a connector

connector_add supports three transports:

TransportConfigBehavior
stdiocommand, args, envSpawns a local MCP server process and talks to it over stdio.
HTTPurl, headersConnects to a remote MCP server over HTTP.
OpenAPIspecUrl, allowMutating?Synthesizes a connector from an OpenAPI 3.x or Swagger 2 spec. Read-only unless allowMutating is set.

OpenAPI connectors are synthesized from the spec at specUrl and stay read-only unless you explicitly pass allowMutating.

Autonomy levels

Every connector has an autonomy level that gates what connector_call (and workflow mcp_call steps) may do:

LevelBehavior
observeCalls are refused. The connector exists only so its usage can be observed.
suggestKeyoku can suggest calls, but does not make them on its own.
approveCalls queue as approval requests. Workflow mcp_call steps pause the execution and queue an approval.
autonomousCalls go through directly, no queue.

The approval queue

Approval-gated calls wait in a queue until you decide. Use approval_list, approval_approve, and approval_deny from your agent, or the CLI equivalent:

keyoku approvals              # list pending requests
keyoku approvals approve <id> # approve one
keyoku approvals deny <id>    # deny one

Audit trail

Every action lands in an append-only audit trail. Read it with audit_list or keyoku audit.

Connectors and learning

Successful connector_call invocations are recorded in the activity trace, and a connector call counts as an action step — so connector usage participates in pattern mining just like shell commands and file edits.

Tool reference

ToolPurpose
connector_addRegister a connector (stdio, HTTP, or OpenAPI)
connector_listList registered connectors
connector_removeRemove a connector
connector_toolsList the tools a connector exposes
connector_callCall a connector tool — subject to its autonomy level
connector_set_autonomyChange a connector's autonomy level
approval_listList pending approval requests
approval_approveApprove a queued request
approval_denyDeny a queued request
audit_listRead the append-only audit trail

Related

  • Workflows — mcp_call steps and pausing behavior
  • Security — the trust boundary and what leaves your machine