cli

module
v0.0.1-dev.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT

README

holon

CI Go Downloads MIT License

holon generates typed clients for MCP servers. This allows invoking an MCP server as a function call your type checker understands.

This is currently supported via the Python SDK, TypeScript SDK, and UI SDK.

Install

curl -fsSL https://holon-labs.dev/install.sh | sh

Or alternatively with Go 1.27+, build and install from source:

go install github.com/holon-sh/cli/cmd/holon@latest

Usage

holon types generate
Generate typed clients for MCP servers.

Usage:
  holon types generate SERVER... [flags]

Examples:
  # A server directory
  holon types generate orders

  # A server entry
  holon types generate orders/server.py

  # An MCP registry server
  holon types generate https://registry.modelcontextprotocol.io/v0.1/servers/io.github.upstash%2Fcontext7/versions/4.4.4

  # A remote MCP server, with the client named docs
  holon types generate docs=https://mcp.context7.com/mcp

Flags:
      --contract   Print one server's MCP contract instead of generating
  -h, --help       help for generate
  -v, --verbose    Show generation details
holon types check
Type-check the project's calls to MCP servers.

Usage:
  holon types check [flags]

Flags:
  -h, --help   help for check

Directories

Path Synopsis
cmd
holon command
internal
pkg
cli
Package cli provides the portable Holon commands for standalone and extended executables.
Package cli provides the portable Holon commands for standalone and extended executables.
mcpcontract
Package mcpcontract holds the typed-contract wire format Holon publishes in image metadata and helpers for generated files.
Package mcpcontract holds the typed-contract wire format Holon publishes in image metadata and helpers for generated files.
mcptype
Package mcptype compares MCP typed contracts and generates typed client packages.
Package mcptype compares MCP typed contracts and generates typed client packages.
tooling
Package tooling embeds the public SDK extraction and checking tools.
Package tooling embeds the public SDK extraction and checking tools.
typegen
Package typegen turns explicit MCP server sources into typed client slots.
Package typegen turns explicit MCP server sources into typed client slots.
oauthscope module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL