Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTools = Tools{ListProjectsTool, GetProjectTool}
View Source
var ExampleTool = &Tool{ Name: "example_mcp_server", Description: "Returns a random integer", Args: util.FieldDescs{{Key: "max", Description: "Maximum possible random int (exclusive), defaults to 100"}}, Fn: exampleHandler, }
View Source
var GetProjectTool = &Tool{ Name: "get_project", Description: "Get details of a specific project managed by " + util.AppName, Args: util.FieldDescs{ {Key: "id", Description: "Optional project id. If omitted, all projects will be returned"}, }, Fn: projectsHandler, }
View Source
var ListProjectsTool = &Tool{ Name: "list_projects", Description: "List the projects managed by " + util.AppName, Fn: projectsHandler, }
Functions ¶
func AddDefaultTools ¶ added in v1.7.12
func AddDefaultTools(ts ...*Tool)
func ClearDefaultTools ¶ added in v1.7.12
func ClearDefaultTools()
Types ¶
type Server ¶
type Server struct { MCP *server.MCPServer `json:"-"` State *app.State `json:"-"` Tools Tools HTTP http.Handler `json:"-"` }
func CurrentDefaultServer ¶ added in v1.7.13
func CurrentDefaultServer() *Server
func GetDefaultServer ¶ added in v1.7.12
type Tool ¶
type Tool struct { Name string `json:"name"` Description string `json:"description,omitempty"` Icon string `json:"icon,omitempty"` Args util.FieldDescs `json:"args,omitempty"` Fn ToolHandler `json:"-"` }
type ToolHandler ¶
Click to show internal directories.
Click to hide internal directories.