feat(manifest): étendre mcp.toml au-delà de [update] #18

Merged
thibaud-lclr merged 1 commit from refs/pull/18/head into release/v1.3 2026-04-14 11:55:44 +00:00
2 changed files with 11 additions and 1 deletions

View file

@ -211,7 +211,14 @@ func trimArgs(args []string) []string {
func runConfigCommand(ctx context.Context, opts Options, args []string) error {
if len(args) == 0 {
return fmt.Errorf("%w: %s requires one of: %s, %s", ErrSubcommandRequired, CommandConfig, ConfigSubcommandShow, ConfigSubcommandTest)
return fmt.Errorf(
"%w: %s requires one of: %s, %s, %s",
ErrSubcommandRequired,
CommandConfig,
ConfigSubcommandShow,
ConfigSubcommandTest,
ConfigSubcommandDelete,
)
}
subcommand := strings.TrimSpace(args[0])

View file

@ -68,6 +68,9 @@ func TestRunReturnsCommandNotConfigured(t *testing.T) {
if !errors.Is(err, ErrSubcommandRequired) {
t.Fatalf("Run error = %v, want ErrSubcommandRequired", err)
}
if !strings.Contains(err.Error(), "show, test, delete") {
t.Fatalf("Run error = %q, want mention of show, test, delete", err)
}
}
func TestRunPrintsVersionByDefault(t *testing.T) {