Why We Developed Brand-new Apidog CLI + SKILL

We built Apidog CLI + SKILL to handle what MCP doesn't optimize for: complex workflows with validation gates and structured execution.

Oliver Kingsley

Oliver Kingsley

7 July 2026

Why We Developed Brand-new Apidog CLI + SKILL

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

This is a 10-part series sharing how Apidog developed Apidog CLI, a command-line tool for API testing and API lifecycle management. Read in order or jump to any post that interests you:

Title Focus
1 We Built 126 MCP Tools. But It Is Not the Best Solution for Agent Problem discovery
2 Why We Developed Brand-new Apidog CLI Architecture development
3 The Golden Rule: CLI Produces Facts, Model Acts on Facts Core philosophy
4 agentHints: Teaching CLIs to Talk to Agents Structured output
5 SKILL: Shipping Operational Experience as Code Operational experience
6 The Numbers Don't Lie: 30% Fewer Tool Calls, 25% Fewer Tokens Quantitative results
7 From PRD to Testing Loop: A Complete Agent Workflow with Apidog CLI Practical tutorial
8 Why CI/CD Compatibility Is Non-Negotiable for Agent Tools DevOps perspective
9 AI Branch: Safer Project Changes with AI Agents Security layer
10 Spec-First Was Yesterday. Welcome to Skill-First. Vision & future

We built CLI + SKILL to handle what MCP doesn't optimize for: complex workflows with validation gates and structured execution.


MCP Continues to Serve Its Purpose

Before we dive into CLI + SKILL, let's clarify: Apidog MCP is still available and maintained.

MCP provides standardized tool connections following the protocol—that's valuable for:

We didn't replace MCP. We built CLI + SKILL to complement it.

What we discovered was that MCP excels at connecting tools, but for complex R&D workflows—multi-step processes with validation, read-back, and verification—Agents benefit from executable engineering processes. That's where CLI + SKILL fits.

Think of it this way:

Task Type Recommended Approach
Simple tool call (e.g., get endpoint) MCP or CLI—both work
Multi-step workflow (e.g., create test, validate, run) CLI + SKILL—better experience
CI/CD integration CLI—native fit
MCP ecosystem integration MCP—protocol standard

The Old CLI: Running Tests at the End

Apidog CLI has long been the command-line entry point for running API tests.

apidog run --project <projectId> --test-scenario <scenarioId> --environment <environmentId>

That foundation still matters. Teams need a reliable way to:

But the old CLI centered mainly on test execution. It appeared near the end of the workflow:

Design → Document → Mock → Debug → Test → [CLI runs tests]

The CLI was the last step—after everything else was done.


The New Requirement: Agents Need More

API development is changing.

AI Agents are now participating in:

Stage Agent Activity
API design Generating endpoint definitions from PRD
Test generation Creating test cases from API specs
Debugging Analyzing failures, suggesting fixes
Migration Moving APIs across projects
Maintenance Updating tests when APIs change

For these workflows, a CLI cannot only be the last step that runs existing tests.

It also needs to give Agents a stable way to:


Systematic Expansion, Not Incremental Addition

The new Apidog CLI is not just adding a few commands to the old CLI.

It's systematically introducing Apidog's core capabilities into CLI, making it a workflow layer for developers, scripts, and AI Agents.

Old CLI Question New CLI Question
"How do I run Apidog tests externally?" "How can AI Agents stably use Apidog?"

The architectural boundaries behind have changed dramatically.


MCP VS CLI: Execution Chain Comparison

Let's compare the typical execution chains for complex workflows.

MCP Route (Good for Tool Connection)

Initialize MCP session
        ↓
Load tool list + tool descriptions
        ↓
Agent selects tool
        ↓
Search for more tools (listOpenApiEndpoints)
        ↓
Get schema (getOpenApiDetails)
        ↓
Execute HTTP call (executeOpenApi)

MCP's strength: Standardized protocol for connecting tools to Agents.

Complexity placement: Most complexity is in the model context and tool selection stage. The Agent needs to understand:

Where it works well: Simple operations with clear tool-to-task mapping.

Where it becomes challenging: Complex workflows where the Agent must orchestrate multiple tools, understand product semantics, and handle validation.

CLI + SKILL Route (Better for Complex Workflows)

SKILL judges task type
        ↓
CLI executes product-semantic commands
        ↓
cli-schema validates structure
        ↓
agentHints gives next-step suggestions
        ↓
