Documentation
¶
Index ¶
- type AliyunAccountConfig
- type MCPServer
- func (s *MCPServer) CallTool(ctx context.Context, toolName string, arguments map[string]any) (*mcp.CallToolResult, error)
- func (s *MCPServer) ListEnabledTools(ctx context.Context) (*mcp.ListToolsResult, error)
- func (s *MCPServer) ListTools(ctx context.Context) (*mcp.ListToolsResult, error)
- func (s *MCPServer) RegisterExternalMCPTools(ctx context.Context, manager *mcpclient.Manager) error
- func (s *MCPServer) Start() error
- func (s *MCPServer) StartSSE() error
- func (s *MCPServer) StopSSE(ctx context.Context) error
- type TencentAccountConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunAccountConfig ¶ added in v0.1.1
AliyunAccountConfig 阿里云账号配置
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
MCPServer 基于 mcp-go 库的 MCP 服务器
func NewMCPServer ¶
NewMCPServer 创建基于 mcp-go 库的 MCP 服务器
func (*MCPServer) CallTool ¶
func (s *MCPServer) CallTool(ctx context.Context, toolName string, arguments map[string]any) (*mcp.CallToolResult, error)
CallTool 调用 MCP 工具(公开方法,供其他包使用)
func (*MCPServer) ListEnabledTools ¶ added in v0.2.0
ListEnabledTools 列出所有启用的工具(过滤数据库中被禁用的工具)
func (*MCPServer) RegisterExternalMCPTools ¶ added in v0.2.0
RegisterExternalMCPTools 将外部 MCP 的工具注册到 ZenOps MCP Server
Click to show internal directories.
Click to hide internal directories.