Documentation
¶
Index ¶
- type GitHubCommentsServer
- func (s *GitHubCommentsServer) GetInfo() *models.MCPServerInfo
- func (s *GitHubCommentsServer) GetTools() []models.Tool
- func (s *GitHubCommentsServer) HandleToolCall(ctx context.Context, call *models.ToolCall, mcpCtx *models.MCPContext) (*models.ToolResult, error)
- func (s *GitHubCommentsServer) Initialize(ctx context.Context) error
- func (s *GitHubCommentsServer) IsAvailable(ctx context.Context, mcpCtx *models.MCPContext) bool
- func (s *GitHubCommentsServer) Shutdown(ctx context.Context) error
- type GitHubFilesServer
- func (s *GitHubFilesServer) GetInfo() *models.MCPServerInfo
- func (s *GitHubFilesServer) GetTools() []models.Tool
- func (s *GitHubFilesServer) HandleToolCall(ctx context.Context, call *models.ToolCall, mcpCtx *models.MCPContext) (*models.ToolResult, error)
- func (s *GitHubFilesServer) Initialize(ctx context.Context) error
- func (s *GitHubFilesServer) IsAvailable(ctx context.Context, mcpCtx *models.MCPContext) bool
- func (s *GitHubFilesServer) Shutdown(ctx context.Context) error
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 ¶
func (s *GitHubCommentsServer) GetInfo() *models.MCPServerInfo
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 检查服务器是否在当前上下文中可用
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 检查服务器是否在当前上下文中可用
Click to show internal directories.
Click to hide internal directories.