tools

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAnalyzeStructuralWitness added in v0.2.1

func RegisterAnalyzeStructuralWitness(server *mcp.Server, holder *index.IndexHolder)

func RegisterCrossReference

func RegisterCrossReference(server *mcp.Server, holder *index.IndexHolder)

RegisterCrossReference registers the cross-reference tool on the server.

func RegisterFindImplementations

func RegisterFindImplementations(server *mcp.Server, holder *index.IndexHolder)

RegisterFindImplementations registers the find-implementations tool on the server.

func RegisterFindReferences

func RegisterFindReferences(server *mcp.Server, holder *index.IndexHolder)

RegisterFindReferences registers the find-references tool on the server.

func RegisterImpactSince added in v0.2.1

func RegisterImpactSince(server *mcp.Server, holder *index.IndexHolder)

func RegisterIndexStatus added in v0.2.0

func RegisterIndexStatus(server *mcp.Server, holder *index.IndexHolder)

RegisterIndexStatus registers immutable provenance for the published index.

func RegisterListDependencies

func RegisterListDependencies(server *mcp.Server, holder *index.IndexHolder)

RegisterListDependencies registers the list-dependencies tool on the server.

func RegisterListPackages

func RegisterListPackages(server *mcp.Server, holder *index.IndexHolder)

RegisterListPackages registers the list-packages tool on the server.

func RegisterListServices

func RegisterListServices(server *mcp.Server, holder *index.IndexHolder)

RegisterListServices registers the list-services tool on the server.

func RegisterReadSymbol

func RegisterReadSymbol(server *mcp.Server, holder *index.IndexHolder)

RegisterReadSymbol registers the read-symbol tool on the server.

func RegisterReindex

func RegisterReindex(server *mcp.Server, holder *index.IndexHolder)

RegisterReindex registers the reindex tool on the server.

func RegisterSearchConfig

func RegisterSearchConfig(server *mcp.Server, holder *index.IndexHolder)

RegisterSearchConfig registers the search-config tool on the server.

func RegisterSearchSymbols

func RegisterSearchSymbols(server *mcp.Server, holder *index.IndexHolder)

RegisterSearchSymbols registers the search-symbols tool on the server.

Types

type AnalyzeStructuralWitnessArgs added in v0.2.1

type AnalyzeStructuralWitnessArgs struct {
	Version             int                    `json:"version" jsonschema:"required,Structural witness rule schema version"`
	InvariantID         string                 `json:"invariant_id" jsonschema:"required,Frozen Canon invariant identity"`
	Relation            string                 `json:"relation" jsonschema:"required,Bounded relation; currently must-pass-through"`
	Scope               index.StructuralScope  `json:"scope" jsonschema:"required,Repository and build-context scope"`
	EntrySymbols        []index.SymbolIdentity `json:"entry_symbols" jsonschema:"required,Registered production entry symbols"`
	EnforcementSymbols  []index.SymbolIdentity `json:"enforcement_symbols" jsonschema:"required,Registered enforcement operations"`
	SinkSymbols         []index.SymbolIdentity `json:"sink_symbols" jsonschema:"required,Frozen sensitive sink universe"`
	PermitTypes         []index.SymbolIdentity `json:"permit_types,omitempty" jsonschema:"Capability types produced only by successful enforcement"`
	BindingRequirements []string               `json:"binding_requirements,omitempty" jsonschema:"Artifact and security-context values that must remain exactly bound"`
	FailurePolicy       string                 `json:"failure_policy" jsonschema:"required,Required enforcement failure behavior"`
}

type CrossReferenceArgs

type CrossReferenceArgs struct {
	Mode       string `` /* 263-byte string literal not displayed */
	Interface  string `json:"interface,omitempty" jsonschema:"For unimplemented mode: interface name (e.g. Speaker)"`
	Package    string `` /* 127-byte string literal not displayed */
	Field      string `json:"field,omitempty" jsonschema:"For missing-field / field-coverage modes: exact field name to check (e.g. Port)"`
	Repo       string `json:"repo,omitempty" jsonschema:"Filter structs/services to one repository"`
	NameFilter string `json:"name_filter,omitempty" jsonschema:"Substring filter on struct name (e.g. Config to match only *Config structs)"`
}

CrossReferenceArgs are the input arguments for the cross-reference tool.

type FindImplementationsArgs