Verify loop (get read-back or apidog run)

CLI + SKILL's strength: Distributes complexity into the engineering system.

Complexity placement:

Where it works well: Multi-step workflows, validation-heavy operations, Agent-driven testing.


The Key Difference: Where Complexity Lives

The difference between these two approaches is where complexity is placed.

Approach Where Complexity Lives Best For
MCP Model context + tool selection stage Simple tool calls, MCP ecosystem
CLI + SKILL Engineering system (SKILL, CLI, validation, hints) Complex workflows, multi-step operations

In MCP, the model must carry:

This works when the task-to-tool mapping is straightforward.

In CLI + SKILL, the engineering system carries:

This works better when workflows have validation gates, read-back requirements, and verification loops.


A Typical Workflow Example

Here's a concrete example of the CLI + SKILL workflow:

# Step 1: Read facts
apidog endpoint get <endpointId> --project <projectId>

# Step 2: Validate before writing
apidog cli-schema validate test-case-create --file ./test-case-create.json

# Step 3: Execute verification
apidog run --project <projectId> --out-dir ./apidog-reports

These three commands represent three engineering actions:

Command Action
endpoint get Read facts from the project
cli-schema validate Validate structure before writing
apidog run Execute verification

Agent Path for Complex Workflows

For complex, multi-step workflows, the Agent's path benefits from CLI + SKILL structure.

MCP Path for Complex Workflows

"Select tools → Understand schemas → Orchestrate sequence → Handle errors"

The Agent:

This can work, but requires significant model reasoning for each decision point.

CLI + SKILL Path for Complex Workflows

"Read facts → Generate changes → Validate structure → Write → Run verification"

The Agent:

The engineering system handles validation, guidance, and verification—reducing model reasoning burden.

Both paths can complete the task. CLI + SKILL reduces complexity in the model context stage.


What the CLI Now Covers

With the upgrade, CLI now covers more core Apidog resources:

Resource CLI Capability
Projects & metadata List, read
APIs & API definitions Get, create, update
Environments & variables List, manage
Test cases Create, update, validate
Test scenarios Create, update, import steps, get with detail
Test suites Manage
Reports Generate from apidog run
Import/export Export project, import files

This changes the role of Apidog CLI.

It's not simply a way to execute tests after everything else is done.

It can now participate earlier in the development loop—where an Agent needs to:


The Architecture Summary

Dimension MCP CLI + SKILL
Primary strength Tool connection Workflow execution
Complexity location Model context Engineering system
Agent path for complex tasks Select, orchestrate, retry Read, validate, write, verify
Coverage 126 generated tools + native tools Full resource management + validation
Best fit Simple operations, MCP ecosystem Complex workflows, CI/CD

Both are available. Choose based on your task.


What's Next

Now that we've established how CLI + SKILL complements MCP, the next question is:

What's the core principle that makes CLI + SKILL effective for complex workflows?

In Part 3, The Golden Rule: CLI Produces Facts, Model Acts on Facts, we'll explore the design philosophy that guides every CLI + SKILL decision—starting with cli-schema validate, the quality gate that catches errors before they become failed writes.


Key Takeaways


Download Apidog to design, mock, test, and document APIs in one workspace. Learn more about Apidog CLI for command-line API testing, CI automation, and AI Agent workflows.

button

Explore more

Kimi K3 vs Kimi K2.7 Code: What Actually Changed

Kimi K3 vs Kimi K2.7 Code: What Actually Changed

Kimi K3 vs Kimi K2.7 Code compared: the jump in scale, the new attention architecture, 1M context, pricing shifts, and a clear migrate-or-stay decision guide.

17 July 2026

An Open Model Just Beat Claude Opus 4.8 on Every Benchmark Moonshot Published

An Open Model Just Beat Claude Opus 4.8 on Every Benchmark Moonshot Published

Kimi K3 beat Claude Opus 4.8 on all five of Moonshot's launch benchmarks, at a fraction of the cost, with open weights due July 27. Here's what it means.

17 July 2026

Kimi K3 vs GPT-5.6 Sol: Open Weights Meets the Frontier

Kimi K3 vs GPT-5.6 Sol: Open Weights Meets the Frontier

Kimi K3 vs GPT-5.6 Sol compared: Sol leads on top-end quality, K3 wins on open weights, 1M context, and price. Full comparison table and decision matrix.

17 July 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

Why We Developed Brand-new Apidog CLI + SKILL