WhoBuilt

Designing CLIs for Agents, Not Humans

Oct 9, 2026· 18 min· 8.6K views·Watch on YouTube

Speaker

Pedro Lopez, a software engineer at Airbyte, explains how Airbyte built its MCP server and CLI for accessing its Context Store through agents.

One platform, shared interfaces

Airbyte began as an open-source data movement platform and now offers a Context Store that helps agents search and act on data across connected services. Its SDK, UI, MCP and CLI share the same platform APIs, with open API specs helping keep the interfaces aligned as the platform changes more than ten times a day.

Keep MCP tools focused

Airbyte uses two main tools for connector data: one describes a connector and its query schema, and the other runs read, write or delete operations. Lopez says this narrow design, progressive discovery and concise tool descriptions perform better than exposing a separate tool for every connector and action. For authentication, Airbyte uses OAuth with long-lived sessions stored separately from the web app. It handles connector setup through its own flow because URL-mode elicitation support varies across MCP clients.

Design CLI commands for agents

The CLI can perform the same Context Store queries as the MCP, including finding paying customers with Zendesk support tickets. Airbyte accepts JSON input and returns JSON, making complex queries easier for agents to construct and results easier to process with tools such as jq and Unix pipes. Commands follow consistent noun-and-verb patterns, and bundled skills help agents discover the CLI and learn its commands through progressive disclosure.

Support unattended CLI use

Agents may invoke a CLI without a person available to answer prompts. Lopez recommends making options available through flags and configuring credentials through environment variables or config files, so commands do not stall while waiting for input.

Choose MCP or CLI for the task

MCP client support and provider limits can constrain tool descriptions and run times; Lopez gives Claude's 2-kilobyte description limit as an example. A hosted MCP stays current, while a CLI requires version management and can give agents room to loop. MCP suits quick prototypes and one-off reports, while the CLI helps with longer tasks and large outputs that benefit from pipes and utilities such as tail or head.

Takeaways

  • Use a small set of general tools with progressive discovery instead of a separate tool for every resource and action.
  • Accept and return JSON when agents need to build complex inputs or process long outputs.
  • Keep command patterns consistent, and treat repeated agent mistakes as evidence that the interface contract may be unclear.
  • Make CLI commands noninteractive by supporting flags and out-of-band credential configuration.
  • Choose MCP for quick hosted access and CLI for long-running work or outputs that need Unix pipes.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • works at
    Software Engineer
    “I'm a software engineer at Airbyte”
    YouTube
    Verified2 sources· Talk, Web· archived
  • integrates with
    Context Store integrates with GitHub
    “connecting all of the SaaS tools you might use, like Zendesk, Stripe, and GitHub”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Context Store integrates with Stripe
    “connecting all of the SaaS tools you might use, like Zendesk, Stripe”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Context Store integrates with Zendesk
    “connecting all of the SaaS tools you might use, like Zendesk”
    YouTube
    Unverified1 source· Talk
  • feature
    Airbyte: Provides a search-optimized index of connected tool data for agents to query.
    Provides a search-optimized index of connected tool data for agents to query.
    “a search-optimized index of your data that your agents can query”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Airbyte integrates with ChatGPT
    “access it through existing agents like ChatGPT”
    YouTube
    Unverified1 source· Talk
  • uses
    “with Anthropic, you click a button to connect, which starts our OAuth flow”
    YouTube
    Unverified1 source· Talk
  • feature
    CLI: Accepts JSON input and returns JSON output for agent-friendly queries and Unix processing.
    “take JSON in and return JSON out”
    YouTube
    Unverified1 source· Talk
Show all 9 facts

Related talks