From a82117b18eeb61103ff619d93d63a3681380b2fb Mon Sep 17 00:00:00 2001 From: Tobias Herber <22559657+herber@users.noreply.github.com> Date: Thu, 4 Jun 2026 15:42:20 +0200 Subject: [PATCH 1/3] Update sdk --- internal/commands/integrations/command.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/commands/integrations/command.go b/internal/commands/integrations/command.go index 2d40574..2408585 100644 --- a/internal/commands/integrations/command.go +++ b/internal/commands/integrations/command.go @@ -24,7 +24,7 @@ import ( setupsessions "github.com/metorial/metorial-go/v1/resources/providerdeployments/setupsessions" providerlistings "github.com/metorial/metorial-go/v1/resources/providerlistings" "github.com/metorial/metorial-go/v1/resources/providers" - providertools "github.com/metorial/metorial-go/v1/resources/providers/tools" + providertools "github.com/metorial/metorial-go/v1/resources/provider/tools" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/spf13/cobra" "golang.org/x/term" @@ -1453,13 +1453,13 @@ func attachSetupSessionProviderToMagicServer( return sessionTemplateProvider, nil } -func listProviderTools(sdk *metorial.MetorialSdk, version any) ([]providertools.ProvidersToolsListOutputItems, error) { +func listProviderTools(sdk *metorial.MetorialSdk, version any) ([]providertools.ProviderToolsListOutputItems, error) { switch typed := version.(type) { case *providerlistings.ProviderListingsGetOutputProviderCurrentVersion: if typed == nil || strings.TrimSpace(typed.Id) == "" { return nil, nil } - result, err := sdk.ProvidersTools.List(&endpoints.ProvidersToolsEndpointListParams{ + result, err := sdk.ProviderTools.List(&endpoints.ProviderToolsEndpointListParams{ Limit: float64Ptr(15), ProviderVersionId: typed.Id, }) @@ -1471,7 +1471,7 @@ func listProviderTools(sdk *metorial.MetorialSdk, version any) ([]providertools. if typed == nil || strings.TrimSpace(typed.Id) == "" { return nil, nil } - result, err := sdk.ProvidersTools.List(&endpoints.ProvidersToolsEndpointListParams{ + result, err := sdk.ProviderTools.List(&endpoints.ProviderToolsEndpointListParams{ Limit: float64Ptr(15), ProviderVersionId: typed.Id, }) @@ -1606,7 +1606,7 @@ func renderCatalogList(writer io.Writer, features terminal.Features, rows []cata return renderTips(writer, features, tips) } -func renderCatalogDetail(writer io.Writer, features terminal.Features, listing *providerlistings.ProviderListingsGetOutput, tools []providertools.ProvidersToolsListOutputItems, tips []string) error { +func renderCatalogDetail(writer io.Writer, features terminal.Features, listing *providerlistings.ProviderListingsGetOutput, tools []providertools.ProviderToolsListOutputItems, tips []string) error { colors := terminal.NewColorizer(features) _, _ = fmt.Fprintln(writer, colors.Bold(listing.Name)) _, _ = fmt.Fprintf(writer, "%s\n\n", colors.Muted(listing.Slug)) @@ -1747,7 +1747,7 @@ func renderSetupResult(writer io.Writer, features terminal.Features, setupSessio return renderTips(writer, features, tips) } -func renderToolsTable(writer io.Writer, features terminal.Features, tools []providertools.ProvidersToolsListOutputItems) error { +func renderToolsTable(writer io.Writer, features terminal.Features, tools []providertools.ProviderToolsListOutputItems) error { colors := terminal.NewColorizer(features) _, _ = fmt.Fprintln(writer) _, _ = fmt.Fprintln(writer, colors.Accent("Tools")) From 5df5fdf17857cb2332bfd3d4cc5f7eef64243d77 Mon Sep 17 00:00:00 2001 From: Tobias Herber <22559657+herber@users.noreply.github.com> Date: Thu, 4 Jun 2026 15:45:08 +0200 Subject: [PATCH 2/3] Fix format --- internal/commands/integrations/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commands/integrations/command.go b/internal/commands/integrations/command.go index 2408585..3b240e4 100644 --- a/internal/commands/integrations/command.go +++ b/internal/commands/integrations/command.go @@ -21,10 +21,10 @@ import ( "github.com/metorial/metorial-go/v1/endpoints" "github.com/metorial/metorial-go/v1/resources/consumers" "github.com/metorial/metorial-go/v1/resources/magicmcpservers" + providertools "github.com/metorial/metorial-go/v1/resources/provider/tools" setupsessions "github.com/metorial/metorial-go/v1/resources/providerdeployments/setupsessions" providerlistings "github.com/metorial/metorial-go/v1/resources/providerlistings" "github.com/metorial/metorial-go/v1/resources/providers" - providertools "github.com/metorial/metorial-go/v1/resources/provider/tools" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/spf13/cobra" "golang.org/x/term" From 018cbe55dc182e6dfb47c5a2b3178ee34c2dad07 Mon Sep 17 00:00:00 2001 From: Tobias Herber <22559657+herber@users.noreply.github.com> Date: Thu, 4 Jun 2026 15:47:42 +0200 Subject: [PATCH 3/3] fixes --- internal/commands/integrations/command.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/commands/integrations/command.go b/internal/commands/integrations/command.go index 3b240e4..2d40574 100644 --- a/internal/commands/integrations/command.go +++ b/internal/commands/integrations/command.go @@ -21,10 +21,10 @@ import ( "github.com/metorial/metorial-go/v1/endpoints" "github.com/metorial/metorial-go/v1/resources/consumers" "github.com/metorial/metorial-go/v1/resources/magicmcpservers" - providertools "github.com/metorial/metorial-go/v1/resources/provider/tools" setupsessions "github.com/metorial/metorial-go/v1/resources/providerdeployments/setupsessions" providerlistings "github.com/metorial/metorial-go/v1/resources/providerlistings" "github.com/metorial/metorial-go/v1/resources/providers" + providertools "github.com/metorial/metorial-go/v1/resources/providers/tools" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/spf13/cobra" "golang.org/x/term" @@ -1453,13 +1453,13 @@ func attachSetupSessionProviderToMagicServer( return sessionTemplateProvider, nil } -func listProviderTools(sdk *metorial.MetorialSdk, version any) ([]providertools.ProviderToolsListOutputItems, error) { +func listProviderTools(sdk *metorial.MetorialSdk, version any) ([]providertools.ProvidersToolsListOutputItems, error) { switch typed := version.(type) { case *providerlistings.ProviderListingsGetOutputProviderCurrentVersion: if typed == nil || strings.TrimSpace(typed.Id) == "" { return nil, nil } - result, err := sdk.ProviderTools.List(&endpoints.ProviderToolsEndpointListParams{ + result, err := sdk.ProvidersTools.List(&endpoints.ProvidersToolsEndpointListParams{ Limit: float64Ptr(15), ProviderVersionId: typed.Id, }) @@ -1471,7 +1471,7 @@ func listProviderTools(sdk *metorial.MetorialSdk, version any) ([]providertools. if typed == nil || strings.TrimSpace(typed.Id) == "" { return nil, nil } - result, err := sdk.ProviderTools.List(&endpoints.ProviderToolsEndpointListParams{ + result, err := sdk.ProvidersTools.List(&endpoints.ProvidersToolsEndpointListParams{ Limit: float64Ptr(15), ProviderVersionId: typed.Id, }) @@ -1606,7 +1606,7 @@ func renderCatalogList(writer io.Writer, features terminal.Features, rows []cata return renderTips(writer, features, tips) } -func renderCatalogDetail(writer io.Writer, features terminal.Features, listing *providerlistings.ProviderListingsGetOutput, tools []providertools.ProviderToolsListOutputItems, tips []string) error { +func renderCatalogDetail(writer io.Writer, features terminal.Features, listing *providerlistings.ProviderListingsGetOutput, tools []providertools.ProvidersToolsListOutputItems, tips []string) error { colors := terminal.NewColorizer(features) _, _ = fmt.Fprintln(writer, colors.Bold(listing.Name)) _, _ = fmt.Fprintf(writer, "%s\n\n", colors.Muted(listing.Slug)) @@ -1747,7 +1747,7 @@ func renderSetupResult(writer io.Writer, features terminal.Features, setupSessio return renderTips(writer, features, tips) } -func renderToolsTable(writer io.Writer, features terminal.Features, tools []providertools.ProviderToolsListOutputItems) error { +func renderToolsTable(writer io.Writer, features terminal.Features, tools []providertools.ProvidersToolsListOutputItems) error { colors := terminal.NewColorizer(features) _, _ = fmt.Fprintln(writer) _, _ = fmt.Fprintln(writer, colors.Accent("Tools"))