What it does
goke is a TypeScript CLI framework with a Hono-inspired API for chaining middleware and command handlers. Its primary value as an MCP server is that it exposes any CLI as an MCP tool in two lines of code via createMcpAction({ cli }). Every command automatically becomes a tool callable from Claude, Cursor, VS Code, and other MCP clients. The framework provides Zod-based type safety for command options, zero runtime dependencies, agent detection to adjust behavior inside AI coding agents, and includes shell completions and JustBash sandboxing support.
Who it's for
TypeScript developers who build CLI tools and want to expose them to AI agents without separate integration work. Teams using Claude, Cursor, or VS Code agents that need command-line operations available as MCP tools.
Common use cases
- Export a custom CLI as MCP tools for use in Claude Desktop or other MCP clients
- Build multi-command CLIs with shared middleware, applying REST API design patterns to the terminal
- Create agent-aware tools that detect when running inside Claude or Cursor and skip prompts
- Add shell completions and sandboxed execution via JustBash to existing command-line tools
Setup pitfalls
- Filesystem access: the server reads and writes files, so audit permissions before exposing to untrusted agent contexts
- Requires a schema library (Zod, Valibot, ArkType) for option validation; no built-in schema
- Repository has no passing CI—review recent activity (last commit 8 days ago, 53 stars) before adopting in production