MCPcopy Index your code
hub / github.com/cue-lang/cue

github.com/cue-lang/cue @v0.17.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.17.0 ↗
9,390 symbols 39,893 edges 847 files 4,469 documented · 48%
README

Go Reference Documentation Github Go 1.25+ platforms Docker Image

CUE - Configure, Unify, Execute

CUE makes it easy to validate data, write schemas, and ensure configurations align with policies.

CUE works with a wide range of tools and formats that you're already using such as Go, JSON, YAML, TOML, XML, OpenAPI, Protobuf, and JSON Schema.

For more information and documentation, including tutorials and guides, see cuelang.org.

Download and Install

The full range of installation methods for the cue command are listed on cuelang.org, including the official container image suitable for use with Docker.

Release builds

Download the latest release from GitHub.

Install from Source

You need Go 1.25 or later to install CUE from source:

go install cuelang.org/go/cmd/cue@latest

You can also git clone the repository and build it directly via go install ./cmd/cue.

Built cue binaries include version information as reported by cue version, which go build derives from the VCS. We recommend that downstream packagers build releases from git tags rather than source archives to ensure this works.

Learning CUE

The fastest way to learn the basics is to follow the language tour on the website.

The cuelang.org website also contains more documentation, including tutorials, how-to guides, concept guides, and references.

Popular references

Go release support policy

As a general rule, we support the two most recent major releases of Go, matching Go's security policy. For example, if CUE v0.7.0 is released when Go's latest version is 1.21.5, v0.7.x including any following bugfix releases will require Go 1.20 or later.

Code of Conduct

Guidelines for participating in CUE community spaces and a reporting process for handling issues can be found in the Code of Conduct.

Contact

Extension points exported contracts — how you extend this code

Runner (Interface)
A Runner executes a Task. [28 implementers]
tools/flow/flow.go
Runner (Interface)
A Runner defines a command type. [28 implementers]
internal/task/task.go
Key (Interface)
Key is used as the identity of a Label. Keys are intended to be compared by pointer only, the name should be unique for [17 …
internal/golangorgx/tools/event/label/label.go
Decl (Interface)
A Decl represents all valid StructLit elements. [43 implementers]
internal/core/adt/adt.go
Hasher (Interface)
A Hasher defines a hash function and an equivalence relation over values of type T. Hash must write a hash of its argum [8 …
internal/anyunique/unique.go
Option (Interface)
Option specifies a parse option. [26 implementers]
cue/parser/interface.go
Error (Interface)
Error is the common error message. [8 implementers]
cue/errors/errors.go
Decl (Interface)
A Decl node is implemented by all declarations. [43 implementers]
cue/ast/ast.go

Core symbols most depended-on inside this repo

Errorf
called by 1466
internal/cuetxtar/inline.go
String
called by 693
cue/path.go
Run
called by 474
internal/task/task.go
Value
called by 388
cue/instance.go
Pos
called by 327
cue/ast/ast.go
Err
called by 309
internal/golangorgx/tools/jsonrpc2/conn.go
Error
called by 307
cue/errors/errors.go
Do
called by 299
internal/par/work.go

Shape

Method 4,362
Function 3,194
Struct 1,500
TypeAlias 188
Interface 108
FuncType 38

Languages

Go100%

Modules by API surface

internal/golangorgx/gopls/protocol/tsprotocol.go484 symbols
cue/ast/ast.go210 symbols
internal/core/adt/adt.go206 symbols
internal/core/adt/expr.go154 symbols
internal/golangorgx/gopls/protocol/tsserver.go148 symbols
cue/types.go137 symbols
internal/golangorgx/tools/event/keys/keys.go134 symbols
internal/golangorgx/gopls/protocol/tsjson.go134 symbols
encoding/jsonschema/generate_items.go119 symbols
internal/core/adt/composite.go100 symbols
cue/path.go99 symbols
internal/core/adt/context.go85 symbols

Dependencies from manifests, versioned

cuelabs.dev/go/oci/ociregistryv0.0.0-2026060108554 · 1×
github.com/cockroachdb/apd/v3v3.2.3 · 1×
github.com/emicklei/protov1.14.3 · 1×
github.com/go-quicktest/qtv1.102.0 · 1×
github.com/inconshreveable/mousetrapv1.1.0 · 1×
github.com/kr/prettyv0.3.1 · 1×
github.com/kr/textv0.2.0 · 1×
github.com/mitchellh/go-wordwrapv1.0.1 · 1×
github.com/opencontainers/go-digestv1.0.0 · 1×

For agents

$ claude mcp add cue \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact