Files
zeekayandGitHub 69a5fecf84 feat: cloud Mount() per HIP-0106 (#6)
* feat: cloud Mount() per HIP-0106

Adds pkg/mcp with the canonical Mount(*zip.App, cloud.Deps) entry so the
unified cloud binary can serve the HIP-0300 tool surface under /v1/mcp.

The route layer is pure-Go: it defines an Invoker contract and dispatches
GET /v1/mcp/tools, POST /v1/mcp/tools/:name, plus the standard search and
fetch shortcuts. The CGO-backed hanzomcp package implements Invoker; a
build without CGO mounts the routes and returns 503 until SetInvoker
registers a runtime. Adds schema/mcp.zap describing the typed surface.

* refactor: collapse pkg/go/ → root + flatten cloud import

Repo IS the package. Mount() at root. Consumers use
`github.com/hanzoai/mcp/go` (no /pkg/go/ nesting).
2026-05-18 23:38:03 -07:00

10 lines
524 B
Go

// Package mcp mounts the Hanzo MCP tool surface under /v1/mcp per HIP-0106.
//
// Hanzo MCP exposes the HIP-0300 unified tool catalog (fs, exec, code, git,
// fetch, workspace, computer, think, memory, hanzo, plan, tasks, mode) over
// HTTP. The Go bridge to the native tool runtime is the CGO package
// github.com/hanzoai/mcp/go/hanzomcp — keeping the route layer pure-Go means
// the unified cloud binary builds without CGO. A CGO-enabled build can
// register an invoker via SetInvoker before app.Listen.
package mcp