mcp2cli-runtime-api-tooling

Generate command-line interfaces from MCP servers, OpenAPI specs, or GraphQL endpoints.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/Aradotso/devtools-skills --skill mcp2cli-runtime-api-tooling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp2cli-runtime-api-tooling
Source: https://github.com/Aradotso/devtools-skills/tree/main/skills/mcp2cli-runtime-api-tooling
Command: npx skills add https://github.com/Aradotso/devtools-skills --skill mcp2cli-runtime-api-tooling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI agents waste tokens by repeatedly sending large, verbose tool schemas, and developers often need custom code generation to expose APIs as usable command-line tools.

Core Features & Use Cases

  • Runtime API-to-CLI conversion: Convert MCP servers (HTTP/SSE or stdio), OpenAPI specs, and GraphQL endpoints into a command-line interface without codegen.
  • Authentication and OAuth support: Handle API keys and OAuth flows with token caching and refresh.
  • Schema and usage efficiency: Cache tool discovery and rank tool outputs by usage to reduce repeated context cost by 96–99%.
  • “Bake” reusable configurations: Save named connection settings (filters, includes/excludes, cache TTL) so you can run consistent CLIs later with simple invocations.
  • Use cases: Build agent-friendly CLIs for internal services, quickly wrap third-party APIs, and reduce token overhead during tool calling.

Quick Start

Ask the agent to convert an OpenAPI spec into a CLI and list available endpoints by running mcp2cli against that spec.

Frequently Asked Questions about mcp2cli-runtime-api-tooling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert an OpenAPI spec to a CLI without codegen?

You can convert an OpenAPI spec to a CLI without codegen by using runtime API-to-CLI conversion tools. This approach generates command-line interfaces directly from the specification at runtime, eliminating the need for custom code generation.

Why does my AI agent waste so many tokens when calling API tools?

AI agents waste tokens because they repeatedly send large, verbose tool schemas during tool calling. You can reduce this overhead by applying schema caching and ranking tool outputs by usage, which cuts repeated context costs by 96–99%.

Can I wrap a GraphQL endpoint as a command-line interface for an agent?

Yes, you can wrap a GraphQL endpoint as a command-line interface for an agent at runtime. This supports direct GraphQL query and mutation execution, allowing agents to interact with the endpoint without shipping large tool schemas.

Does runtime CLI generation work with MCP servers over stdio and HTTP?

Yes, runtime CLI generation works with MCP servers over both stdio and HTTP/SSE. It handles schema introspection and authenticated requests across these transport scenarios to expose tools to AI agents.

How do I handle OAuth authentication when wrapping an API into a CLI?

To handle OAuth authentication when wrapping an API into a CLI, use runtime tooling that supports OAuth flows natively. It manages token caching and refresh automatically, ensuring authenticated requests persist across CLI invocations.

What is the best way to save reusable configurations for a runtime CLI?

The best way to save reusable configurations for a runtime CLI is to bake named connection settings. This saves filters, includes/excludes, and cache TTLs, allowing you to run consistent CLIs later with simple invocations.