mcpapi

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallTool

func CallTool(ctx context.Context, registry *projectregistry.Registry, digest *projectregistry.DigestService, name string, arguments json.RawMessage) (map[string]any, error)

func CallToolWithIngestion

func CallToolWithIngestion(ctx context.Context, registry *projectregistry.Registry, digest *projectregistry.DigestService, ingestion projectingestion.API, name string, arguments json.RawMessage) (map[string]any, error)

func CallToolWithWorkspace

func CallToolWithWorkspace(ctx context.Context, registry *projectregistry.Registry, digest *projectregistry.DigestService, ingestion projectingestion.API, workspace projectworkspace.API, name string, arguments json.RawMessage) (map[string]any, error)

func CallToolWithWorkspaceAndDiagnostics

func CallToolWithWorkspaceAndDiagnostics(ctx context.Context, registry *projectregistry.Registry, digest *projectregistry.DigestService, ingestion projectingestion.API, workspace projectworkspace.API, diagnosticsService *diagnostics.Service, name string, arguments json.RawMessage) (map[string]any, error)

func ReadResource

func ReadResource(ctx context.Context, registry *projectregistry.Registry, digest *projectregistry.DigestService, uri string) (map[string]any, error)

func ReadResourceWithIngestion

func ReadResourceWithIngestion(ctx context.Context, registry *projectregistry.Registry, digest *projectregistry.DigestService, ingestion projectingestion.API, uri string) (map[string]any, error)

func ResourceTemplates

func ResourceTemplates() []map[string]any

func ResourceTemplatesWithIngestion

func ResourceTemplatesWithIngestion(includeIngestion bool) []map[string]any

func ToolDefinitions

func ToolDefinitions() []map[string]any

func ToolDefinitionsWithIngestion

func ToolDefinitionsWithIngestion(includeIngestion bool) []map[string]any

func ToolDefinitionsWithWorkspace

func ToolDefinitionsWithWorkspace(includeIngestion bool, includeWorkspace bool) []map[string]any

func ToolDefinitionsWithWorkspaceAndDiagnostics

func ToolDefinitionsWithWorkspaceAndDiagnostics(includeIngestion bool, includeWorkspace bool, includeDiagnostics bool) []map[string]any

Types

This section is empty.

Jump to

Keyboard shortcuts

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