Help us shape the future of Go! Take the 2026 Go Developer Survey

mcpcontract

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolAgentDockContext       = "agentdock_context"
	ToolRecallSearch           = "recall_search"
	ToolRecallRead             = "recall_read"
	ToolRecallWrite            = "recall_write"
	ToolRecallMaintain         = "recall_maintain"
	ToolPrivateNoteManage      = "private_note_manage"
	ToolWorkflowTemplateManage = "workflow_template_manage"
)

Variables

This section is empty.

Functions

func FleetAgentDockContextOutputSchema

func FleetAgentDockContextOutputSchema() map[string]any

func InputSchema

func InputSchema(name string) (map[string]any, bool)

InputSchema returns a fresh canonical model-facing input schema.

func IsCanonicalTool

func IsCanonicalTool(name string) bool

func LocalAgentDockContextOutputSchema

func LocalAgentDockContextOutputSchema() map[string]any

func OutputSchema

func OutputSchema(name string) (map[string]any, bool)

OutputSchema returns a fresh canonical output schema for tools whose result shape is shared by direct AgentDock and central NexusDock entrypoints.

func ToolNames

func ToolNames() []string

ToolNames returns the canonical model-facing tools shared by AgentDock and NexusDock.

Types

type Annotations

type Annotations struct {
	ReadOnlyHint    bool
	DestructiveHint *bool
	IdempotentHint  *bool
	OpenWorldHint   *bool
}

func AnnotationContract

func AnnotationContract(name string) (Annotations, bool)

type RecallWriteBehaviorCase

type RecallWriteBehaviorCase struct {
	Name              string
	Target            string
	Action            string
	Path              string
	Confirmed         bool
	DryRun            bool
	Expected          RecallWriteOutcome
	Existing          bool
	OverwriteSemantic bool
}

func RecallWriteBehaviorCases

func RecallWriteBehaviorCases() []RecallWriteBehaviorCase

RecallWriteBehaviorCases defines cross-entrypoint observable semantics. DryRun is an internal safety switch and is intentionally not part of the public MCP schema.

type RecallWriteOutcome

type RecallWriteOutcome string
const (
	RecallWritePreview  RecallWriteOutcome = "preview"
	RecallWriteMutation RecallWriteOutcome = "mutation"
	RecallWriteError    RecallWriteOutcome = "error"
	RecallWriteReadOnly RecallWriteOutcome = "read_only"
)

Jump to

Keyboard shortcuts

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