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

mcpschema

package
v1.0.65 Latest Latest
Warning

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

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

Documentation

Overview

Package mcpschema owns the bounded, fail-closed contract for validating arguments against remotely discovered MCP input schemas.

Index

Constants

View Source
const ValidationEvidence = "fresh_core_subset_snapshot"

Variables

This section is empty.

Functions

func Digest

func Digest(schema map[string]any) (string, error)

Digest returns the SHA-256 digest of the deterministic JSON encoding of a decoded input schema snapshot.

func ValidateInputSchema

func ValidateInputSchema(params map[string]any, schema map[string]any) error

ValidateInputSchema validates a decoded JSON object against the deliberately narrow remote MCP schema subset. Unknown keywords and malformed supported keywords fail closed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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