type FindImplementationsArgs struct {
	Package   string `json:"package" jsonschema:"required,Full import path of the package (e.g. github.com/acme/platform/auth)"`
	Name      string `json:"name" jsonschema:"required,Symbol name. For methods use Type.Method format (e.g. KeyManager.GetKey)"`
	Direction string `` /* 186-byte string literal not displayed */
}

FindImplementationsArgs are the input arguments for the find-implementations tool.

type FindReferencesArgs

type FindReferencesArgs struct {
	Package string `` /* 134-byte string literal not displayed */
	Name    string `json:"name" jsonschema:"required,Symbol name. For methods use Type.Method format (e.g. KeyManager.GetKey)"`
	Limit   int    `json:"limit,omitempty" jsonschema:"Maximum references to return (default 200)"`
}

FindReferencesArgs are the input arguments for the find-references tool.

type ImpactSinceArgs added in v0.2.1

type ImpactSinceArgs struct {
	Repository string `json:"repository" jsonschema:"required,Stable configured repository name"`
	BaseCommit string `json:"base_commit" jsonschema:"required,Git commit or revision used as the structural comparison baseline"`
}

type IndexStatusArgs added in v0.2.0

type IndexStatusArgs struct{}

IndexStatusArgs are the input arguments for index-status.

type ListDependenciesArgs

type ListDependenciesArgs struct {
	Repo string `json:"repo,omitempty" jsonschema:"Filter to show only dependencies involving this repo (as importer or importee)"`
}

ListDependenciesArgs are the input arguments for the list-dependencies tool.

type ListPackagesArgs

type ListPackagesArgs struct {
	Repo            string `json:"repo,omitempty" jsonschema:"Filter by repository name (e.g. service-api)"`
	ExcludeInternal bool   `` /* 133-byte string literal not displayed */
}

ListPackagesArgs are the input arguments for the list-packages tool.

type ListServicesArgs

type ListServicesArgs struct {
	Repo string `json:"repo,omitempty" jsonschema:"Filter by repository name (e.g. service-api)"`
}

ListServicesArgs are the input arguments for the list-services tool.

type ReadSymbolArgs

type ReadSymbolArgs struct {
	Package        string `json:"package" jsonschema:"required,Full import path of the package (e.g. github.com/acme/platform/auth)"`
	Name           string `json:"name" jsonschema:"required,Symbol name. For methods use Type.Method format (e.g. KeyManager.GetKey)"`
	IncludeImports bool   `json:"include_imports,omitempty" jsonschema:"Also include the file's import block"`
}

ReadSymbolArgs are the input arguments for the read-symbol tool.

type ReindexArgs

type ReindexArgs struct {
	WorktreeRoot   string `` /* 181-byte string literal not displayed */
	ResetWorktrees bool   `` /* 173-byte string literal not displayed */
}

ReindexArgs optionally selects or clears a process-local Git worktree.

type SearchConfigArgs

type SearchConfigArgs struct {
	Query   string `` /* 203-byte string literal not displayed */
	Repo    string `json:"repo,omitempty" jsonschema:"Filter by repository name (e.g. service-api)"`
	Package string `json:"package,omitempty" jsonschema:"Filter by import path or prefix (e.g. github.com/acme/platform/api/internal/config)"`
	Limit   int    `json:"limit,omitempty" jsonschema:"Max results to return (default: no limit — returns all matching fields)"`
}

SearchConfigArgs are the input arguments for the search-config tool.

type SearchSymbolsArgs

type SearchSymbolsArgs struct {
	Query            string `` /* 216-byte string literal not displayed */
	Kind             string `json:"kind,omitempty" jsonschema:"Filter by symbol kind: func, method, type, interface, struct, const, var"`
	Repo             string `json:"repo,omitempty" jsonschema:"Filter by repository name (e.g. service-api)"`
	Package          string `json:"package,omitempty" jsonschema:"Filter by import path or prefix (e.g. github.com/acme/platform/auth)"`
	ExportedOnly     bool   `json:"exported_only,omitempty" jsonschema:"Only show exported symbols (default true)"`
	Receiver         string `json:"receiver,omitempty" jsonschema:"Filter methods by receiver type name"`
	IncludeGenerated bool   `json:"include_generated,omitempty" jsonschema:"Include symbols from generated .pb.go files (default false)"`
	Limit            int    `json:"limit,omitempty" jsonschema:"Max results to return (default 100)"`
}

SearchSymbolsArgs are the input arguments for the search-symbols tool.

Jump to

Keyboard shortcuts

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