MCPcopy
hub / github.com/hashicorp/hcl

github.com/hashicorp/hcl @v2.24.0 sqlite

1,320 symbols 4,715 edges 191 files 428 documented

Extension points exported contracts — how you extend this code

Body (Interface)
Body is a container for attributes and blocks. It serves as the primary unit of hierarchical structure within configurat [8 implem
structure.go
Expression (Interface)
Expression is the abstract type for nodes that behave as HCL expressions. [24 implementers]
hclsyntax/expression.go
Node (Interface)
Node is the abstract type that every AST node implements. This is a closed interface, so it cannot be implemented from [23 imple
hclsyntax/node.go
Spec (Interface)
A Spec is a description of how to decode a hcl.Body to a cty.Value. The various other types in this package whose names [17 imple
hcldec/spec.go
DiagnosticWriter (Interface)
A DiagnosticWriter emits diagnostics somehow. [2 implementers]
diagnostic.go
Walker (Interface)
Walker is an interface used with Walk. [2 implementers]
hclsyntax/walk.go
Traverser (Interface)
A Traverser is a step within a Traversal.
traversal.go
Interface (Interface)
(no doc) [2 implementers]
structure_at_pos.go

Core symbols highest fan-in

Ptr
called by 217
pos.go
HasErrors
called by 165
diagnostic.go
Error
called by 142
diagnostic.go
Run
called by 129
cmd/hclspecsuite/runner.go
Type
called by 94
hclwrite/ast_block.go
Value
called by 84
hclsyntax/expression.go

Shape

Method 654
Function 410
Struct 191
Interface 32
TypeAlias 24
FuncType 9

Dependencies from manifests, versioned

github.com/agext/levenshteinv1.2.1 · 1×
github.com/apparentlymart/go-textseg/v15v15.0.0 · 1×
github.com/davecgh/go-spewv1.1.1 · 1×
github.com/go-test/deepv1.0.3 · 1×
github.com/google/go-cmpv0.6.0 · 1×
github.com/mitchellh/go-wordwrapv1.0.1 · 1×
github.com/spf13/pflagv1.0.2 · 1×
github.com/zclconf/go-ctyv1.16.3 · 1×
github.com/zclconf/go-cty-debugv0.0.0-2024050901021 · 1×
golang.org/x/cryptov0.38.0 · 1×
golang.org/x/modv0.17.0 · 1×
golang.org/x/syncv0.14.0 · 1×

For agents

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

⬇ download graph artifact