RG

remorses/goke

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

61 stars 품질 68 트렌드 20

간단하고, 안전한 유형, 우아한 명령 선 기구. 에이전트를 위한 CLI 프레임워크

개요

goke Build CLIs 당신이 API를 구축하고 싶습니다. Type-safe, chainable, 제로 의존성. goke는 Hono-like API를 가진 TypeScript CLI 프레임워크입니다. 당신은 .use () 중간웨어 및 .command () 경로에 대한 - 터미널에 적용되는 REST API와 동일한 정신 모델. - - 핸들러를 위한 .use(), .command(). REST API를 디자인하는 것과 같은 방식으로 CLI를 만듭니다. - - Zod schema를 .option()에 전달하고 자동적인 coercion, TypeScript inference를 얻을 수 있으며 무료로 텍스트를 지원합니다. Valibot, ArkType 또는 모든 표준 Schema 라이브러리와 함께 작동합니다. - - @goke/mcp는 MCP 서버에 연결하고, 도구 발견하고, Typed CLI 명령을 자동으로 생성합니다. - - @goke/mcp에서 createMcpAction({ cli })로 MCP 서버로 전체 CLI를 노출합니다. 모든 명령은 Claude Desktop, Cursor, VS Code 및 MCP 클라이언트를 위한 도구가 됩니다. - - cli.createJustBashCommand()는 샌드 박스 JustBash 명령으로 CLI를 노출시킵니다. 동일한 동작 코드, 변경이 필요하지 않습니다.

개요(AI 번역)

로그아웃 API를 구축하고 싶습니다. Type-safe, chainable, 제로 의존성.

goke는 Hono-like API를 가진 TypeScript CLI 프레임워크입니다. 당신은 체인 .use() 미들웨어 및 .command() 경로에 대한 - REST API로 동일한 정신 모델, 터미널에 적용.

특징

-Hono-like chaining — .use()] 미들웨어, .command()] 핸들러. REST API를 설계한 것과 같은 방식으로 CLI를 만듭니다. -Zod type safety - Zod schema를 .option()로 전달하고 자동 coercion, TypeScript inference를 얻을 수 있으며 무료 텍스트를 지원합니다. Valibot, ArkType 또는 모든 표준 Schema 라이브러리와 함께 작동합니다.

  • ** 모든 MCP 서버에서 CLI ** - @goke/mcp]은 MCP 서버에 연결하고 도구를 발견하고 입력된 CLI 명령을 자동으로 생성합니다.
  • ** 2 라인의 MCP 서버 ** - @goke/mcp]에서 MCP 서버로 전체 CLI를 노출합니다. 모든 명령은 Claude Desktop, Cursor, VS Code 및 MCP 클라이언트를 위한 도구가 됩니다. -JustBash 지원 — cli.createJustBashCommand()]는 샌드박스 JustBash 명령으로 CLI를 노출시킵니다. 동일한 동작 코드, 변경이 필요하지 않습니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

goke is a TypeScript CLI framework with a Hono-like API. You chain .use() for middleware and .command() for routes — the same mental model as a REST API, applied to the terminal.

import { goke } from 'goke'
import { z } from 'zod'

const cli = goke('deploy')

// middleware — runs before every command
cli
  .option('--env ', z.enum(['staging', 'production']).default('staging').describe('Target environment'))
  .use((options, { console }) => {
    console.log(`Environment: ${options.env}`)
  })

// commands — like route handlers
cli
  .command('up', 'Deploy the app')
  .option('--dry-run', 'Preview without deploying')
  .action((options, { console, process }) => {
    console.log(`Deploying from ${process.cwd}`)
  })

cli
  .command('logs ', 'Stream logs')
  .option('--lines ', z.number().default(100).describe('Lines to tail'))
  .action((id, options) => streamLogs(id, options.lines))

cli.help()
cli.completions()
cli.parse()

Features

  • Hono-like chaining — .use() for middleware, .command() for handlers. Build a CLI the same way you’d design a REST API.
  • Zod type safety — pass a Zod schema to .option() and get automatic coercion, TypeScript inference, and help text for free. Works with Valibot, ArkType, or any Standard Schema library.
  • CLI from any MCP server — @goke/mcp connects to an MCP server, discovers tools, and generates typed CLI commands automatically.
  • MCP server in 2 lines — expose your entire CLI as an MCP server with createMcpAction({ cli }) from @goke/mcp. Every command becomes a tool, ready for Claude Desktop, Cursor, VS Code, and any MCP client.
  • JustBash support — cli.createJustBashCommand() exposes your CLI as a sandboxed JustBash command. Same action code, no changes needed.
  • Space-separated subcommands — git remote add, mcp login, db migrate — multi-word commands work out of the box.
  • Injected { fs, console, process } — commands receive a portable runtime context. Swap it in tests, or let JustBash replace it with a sandbox. No global side effects.
  • Shell completions — cli.completions() adds Tab completion for zsh and bash. Install once with mycli completions install; completions stay up-to-date automatically because the shell calls the binary on every Tab press.
  • Zero runtime dependencies — install goke without pulling extra runtime packages into your CLI.
GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add remorses/goke
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →