Versions in this module Expand all Collapse all v0 v0.0.1 May 12, 2026 Changes in this version + func AddTool[In, Out any](c *Convertor, t *mcp.Tool, handler mcp.ToolHandlerFor[In, Out]) + func MapToDict(m map[string]any) (*starlark.Dict, error) + func ToStarlarkValue(v any) (starlark.Value, error) + func UnpackDict(d *starlark.Dict) (map[string]any, error) + type Convertor struct + func NewConvertor() *Convertor + func (c *Convertor) ExecuteTool(ctx context.Context, req *mcp.CallToolRequest, input ExecuteInput) (*mcp.CallToolResult, ExecuteOutput, error) + func (c *Convertor) GetSchemaTool(ctx context.Context, req *mcp.CallToolRequest, input GetSchemaInput) (*mcp.CallToolResult, GetSchemaOutput, error) + func (c *Convertor) Register(srv *mcp.Server) + func (c *Convertor) SearchTool(ctx context.Context, req *mcp.CallToolRequest, input SearchInput) (*mcp.CallToolResult, SearchOutput, error) + type ExecuteInput struct + Code string + type ExecuteOutput struct + Result any + type GetSchemaInput struct + Tools []string + type GetSchemaOutput struct + Results []ToolDetail + type JSON = json.RawMessage + type SearchHit struct + Score int + type SearchInput struct + Detail string + Limit *int + Query string + type SearchOutput struct + Hits []SearchHit + type Tool struct + type ToolDetail struct + Description string + InputSchema any + Name string + OutputSchema any