method

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package method defines JSON-RPC 2.0 method strings from the MCP specification, used for request routing in the server dispatch loop.

Index

Constants

View Source
const (
	// Initialize is the MCP initialize handshake method.
	Initialize = "initialize"
	// Ping is the MCP ping method.
	Ping = "ping"
	// ResourceList is the MCP method for listing resources.
	ResourceList = "resources/list"
	// ResourceRead is the MCP method for reading a resource.
	ResourceRead = "resources/read"
	// ResourceSubscribe is the MCP method for subscribing to resource changes.
	ResourceSubscribe = "resources/subscribe"
	// ResourceUnsubscribe is the MCP method for unsubscribing from resource
	// changes.
	ResourceUnsubscribe = "resources/unsubscribe"
	// ToolList is the MCP method for listing tools.
	ToolList = "tools/list"
	// ToolCall is the MCP method for calling a tool.
	ToolCall = "tools/call"
	// PromptList is the MCP method for listing prompts.
	PromptList = "prompts/list"
	// PromptGet is the MCP method for getting a prompt.
	PromptGet = "prompts/get"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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