mcp

package
v1.9.1-beta Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolServiceList     = "service_list"
	ToolOpenAPIDocument = "openapi_document"
	ToolInvokeAPI       = "invoke_api"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IMcpController

type IMcpController interface {
	MCPHandle(ctx *gin.Context)

	GlobalMCPHandle(ctx *gin.Context)
	GlobalHandleSSE(ctx *gin.Context)
	GlobalHandleMessage(ctx *gin.Context)
	GlobalMCPConfig(ctx *gin.Context) (string, error)

	AppMCPHandle(ctx *gin.Context)
	AppHandleSSE(ctx *gin.Context)
	AppHandleMessage(ctx *gin.Context)
	AppMCPConfig(ctx *gin.Context, appId string) (string, error)

	ServiceHandleSSE(ctx *gin.Context)
	ServiceHandleMessage(ctx *gin.Context)

	ServiceHandleStreamHTTP(ctx *gin.Context)
}

type ResponseWriter

type ResponseWriter struct {
	Writer http.ResponseWriter
	// contains filtered or unexported fields
}

func (*ResponseWriter) Flush

func (r *ResponseWriter) Flush()

func (*ResponseWriter) Header

func (r *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (r *ResponseWriter) Write(bytes []byte) (int, error)

func (*ResponseWriter) WriteHeader

func (r *ResponseWriter) WriteHeader(statusCode int)

type SessionInfo

type SessionInfo struct {
	Apikey string
	App    string
}

Jump to

Keyboard shortcuts

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