servers

package
v0.0.0-...-e487a75 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubCommentsServer

type GitHubCommentsServer struct {
	// contains filtered or unexported fields
}

GitHubCommentsServer GitHub评论操作MCP服务器

func NewGitHubCommentsServer

func NewGitHubCommentsServer(client *github.Client) *GitHubCommentsServer

NewGitHubCommentsServer 创建GitHub评论操作服务器

func (*GitHubCommentsServer) GetInfo

GetInfo 获取服务器信息

func (*GitHubCommentsServer) GetTools

func (s *GitHubCommentsServer) GetTools() []models.Tool

GetTools 获取服务器提供的工具列表

func (*GitHubCommentsServer) HandleToolCall

func (s *GitHubCommentsServer) HandleToolCall(ctx context.Context, call *models.ToolCall, mcpCtx *models.MCPContext) (*models.ToolResult, error)

HandleToolCall 处理工具调用

func (*GitHubCommentsServer) Initialize

func (s *GitHubCommentsServer) Initialize(ctx context.Context) error

Initialize 初始化服务器

func (*GitHubCommentsServer) IsAvailable

func (s *GitHubCommentsServer) IsAvailable(ctx context.Context, mcpCtx *models.MCPContext) bool

IsAvailable 检查服务器是否在当前上下文中可用

func (*GitHubCommentsServer) Shutdown

func (s *GitHubCommentsServer) Shutdown(ctx context.Context) error

Shutdown 关闭服务器

type GitHubFilesServer

type GitHubFilesServer struct {
	// contains filtered or unexported fields
}

GitHubFilesServer GitHub文件操作MCP服务器

func NewGitHubFilesServer

func NewGitHubFilesServer(client *github.Client) *GitHubFilesServer

NewGitHubFilesServer 创建GitHub文件操作服务器

func (*GitHubFilesServer) GetInfo

func (s *GitHubFilesServer) GetInfo() *models.MCPServerInfo

GetInfo 获取服务器信息

func (*GitHubFilesServer) GetTools

func (s *GitHubFilesServer) GetTools() []models.Tool

GetTools 获取服务器提供的工具列表

func (*GitHubFilesServer) HandleToolCall

func (s *GitHubFilesServer) HandleToolCall(ctx context.Context, call *models.ToolCall, mcpCtx *models.MCPContext) (*models.ToolResult, error)

HandleToolCall 处理工具调用

func (*GitHubFilesServer) Initialize

func (s *GitHubFilesServer) Initialize(ctx context.Context) error

Initialize 初始化服务器

func (*GitHubFilesServer) IsAvailable

func (s *GitHubFilesServer) IsAvailable(ctx context.Context, mcpCtx *models.MCPContext) bool

IsAvailable 检查服务器是否在当前上下文中可用

func (*GitHubFilesServer) Shutdown

func (s *GitHubFilesServer) Shutdown(ctx context.Context) error

Shutdown 关闭服务器

Jump to

Keyboard shortcuts

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