protocol

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetCmd

func NewGetCmd(f *cmdutil.Factory) *cobra.Command

func NewListCmd

func NewListCmd(f *cmdutil.Factory) *cobra.Command

func NewProtocolCmd

func NewProtocolCmd(f *cmdutil.Factory) *cobra.Command

Types

type Action

type Action struct {
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Fields      []Field `json:"fields"`
}

Action represents a single action available on a protocol.

type Field

type Field struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Required    bool   `json:"required"`
	Description string `json:"description"`
}

Field describes a single input field for an action.

type Protocol

type Protocol struct {
	Name        string   `json:"name"`
	Slug        string   `json:"slug"`
	Description string   `json:"description"`
	Actions     []Action `json:"actions"`
}

Protocol represents a single blockchain protocol with its available actions.

type SchemasResponse

type SchemasResponse struct {
	Plugins []Protocol `json:"plugins"`
}

SchemasResponse is the shape of the /api/mcp/schemas response.

Jump to

Keyboard shortcuts

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