Drive Hecaton from a local agent
Delegate from your computer with the CLI or connect an MCP client over HTTP with OAuth.
Use the CLI
Install the Hecaton CLI. Run hecaton login on your computer and approve Drive workspaces in your browser. Ask your local agent to list the projects, then choose a project and give it a prompt to send to Hecaton. Set PROJECT_ID and PROMPT before running the example.
set -eu
hecaton project list --json
printf '%s\n' '{"resultContract":{"fields":{"summary":{"type":"string"}}}}' |
hecaton workspace create --body-file - --project "${PROJECT_ID:?}" --prompt "${PROMPT:?}" --wait --timeout 900Save the workspace ID from the first line of the creation output. If the CLI exits with 4, list the pending questions with hecaton question list "$WORKSPACE_ID". Ask the member for an answer if it needs their choice, then pass it to hecaton question answer "$WORKSPACE_ID" "$QUESTION_ID" --answer "$ANSWER". Run hecaton workspace results "$WORKSPACE_ID" after the turn completes.
Connect the public MCP server
Use the Streamable HTTP endpoint https://api.hecaton.io/mcp/drive. It advertises the workspaces:drive scope. The client must support MCP over HTTP and OAuth discovery. For Claude Code, run the following command and then choose the server in /mcp to complete authorization. Claude Code’s MCP documentation.
claude mcp add --transport http hecaton https://api.hecaton.io/mcp/driveApprove Drive workspaces in the browser. The grant can drive the workspaces and scheduled jobs available to your member account. Use list_projects, then create_workspace and get_workspace. The read_workspace_events tool returns a batch with a nextEventId for resuming. Use list_workspace_results to read results. Approve access only for tools you use and revoke access in Settings → Connected tools when finished.